Jump to content

Prestashop crash - blank page frontend & backend - no errors


Recommended Posts

Hi,

 

I am trying for two weeks now to resolve a problem that lead to website crash, resulting in blank page. 

I enabled debug but i have no errors. 

 

Website: http://magazinescu.ro 

 

It seems that there's something wrong with index.php, because the only thing that i managed to find out from error_log is this:

"[07-May-2014 21:58:39 Europe/Helsinki] PHP Parse error:  syntax error, unexpected '>' in /home/grigor17/public_html/magazinescu.ro/index.php on line 26" 

 

I inspected the index.php and it has no such character on line 26. 

 

I tried to copy files from an earlier backup, but the problem persists. 

 

Two days before the crash the hosting company moved the files to a new server. I am running 5 prestashop websites, and only this one has this problem. Is there a chance that this website was running some scripts on the old server that the new one can't handle? 

 

Thanks, please advice. 

 

 

 

Link to comment
Share on other sites

Hi,

 

I am trying for two weeks now to resolve a problem that lead to website crash, resulting in blank page. 

I enabled debug but i have no errors. 

 

Website: http://magazinescu.ro

 

It seems that there's something wrong with index.php, because the only thing that i managed to find out from error_log is this:

"[07-May-2014 21:58:39 Europe/Helsinki] PHP Parse error:  syntax error, unexpected '>' in /home/grigor17/public_html/magazinescu.ro/index.php on line 26" 

 

I inspected the index.php and it has no such character on line 26. 

 

I tried to copy files from an earlier backup, but the problem persists. 

 

Two days before the crash the hosting company moved the files to a new server. I am running 5 prestashop websites, and only this one has this problem. Is there a chance that this website was running some scripts on the old server that the new one can't handle? 

 

Thanks, please advice. 

Could you please post the code for the file of /home/grigor17/public_html/magazinescu.ro/index.php?

Link to comment
Share on other sites

The code for index.php is:

   <?php
   /*
   * 2007-2013 PrestaShop
   *
   * NOTICE OF LICENSE
   *
   * This source file is subject to the Open Software License (OSL 3.0)
   * that is bundled with this package in the file LICENSE.txt.
   * It is also available through the world-wide-web at this URL:
   * If you did not receive a copy of the license and are unable to
   * obtain it through the world-wide-web, please send an email
   * to [email protected] so we can send you a copy immediately.
   *
   * DISCLAIMER
   *
   * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
   * versions in the future. If you wish to customize PrestaShop for your
   * needs please refer to http://www.prestashop.com for more information.
   *
   *  @author PrestaShop SA <[email protected]>
   *  @copyright  2007-2013 PrestaShop SA
   *  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
   *  International Registered Trademark & Property of PrestaShop SA
   */
 
   require(dirname(__FILE__).'/config/config.inc.php');
   Dispatcher::getInstance()->dispatch();
Link to comment
Share on other sites

the error code you attached  is connected to... lol... blank space between commented contents and "require" code

can you remove comments:

/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2014 PrestaShop SA
*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

error code are different then?

Link to comment
Share on other sites

It seems i don't have permission to change files right now, i opened a ticket to the hosting company. 

 

I have previsously erased the comments you suggested, but same problem still occured, with new log_error row:

[07-May-2014 22:55:47 Europe/Helsinki] PHP Parse error:  syntax error, unexpected '>' in /home/grigor17/public_html/magazinescu.ro/index.php on line 4 

 

Also, i have tried uploading backed up files from 1 month earlier in magazinescu.ro. So i guess there is no error / issue with files themself. 

 

I guess there's some functions that prestashop uses, that the new server can't handle. Or there might be some error caused by the person who moved the files to the new server. 

 

Is there a way to disable things like Appache, Cache, File system cache etc. from server files? And after that delete all the junk contents? Maybe if i disable all performance options from server files it will run. 

 

Thank you

Link to comment
Share on other sites

×
×
  • Create New...