Upload Image fail

Hello

I’m using Sitecake release 2.3.2 with php 5.6.22 on a Debian server

When I try to upload an image I’ve got an error :
“Internal Server error”

I’ve no ideas what’s happened. What can I do ?

Thanks

I can see those errors into the Chrome console :

Failed parsing ‘srcset’ attribute value since its ‘w’ descriptor is invalid.
Dropped srcset candidate sitecake-temp/r575fdb792020e/draft/sitecake-temp/r575fdb792020e/draft/sitecake-temp/r575fdb792020e/draft/sitecake-temp/r575fdab71404b/draft/images/page-de-garde-1-sc575ecdd191404-740.jpg

Can you try to remove sitecake-temp dir and try again? Just publish before you do that so you don’t loose any of your changes.

Hello

Thanks for you answer.

yes I have remove the folder but I’ve the same issue.

Regards

Hi, can you send us site url and password as private message so we can check it out?

Hi, I seem to have the same issue.
Since all changes Sitecake is making to the files are automatically commit to my repository I think I see what is going on.

The folder name in the src attribute is replicated every time. See my img tag below.
It contains several times the sitecake-temp/r5796336b0a9cf/draft/ structure.

<img alt="" style="width:37.03704%;" src="sitecake-temp/r5796336b0a9cf/draft/sitecake-temp/r5796336b0a9cf/draft/sitecake-temp/r5796336b0a9cf/draft/sitecake-temp/r5796336b0a9cf/draft/sitecake-temp/r5796336b0a9cf/draft/images/splitonline-sc57962b97a3727-100.png" srcset="sitecake-temp/r5796336b0a9cf/draft/sitecake-temp/r5796336b0a9cf/draft/sitecake-temp/r5796336b0a9cf/draft/sitecake-temp/r5796336b0a9cf/draft/sitecake-temp/r5796336b0a9cf/draft/images/splitonline-sc57962b97a3727-100.png 100w"/>

Hi, what version of Sitecake are you using? This problem was introduced in version 2.3.1 or 2.3.2. With new 2.3.4 version this shouldn’t happen any more.

Problem was with publishing. If there was missing file or image uploaded through Sitecake, on publish action, excution was stopped and cleanup was never performed on published files. In version 2.3.4 we ignore missing files so like I said, this problem should be solved. Only thing is that you will need to cleanup your files manually or through Sitecake (by deleting images with wrong src attribute and upload them again)

Hi,

I am using the newest 2.3.4. Never used an older version, since I just started with Sitecake.
When I turned on debug mode it does not seem to happen anymore.
$app['debug'] = true;

Links look ok now:

But - to be honest - I have not really tested exact same scenario.

Hm, strange. Are you having problems when try to publish?

Hi @predragleka

Today I found some time to do some extra testing. I changed the debug option back to false. But all seems to be fine now. Sorry I have no reproduction scenario for you.

About your question about problems during publish. I remember that Sitecake was showing some errors during the Publish. Not sure that was the exact same moment the image links became nested. I also have emptied the sitecake-temp folder that day. So may be that fixed the issue.

OK. Glad to hear it’s OK now. If you encounter this problem again, pleas try to figure what exactly happen and report it so we can improve Sitecake :slight_smile:

Thanks