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
- Description
Uploading an image (in this case, theme images such as themes/amelia/images/amelia.png) fail with this error:
Copy to clipboardFile 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- 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