Jump to content

Help with Upgrade - Rollback


Recommended Posts

Hello guys,

 

I have a problem with a store at 1.4, i tried to upgrade to 1.6 using the one-click module.

 

Things were looking ok but in the end the process stopped, it was an error with the database, fooliness of me i didnt copy the error..

 

The upgrade did happen but the site was not functioning properly, probably due to the modules and old customization of old theme to work ok with new prestashop 1.6

 

I did have the option to rollback, as all data was fully backed up.

 

Well, i did rollback, and now i have 403 blank pages both in back and front office.

 

I set error reporting on, but still cannot see errors, just blank pages.

 

i edited both defines.inc.php , config.inc.php  , set error report on but still same blank pages.

 

Have you guys seen this in the past? If yes could you please let me know, id be really grateful, i have tried almost everything

 

Regards

 

Link to comment
Share on other sites

"06 Oct 2014 00:55:59","/home/aqua/domains/aqua-maniac.com/public_html/config/smarty.config.inc.php: 
      33","(Warning) require_once(/home/aqua/domains/aqua-maniac.com/public_html/tools/smarty/Smarty.class.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory"
"06 Oct 2014 00:56:01","/home/aqua/domains/aqua-maniac.com/public_html/config/smarty.config.inc.php: 
      33","(Warning) require_once(/home/aqua/domains/aqua-maniac.com/public_html/tools/smarty/Smarty.class.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory"
"06 Oct 2014 00:56:02","/home/aqua/domains/aqua-maniac.com/public_html/config/smarty.config.inc.php: 
      33","(Warning) require_once(/home/aqua/domains/aqua-maniac.com/public_html/tools/smarty/Smarty.class.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory"
"06 Oct 2014 00:56:22","/home/aqua/domains/aqua-maniac.com/public_html/config/smarty.config.inc.php: 
      33","(Warning) require_once(/home/aqua/domains/aqua-maniac.com/public_html/tools/smarty/Smarty.class.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory"

As error reporting is not working for me for some reason, during my research i found the following php code which i included at the top of the index.php files both in root and /admin folder

<?php error_reporting(0); 
   $old_error_handler = set_error_handler("userErrorHandler");
 
   function userErrorHandler ($errno, $errmsg, $filename, $linenum,  $vars) 
   {
     $time=date("d M Y H:i:s"); 
     // Get the error type from the error number 
     $errortype = array (1    => "Error",
                         2    => "Warning",
                         4    => "Parsing Error",
                         8    => "Notice",
                         16   => "Core Error",
                         32   => "Core Warning",
                         64   => "Compile Error",
                         128  => "Compile Warning",
                         256  => "User Error",
                         512  => "User Warning",
                         1024 => "User Notice");
      $errlevel=$errortype[$errno];
 
      //Write error to log file (CSV format) 
      $errfile=fopen("errors.csv","a"); 
      fputs($errfile,"\"$time\",\"$filename: 
      $linenum\",\"($errlevel) $errmsg\"\r\n"); 
      fclose($errfile);
 
      if($errno!=2 && $errno!=8) {
         //Terminate script if fatal error
         die("A fatal error has occurred. Script execution has been aborted");
      } 
   }
?>

This generates an errors.csv file in the root , where we can see the type of error we are having. Can anyone please with my errors above ?

 

Many thanks in advance!

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