Customer Service Posted November 17, 2018 Share Posted November 17, 2018 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 More sharing options...
El Patron Posted November 17, 2018 Share Posted November 17, 2018 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 More sharing options...
Customer Service Posted November 18, 2018 Author Share Posted November 18, 2018 (edited) 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 November 18, 2018 by Customer Service (see edit history) Link to comment Share on other sites More sharing options...
Customer Service Posted November 18, 2018 Author Share Posted November 18, 2018 (edited) 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 November 18, 2018 by Customer Service (see edit history) Link to comment Share on other sites More sharing options...
Customer Service Posted November 18, 2018 Author Share Posted November 18, 2018 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 More sharing options...
Customer Service Posted November 18, 2018 Author Share Posted November 18, 2018 Removing this allows me to log into my back office. But then the front office will not load. AddHandler application/x-httpd-php70 .php Link to comment Share on other sites More sharing options...
El Patron Posted November 18, 2018 Share Posted November 18, 2018 Hi, mod_security rules are handled within your hosting. You may be able to put in exceptions but if not contact your hosting provider and they can probably help. Let us know how it goes. el Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now