Jump to content

Import showing Internal Server Error


Recommended Posts

I have prestashop version 1.5.4.1 and have purchased module

Module Advanced CSV Export for 1.5 (Produts&Orders /Cron/CSV)

 

 

Export is fantastic all fields are there i could not be more pleased - However

 

When i import I get internal server error.

 

On checking the logs with my hosting company, its caused by the Admin Index,php file which is showing unexpected end of headers.

 

Something in this file is causing the module to fail, as though something is missing from the index file. I have put the index file below. If anyone can help it would be great as this is the first time i have got a full shop and for this to fail is a blow.

 

Regards

Chris

 

 

<?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:
* 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-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
*/[/b]

$timer_start = microtime(true);
define('_PS_ADMIN_DIR_', getcwd());
require(_PS_ADMIN_DIR_.'/../config/config.inc.php');
require(_PS_ADMIN_DIR_.'/functions.php');
//small test to clear cache after upgrade
if (Configuration::get('PS_UPGRADE_CLEAR_CACHE'))
{
header('Cache-Control: max-age=0, must-revalidate');
header('Expires: Mon, 06 Jun 1985 06:06:00 GMT+1');
Configuration::updateValue('PS_UPGRADE_CLEAR_CACHE', 0);
}
// For retrocompatibility with "tab" parameter
if (!isset($_GET['controller']) && isset($_GET['tab']))
$_GET['controller'] = strtolower($_GET['tab']);
if (!isset($_POST['controller']) && isset($_POST['tab']))
$_POST['controller'] = strtolower($_POST['tab']);
if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab']))
$_REQUEST['controller'] = strtolower($_REQUEST['tab']);
// Prepare and trigger admin dispatcher
Dispatcher::getInstance()->dispatch();

Link to comment
Share on other sites

When i import I get internal server error.
its caused by the Admin Index,php file which is showing unexpected end of headers.

 

it's really weird that end of headers crashes the site (it shouldn't!). Can you follow this: http://www.prestashop.com/forums/topic/224525-how-to-get-debug-information-for-500-error-or-blank-page/

 

and if any additional error appear - just paste the error code, it will be helpfull in this case

Link to comment
Share on other sites

All I got was this from the server log file:-

 

 

+0100] "POST /development/admin5944/index.php?controller=AdminImport&token=29a47ac8c9d99d212e0e9607fe12f68c HTTP/1.1" 500 534 "http://www.strickerworld.com/development/admin5944/index.php?controller=AdminImport&token=29a47ac8c9d99d212e0e9607fe12f68c" "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/4.0.6.2000 Chrome/26.0.1410.43 Safari/537.1"

 

The page itself just displayed this which has been showing every time, despite error reporting being turned on

 

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Link to comment
Share on other sites

×
×
  • Create New...