Hello,
I'm trying to upload files to a new Piwigo 2.9.4 album and trying to upload an image using the web interface. The upload process starts, the progress bar shows some progress (up to about 22%), and then the upload hangs.
In Firefox, the browser console shows:
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data[Learn More] jquery.min.js:5:15991
TypeError: uploadCategory is null[Learn More] admin.php:495:1
And in Chrome, Developer Tools shows:
Failed to load resource: net::ERR_EMPTY_RESPONSE
admin.php?page=photos_add&album=230:1 Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Function.m.parseJSON (jquery.min.js?v2.9.4:5)
at o.Uploader.Error (admin.php?page=photos_add&album=230:477)
at o.Uploader.<anonymous> (ojjtjl.js:113)
at Array.<anonymous> (ojjtjl.js:98)
at i (ojjtjl.js:98)
at ojjtjl.js:98
at Array.<anonymous> (ojjtjl.js:98)
at i (ojjtjl.js:98)
at ojjtjl.js:98
admin.php?page=photos_add&album=230:495 Uncaught TypeError: Cannot read property 'id' of null
at o.Uploader.UploadComplete (admin.php?page=photos_add&album=230:495)
at o.Uploader.<anonymous> (ojjtjl.js:113)
at Array.<anonymous> (ojjtjl.js:98)
at i (ojjtjl.js:98)
at Object.r [as inSeries] (ojjtjl.js:98)
at o.Uploader.dispatchEvent (ojjtjl.js:98)
at o.Uploader.trigger (ojjtjl.js:98)
at o.Uploader.g (ojjtjl.js:113)
at ojjtjl.js:113
This is on a hosted LAMP webserver, so I have limited access to the server configuration.
A search has revealed several reports of this behavior, but no solution that I can find.
Piwigo version: 2.9.4
PHP version: 5.6.40
MySQL version: 5.6.41
Piwigo URL: http://
Offline
Hello
go to the network table and open the jspon requests to check the answers
do you have issues on the user management page too?
Offline
Fixed!
Today I tried it from my fast network connection at work, and discovered that uploads there worked perfectly, every time and with every browser. It was only when I was using my slow DSL connection at home that I had the problem.
So I tested my network speeds with one of those online speed tester sites, and what do you know, downloads worked but uploads were failing there too. I rebooted my router and my DSL modem, and now uploads are working again.
Sorry for the false alarm!
Offline
Yay. Let's add "have you switched your router off and on" to the support script.
/me ducks
Thanks for letting us know the solution anyway.
Offline