Jump to content

504 Gateway Timeout on SHIPPING config?


sampsonzak

Recommended Posts

Hi,

Been running a store now for over a year, PrestaShop has been fine apart from some hiccups, had to disable some plugins which would break my admin CP, not load product pages etc, that's all fixed as I disabled the plugin (think prestashop server was down or something so it made my backend useless and freezing.)

 

Since, I haven't had an issue with anything, which is great.. apart from one thing:

 

I CANNOT change my shipping settings. I've offered free worldwide delivery for the past year, but now I'm looking into improving the prices on my site, I need to add delivery costs, and the backend will not allow me to view the page to edit any of them.

 

When I visit 'Shipping > Preferences'  - it's fine, loads straight away.

When I click 'Shipping' or 'Shipping > Carriers' - It's stuck on loading for about 30 seconds - then to a 504 Gateway Timeout page.

 

This is the default shipping module, and here is the info from my store:

PrestaShop version: 1.7.2.4

Server information: Linux #1 SMP Wed Mar 28 14:22:08 EEST 2018 x86_64

Server software version: Apache

PHP version: 7.1.26

Memory limit: 768M

Max execution time: 120

Upload Max File size: 128M

 

Just to clarify - I have NO issue with any other module in my PrestaShop, it's simply JUST the SHIPPING - the ONLY one I need to use right now!! :(

 

I am clueless, I appreciate all help! Please let me know if you require any more info. I am stuck on what's wrong..

Link to comment
Share on other sites

My host has provided me with this debugging after they used an strace on my account:

 

fcntl(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(7, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0
sendto(7, "\2\0\0\0\16\0\0\0\32\0\0\0api.addons.prestashop.com\0", 38, MSG_NOSIGNAL, NULL, 0) = 38
poll([{fd=7, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=7, revents=POLLIN|POLLHUP}])
fcntl(7, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
fcntl(7, F_SETFL, O_RDWR) = 0
poll([{fd=7, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
fcntl(7, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0
read(7, 0x2a08943, 5) = -1 EAGAIN (Resource temporarily unavailable)

 

Anyone able to help fix this please! Very urgent and frustrating!

 

 

Link to comment
Share on other sites

7 hours ago, Janett said:

Try this to avoid call to api.addons.prestashop.com :

 

Connect to FTP

Open classes/Tools.php

Search


protected static $is_addons_up = true;

Replace to


protected static $is_addons_up = false;

 

Huge thanks. I went to PrestaShop's GitHub and they recommended this too - it worked straight away.

 

Thank you very much, I thought this was going to take weeks to figure out! Thanks :)

Link to comment
Share on other sites

  • 5 months later...
  • razaro changed the title to 504 Gateway Timeout on SHIPPING config?

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...