Jump to content

Recommended Posts

I am wondering if anyone knows how to resolve a new issue. During the day i seem ok to log into my backoffice. But late at night i get a 504 time-out. And i can't log in. Makes no sense as i have made no changes and this is usually the server issue. My web hosting said their end is fine and its a Prestashop issue. How can that be? How can i fix this? Or report it? Thanks.

Link to comment
Share on other sites

17 hours ago, Customer Service said:

I am wondering if anyone knows how to resolve a new issue. During the day i seem ok to log into my backoffice. But late at night i get a 504 time-out. And i can't log in. Makes no sense as i have made no changes and this is usually the server issue. My web hosting said their end is fine and its a Prestashop issue. How can that be? How can i fix this? Or report it? Thanks.

 

Hi, see your apache error log, it should have info on what exactly is timing out. Without this you will not be able to isolate the cause.

here is some general info on 504 you might find helpful.

Link to comment
Share on other sites

The error changes each time. Never the same. This came from erroe log in my cpanel.

[Sat Nov 17 19:09:03 2018] [error] [client 184.154.139.10] ModSecurity: Access denied with code 406 (phase 2). Pattern match " Smarty: Unable to load template file 'controllers/modules/login_addons.tpl' <-- 
  thrown in /home1/flysimwa/public_html/FLYSTORE_2015/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 129

[Sat Nov 17 18:56:34 2018] [error] [client 184.154.139.10] ModSecurity: Access denied with code 406 (phase 2). Match of "rx (alt_mod_frameset.php|checkout_shipping.php|^/components/com_zoom/etc/|/admin\\\\.swf\\\\?nick=|/editor/filemanager/browser/default/browser\\\\.html\\\\?(type=image&)?Connector=\\\\.\\\\./\\\\.\\\\./connectors|/phpthumb\\\\.php\\\\?((?:w|h)=[0-9]+&)?((?:w|h)=[0-9]+&)?src= ..." against "REQUEST_URI" required. [file "/etc/httpd/modsecurity.d/10_asl_rules.conf"] [line "232"] [id "340009"] [rev "57"] [msg "Protected Path Access denied in URI/ARGS"] [data " /etc/"] [severity "CRITICAL"] [hostname "historicfairbury.com"] [uri "/9/templates/9-database/index.php"] [unique_id "W-DG0kKT9OcAD4OUOFMAAAIX"]

 

Found this in the actual commerce error log

[17-Nov-2018 04:23:33 US/Pacific-New] PHP Warning:  htmlspecialchars() expects parameter 1 to be string, array given in /home1/flysimwa/public_html/FLYSTORE_2015/cache/smarty/compile/a9/de/fc/a9defcdefde1c4b8a7358a1df7245736ac76b769.file.header.tpl.php on line 102

Edited by Customer Service (see edit history)
Link to comment
Share on other sites

I disabled .htaccess and i was able to log in. What is wrong with my code that times out my back office log in?

 

# Use PHP7 Single php.ini as default
AddHandler application/x-httpd-php70s .php

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.flysimware.com/$1 [R,L]

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://flysimware.com/$1 [R,L]

# BEGIN WordPress
AddHandler application/x-httpd-php70 .php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Edited by Customer Service (see edit history)
Link to comment
Share on other sites

Going to try this for now

 

 

# Use PHP7 Single php.ini as default
AddHandler application/x-httpd-php70s .php

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.flysimware.com/$1 [L,R=301]

# BEGIN WordPress
AddHandler application/x-httpd-php70 .php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

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