Announcement

#1 2023-03-04 08:03:31

ShadowHunter
Member
2014-06-23
12

[SOLVED] Web upload 100% succesfull and stuck

Hi,

I have seen similar threads but no solution.

Basically web upload works fine but when reaching 100% nothing happens anymore. In the past (a few versions back) I was able to perform further  actions on the uploaded files, like generating thumbnails.

However, when I exit the upload page and navigate to batch manager all photo's are there and I can proceed.

I have searched the logs but could not find any abnormality.

Any thoughts on the root cause or how to troubleshoot?

I'm stuck on below screen:

https://i.ibb.co/LdWptmY/2023-03-04-07-43-33.png

A big thank you for your support.

ShadowHunter

Piwigo 13.6.0
Installed on 25 March 2015, 7 years 11 months 1 week 2 days ago
Operating system: WINNT
PHP: 7.4.27 (Show info) [2023-03-04 07:53:18]
MySQL: 5.6.16-log [2023-03-04 07:53:18]
Graphics Library: GD bundled (2.1.0 compatible)
Cache size 0 Mo  

Last edited by ShadowHunter (2023-03-13 22:48:17)

Offline

 

#2 2023-03-06 13:33:59

abravorus
Member
2015-03-03
36

Re: [SOLVED] Web upload 100% succesfull and stuck

I have exactly the same problem. It appeared, I think, from version 13.3.

It doesn't depend from size, type or number of files uploaded. It could be with one small jpg-file or with a group of files.
The additional sign of this problem is that image thumbnails are not shown under the the list of uploaded files during upload process.

All such files are created as orphans and manually could be bound to the album you need.

Sometimes I think that it depends from the slow upload speed, but I'm not sure.

Piwigo 13.6.0
Linux
PHP: 7.4.33
MySQL: 8.0.29-21
ImageMagick 6.9.11-60

Offline

 

#3 2023-03-08 20:52:05

ShadowHunter
Member
2014-06-23
12

Re: [SOLVED] Web upload 100% succesfull and stuck

@abravorus

Thank you for confirming the issue > exactly same here. Happened after an update but I cannot recall since what version (been using Piwigo since 2014). Upload is consistant since I upload internally to my self hosted webserver.

Hope there is a solution as this isn't working anymore for me.

ShadowHunter

Last edited by ShadowHunter (2023-03-08 20:53:01)

Offline

 

#4 2023-03-08 22:08:12

erAck
Only trying to help
2015-09-06
2054

Re: [SOLVED] Web upload 100% succesfull and stuck


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

Offline

 

#5 2023-03-09 20:55:49

abravorus
Member
2015-03-03
36

Re: [SOLVED] Web upload 100% succesfull and stuck

Hello,

I'm not sure that the problem is only in resolving speed as written in the last comment on github - [Github] Piwigo issue #849

I had this issue today again. With three small jpg-files. From the log:
cat _data/logs/log_2023-03-09_73c50348a3fce82fe5467dd3ffc74477765903e8.txt | grep add_uploaded_file
[2023-03-09 10:17:44]   [INFO]  add_uploaded_file : force cache generation, derivative_url = https://my.domain/photos/i.php?/upload/ … 8a3-me.jpg
[2023-03-09 18:15:36]   [INFO]  add_uploaded_file : force cache generation, derivative_url = https://my.domain/photos/i.php?/upload/ … de5-me.jpg
[2023-03-09 18:15:38]   [INFO]  add_uploaded_file : force cache generation, derivative_url = https://my.domain/photos/i.php?/upload/ … 22d-me.jpg

My hesitations on this issue:
1) my.domain is resolving locally on our physical server, so it will not be faster if I add it directly to etc/hosts
2) this issue appeared only with 13.* version of Piwigo, the size of my gallery didn't increased significantly from pre-13 times.
3) Though, my Piwigo gallery is quite big - about 110.000 images and about 3.500 albums.

The hack with commenting out
fetchRemote($derivative_url, $dest);
in /admin/include/functions_upload.inc.php works but I would like to be sure that there are no any side effects.

Many thanks,
  Alexandr

Offline

 

#6 2023-03-12 15:59:26

erAck
Only trying to help
2015-09-06
2054

Re: [SOLVED] Web upload 100% succesfull and stuck

abravorus wrote:

I'm not sure that the problem is only in resolving speed as written in the last comment on github - [Github] Piwigo issue #849

There is nothing written about speed in the then last comment (before you added your comment with a copy of this your message) from Nov 5, 2022.

I was referring

Code:

https://github.com/Piwigo/Piwigo/issues/849#issuecomment-1304615928

(written as code here because otherwise unfortunately this forum strips the comment fragment from the URI).

That is about resolving the generated URL from the upload.


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

Offline

 

#7 2023-03-13 09:56:51

abravorus
Member
2015-03-03
36

Re: [SOLVED] Web upload 100% succesfull and stuck

erAck wrote:

There is nothing written about speed in the then last comment (before you added your comment with a copy of this your message) from Nov 5, 2022.

I was referring

Code:

https://github.com/Piwigo/Piwigo/issues/849#issuecomment-1304615928

(written as code here because otherwise unfortunately this forum strips the comment fragment from the URI).

That is about resolving the generated URL from the upload.

Yes, I understood, thanks.
Probably I formulated it wrong.

I understand that the idea is that the problem could be in resolving the generated URL from the upload.
But I do not see any errors with resolving of "my.domain" in server's logs. That's the problem.

Thanks,
  Alexandr

Offline

 

#8 2023-03-13 21:57:04

ShadowHunter
Member
2014-06-23
12

Re: [SOLVED] Web upload 100% succesfull and stuck

[SOLUTION]

Hi,

Thanks for the feedback and tips... alas non of them seem to work in my case...

When I traced an 1 picture upload I noticed below errors:

https://i.ibb.co/mb828Nz/2023-03-13-21-45-09.png"

Stack trace led me to:

Uncaught Error: Call to undefined function mime_content_type() in .\admin\include\functions_metadata.php:185

When commenting out the call to this procedure at line 185 in .\admin\include\functions_metadata.php

Code:

if (in_array(mime_content_type($file), array('image/svg+xml', 'image/svg'))){...}

And surely enough all worked again as expected... during the upload thumbnails are displayed and after the upload finishes Piwigo presents me again with the option to manage the set.

Solution: after enabling the PHP "fileinfo" extension (and uncommented the call to mime_content_type again) the problem was solved.

Not sure how the extension got disabled in the first placed but I'm happy the issue has been fixed.

Hope this can help someone else facing the same problem.

ShadowHunter

Last edited by ShadowHunter (2023-03-13 22:57:54)

Offline

 

#9 2023-03-13 23:55:07

erAck
Only trying to help
2015-09-06
2054

Re: [SOLVED] Web upload 100% succesfull and stuck

For that I submitted https://github.com/Piwigo/Piwigo/pull/1776 a while ago but it's still lingering.
The code is only needed to import SVG but depends on the PHP fileinfo extension being installed that provides mime_content_type(), which should be checked whether it's available. Ideally already during installation, but..


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

Offline

 

#10 2023-03-14 22:11:58

ShadowHunter
Member
2014-06-23
12

Re: [SOLVED] Web upload 100% succesfull and stuck

erAck wrote:

For that I submitted https://github.com/Piwigo/Piwigo/pull/1776 a while ago but it's still lingering.
The code is only needed to import SVG but depends on the PHP fileinfo extension being installed that provides mime_content_type(), which should be checked whether it's available. Ideally already during installation, but..

Thanks for the pull, I indeed wondered why Piwigo did not complaint about the missing module.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact