Announcement

#1 2019-03-24 23:55:41

Dave_G
Member
2019-03-24
2

File upload fails

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

 

#2 2019-03-25 18:51:00

flop25
Piwigo Team
2006-07-06
6965

Re: File upload fails

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?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2019-03-25 23:35:46

Dave_G
Member
2019-03-24
2

Re: File upload fails

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

 

#4 2019-03-27 02:20:39

erAck
Piwigo Team
2015-09-06
281

Re: File upload fails

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.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact