Loading...
 
Skip to main content

Image uploads to themes.tiki.org fail

Status
Closed
Subject
Image uploads to themes.tiki.org fail
Version
26.x
Regression from 25.x to 26.x
Category
  • Regression
Feature
Admin Interface (UI)
File Gallery (elFinder or standard UI)
Resolution status
Fixed or Solved
Submitted by
Gary Cunningham-Lee
Lastmod by
Gary Cunningham-Lee
Rating
(0)
Description

Uploading an image (in this case, theme images such as themes/amelia/images/amelia.png) fail with this error:

Copy to clipboard
File upload failed: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Solution

Not a solution (yet) just investigations...

Error message (found in the network inspector):
Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/tiki-themes/public_html/lib/core/Services/File/Controller.php:258
Seems that the offending part of that line is:
count($_FILES'files''tmp_name')
but for me $_FILES'files''tmp_name' is always an array here, so something odd is up on themes.t.o imho

Importance
9
Easy to solve?
5
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8447
Created
Thursday 29 June, 2023 07:41:27 UTC
by Gary Cunningham-Lee
LastModif
Thursday 06 July, 2023 15:46:41 UTC


Show PHP error messages