Jump to content

Weird behavior with admin page where it redirects to 503


AeroLogistica

Recommended Posts

  • 1 month later...

So this issue continued but we pretty much just ignored by adding ?_g=phpinfo after https://www.loteriagringa.com/play/admin.php and then, only then we gain access to the dashboard. The front office never had an issue until now, we enabled the PayPal extension, front office still works fine but when we try to log in as a customer into cubecart, baaam, the ghost of the old 503 error attacks, this time the front office. 

When we disable the extension everything is back to normal but we cannot offer the PayPal option to our customers. Thanks in advance!

 

regards,

AJ

Link to comment
Share on other sites

Ask your hosting provider if there is any firewall preventing your host account from sending out any PHP-initiated requests for data.

Such requests may be from www.cubecart.com, forums.cubecart.com, and www.google.com.

Also, there must be a web server error log, somewhere. If the web server issues a 503, the reason for it will get logged.

 

Link to comment
Share on other sites

In the file /includes/functions.inc.php, there is the function offline().

In this function, HTTP headers are set for a 503 response, if the store is offline. Note that this function is only called when starting up the storefront - not the admin backend.

We will make this check:

From:

        header('HTTP/1.1 503 Service Temporarily Unavailable');
        header('Status: 503 Service Temporarily Unavailable');
        header('Retry-After: 3600');

To:

        header('HTTP/1.1 503 Our Store is temporarily unavailable');
        header('Status: 503 Our Store is temporarily unavailable');
        header('Retry-After: 3600');

Now, after logging in and, by default, wanting to show the dashboard, if the browser shows this changed message, we will start looking here.

 

Link to comment
Share on other sites

If the error is from the web server, and is sent even before the web server starts running PHP to execute CubeCart, there is nothing that can be added to CubeCart to report any diagnostic data.

There must be a web server error log somewhere. If it cannot be found in your hosted account's control panel, contact your hosting provider.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...