Jump to content

Backoffice Displays Php Code


omine

Recommended Posts

Some times, when i enter on BackOffice login page, the page displays a blank page with this:

* @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 1.4 $ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ /* Send the proper status code in HTTP headers */ header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); if (in_array(substr($_SERVER['REQUEST_URI'], -3), array('png', 'jpg', 'gif'))) { require_once(dirname(__FILE__).'/config/settings.inc.php'); header('Location: '.__PS_BASE_URI__.'img/404.gif'); exit; } require_once(dirname(__FILE__).'/config/config.inc.php'); ControllerFactory::getController('PageNotFoundController')->run();

Normally, i "solve" by refreshing the browser F5, then, the login page reload and is rendered correctly.

 

Sporadically, while navigating inside BackOffice pages, the same happens and i solve with F5 (refresh).

 

The server is not running any cache system like opcache, memcache  or apc.
 

PS 1.6.1.1
OS: Linux CentOS 7
PHP 5.5.28
Cache options: File System (Recompile templates if the files have been updated)
Apache/2.2.31

Interesting note, this always happened with PrestaShop on all versions. I'm using PrestaShop since version 4. But i never  give importance. 

But now i would like to know if this is a bug or some misconfiguration. 

This happens not only on specific environment. Happens on any environment, any version.. Maybe some bug from PrestaShop compile cache system.

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

  • 10 months later...

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