Loading...
 
Skip to main content

Article custom attribute causes fatal error

Status
Closed
Subject
Article custom attribute causes fatal error
Version
27.x
Regression from 26.x to 27.x
Category
  • Regression
Feature
Article
Resolution status
Fixed or Solved
Submitted by
Gary Cunningham-Lee
Volunteered to solve
Josue Zirimwabagabo
Lastmod by
Josue Zirimwabagabo
Rating
(0)
Description

Testing how custom attributes work when creating an article, I added a new custom attribute on the article types page (tiki-article_types.php), which added a new input on the advanced tab of my articles edit page (tiki-edit_article.php?articleId=3#content-edit_article1-5). I input text for the data of the attribute and published the article, and it worked fine (the attribute name and data displayed at the top of the article text). But when I tried to re-edit the article, I got this error:

Copy to clipboard
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in . . . \master\lib\articles\artlib.php:1661 Stack trace: #0 . . . \master\tiki-edit_article.php(685): ArtLib->set_article_attributes('3', Array) #1 {main} thrown in , , , \master\lib\articles\artlib.php on line 1661


Solution
Workaround
Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Please demonstrate your bug on show2.tiki.org
Demonstrate Bug (older Tiki versions)
 Show.tiki.org is currently unavailable

Unable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.

Ticket ID
8609
Created
Tuesday 19 March, 2024 09:20:47 GMT-0000
by Gary Cunningham-Lee
LastModif
Monday 07 April, 2025 22:30:58 GMT-0000