Jump to content

Images disapear after uploading and saving.


Roberts R
 Share

Recommended Posts

Solution :
 

Quote

 

Thanks @adrian for solving this atm.

Issue related to :

Installing "SessionHandlerDB" module solves it.

 

 

 

Issue :

Fresh install ProcessWire 3.0.39 + multilangual support

In video it shows how it goes. And I can't figure it out.  It happens for few of my sites.

td;tl : Upload 5 image in images field ->  Save -> 2 left.

EDIT : Files are in "/assets/files/id"

processwire-bug.mp4

Edited by Roberts R
Solved
Link to comment
Share on other sites

Just installed PW 3.0.62 ( Newest ) . Same issue. I can upload one by one but not more.

More info related to issue?

php version :  5.6.98

gd

GD Support enabled
GD Version bundled (2.1.0 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.4.2
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version 1.2.49
WBMP Support enabled
XBM Support enabled
JIS-mapped Japanese Font Support enabled
 
Link to comment
Share on other sites

23 hours ago, Roberts R said:

Just installed PW 3.0.62 ( Newest ) . Same issue. I can upload one by one but not more.

More info related to issue?

php version :  5.6.98

You must have a typo here, so can you please provide your actual version of PHP 5.6?  The oldest version of PHP 5.6 should be 5.6.31

http://php.net/downloads.php

Thanks

  • Like 1
Link to comment
Share on other sites

On 30.8.2017 at 10:04 AM, Roberts R said:

EDIT : Files are in "/assets/files/id"

 

Do you mean that all 5 images are actually stored? But you can only see 2 of them after uploading, in page-edit view? 

Check the logs: site\assets\logs - maybe you'll find a hint. 

 

Link to comment
Share on other sites

17 minutes ago, adrian said:

My guess is that it's Apache's mod_security module blocking those filenames. What happens if you upload 5 images with other filenames?

I changed filenames but I get same result.

Idk if it helps but I tryed to upload to WP and it worked just fine.

Link to comment
Share on other sites

15 minutes ago, adrian said:

Is it always 2 images that work? Do you maybe have Max files set to 2 for the image field? eg:

59a8689378034_ScreenShot2017-08-31at12_50_20PM.png.508395b4f0659df8d67d348c8ab41d46.png

 

I use "Array of items" other settings are default (0 for limit).  Changed limit to 10 - same result.

Tryed with 4,5,6,7 result is same : 2 images left. EDIT: sometimes more images are left.

Link to comment
Share on other sites

10 hours ago, Roberts R said:

@dragan Nothing in console. No internal errors. Nothing.

Have you checked the console's Network tab - of course make sure this is open before you upload the images, and start by clearing any existing items to make it easier to see - sorry if this is obvious to you already.

Do you have PW's debug mode turned on? 

Also, installing Tracy Debugger might show some otherwise missed errors.

  • Like 2
Link to comment
Share on other sites

For a little more info on what I found which will hopefully help others:

There were lots of JS errors in the browser developer tools Console tab like this: 

Uncaught SyntaxError: Unexpected token <

which is a good indication that there is an error message, or at least some HTML being returned in the AJAX request which is not expected by the JS script.

So then I went to the Network tab of the developer tools and found the script that is uploading images (?id=1&InputfieldFileAjax=1), and checked the response - that is where I found this login form:

59a889f111bdd_ScreenShot2017-08-31at2_13_44PM.png.37a0604585acc11a7529e50a2387c00b.png

Also. of course, when I saved the page, it asked me to login again, so that was also a hint.

@Roberts R mentioned that he didn't get the console errors - turns out he didn't have "Disable Cache" checked on the Network tab and apparently that made a difference. I always have it checked because Chrome caching drives me crazy but this might be a helpful hint for others.

 

  • Like 6
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...