Jump to content

Image uploads 'Server responded with 0 code' - was working fine 3 days ago


Recommended Posts

My two sites were fine on Thursday when i last added some products. I've gone in today and when i try and upload an image, it fails and i get the following message: Server responded with 0 code . This is happening on both sites.

I have tried a different browser, cleared the Prestashop cache and browser cache, tried different WiFis in case of an ISP issue, and it doesn't work. But, file upload works from my mobile (BUT, only if downloaded locally to the phone - i get the same error if trying to upload from iCloud/Dropbox from my mobile). If trying to upload from a local file destination or Dropbox on the laptop, i am still getting the error, unlike on the phone, where if the image is on the local device, it uploads successfully.

 

PrestaShop 8.1

PHP 8.1.32 and 8.3.19 tried

Server side PHP settings (i cannot change):

Performance and security settings

memory_limit 128M (Default)

max_execution_time 30 (Default)

max_input_time 60 (Default)

post_max_size 8M (Default)

upload_max_filesize 2M (Default)                       (although this allows me to upload files 6+ mb)

opcache.enable on (Default)

disable_functions opcache_get_status

 

Hosting provider issue or maybe they made some changes?

 

I tried turning on debug mode and got a deprecated message in the log: User Deprecated: Since api-platform/core 2.7: The service "ApiPlatform\Core\Bridge\Symfony\Routing\IriConverter" is deprecated, use ApiPlatform\Symfony\Routing\IriConverter instead

 

But considering i found uploading from local files on my mobile works, i assume this isn't the problem.

 

There haven't been any back end PrestaShop changes or modules which need updating since?

Picture 1.png

Edited by garyc22
Added PHP info (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
On 4/13/2025 at 11:55 AM, garyc22 said:

My two sites were fine on Thursday when i last added some products.

 

On 4/13/2025 at 11:55 AM, garyc22 said:

Hosting provider issue or maybe they made some changes?

You are on the right track. Do you have 2 prestashop on a shared hoster?
On a "normal" server you have all kind of configuration abilities, is your contracted hoster a cost convenient one?  

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
×
×
  • Create New...