pixelcitystockshop Posted July 19, 2012 Share Posted July 19, 2012 Hi I'm extremely new to just about everything, so please be gentle! I just set up my shop last week and did a test run where a friend ordered a download and everything went fine, payment received, confirmation emails sent etc. Then a few days later at the Shipping stage of the checkout a fatal error notice comes up. I've just changed the defines.inc.php so I could see the details and I get this: Array ( [0] => Array ( [file] => /home/pixelcit/public_html/stockphoto/classes/PaymentModule.php [line] => 98 [function] => displayError [class] => ToolsCore [type] => :: [args] => Array ( ) ) [1] => Array ( [file] => /home/pixelcit/public_html/stockphoto/controllers/ParentOrderController.php [line] => 162 [function] => validateOrder [class] => PaymentModuleCore [object] => FreeOrder Object ( [currentOrder] => [currencies] => 1 [currencies_mode] => checkbox [id] => [version] => [name] => [displayName] => [description] => [author] => [need_instance] => 1 [tab] => [active] => [_lang:protected] => Array ( ) [_path:protected] => [warning] => [beforeUninstall] => [_errors:protected] => [table:protected] => module [identifier:protected] => id_module [limited_countries] => Array ( ) [free_order_class] => 1 ) [type] => -> [args] => Array ( [0] => 7 [1] => 2 [2] => 0 [3] => Free order [4] => [5] => Array ( ) [6] => [7] => [8] => 1f5bdc68ed9a05d9357d414e9b5a6c48 ) ) [2] => Array ( [file] => /home/pixelcit/public_html/stockphoto/controllers/OrderController.php [line] => 131 [function] => _checkFreeOrder [class] => ParentOrderControllerCore [object] => OrderController Object ( [step] => 3 [ssl] => 1 [php_self] => order.php [nbProducts] => 1 [errors] => Array ( ) [iso] => [orderBy] => [orderWay] => [p] => [n] => [auth] => [guestAllowed] => [authRedirection] => [restrictedCountry:protected] => [maintenance:protected] => ) [type] => -> [args] => Array ( ) ) [3] => Array ( [file] => /home/pixelcit/public_html/stockphoto/classes/FrontController.php [line] => 65 [function] => process [class] => OrderControllerCore [object] => OrderController Object ( [step] => 3 [ssl] => 1 [php_self] => order.php [nbProducts] => 1 [errors] => Array ( ) [iso] => [orderBy] => [orderWay] => [p] => [n] => [auth] => [guestAllowed] => [authRedirection] => [restrictedCountry:protected] => [maintenance:protected] => ) [type] => -> [args] => Array ( ) ) [4] => Array ( [file] => /home/pixelcit/public_html/stockphoto/order.php [line] => 29 [function] => run [class] => FrontControllerCore [object] => OrderController Object ( [step] => 3 [ssl] => 1 [php_self] => order.php [nbProducts] => 1 [errors] => Array ( ) [iso] => [orderBy] => [orderWay] => [p] => [n] => [auth] => [guestAllowed] => [authRedirection] => [restrictedCountry:protected] => [maintenance:protected] => ) [type] => -> [args] => Array ( ) ) ) Great, now does anyone see what the problem might be? As I said I'm extremely new to all this... thanks in advance Heather Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 19, 2012 Share Posted July 19, 2012 Hi Heather, What was the specific error message you received? -Mike Link to comment Share on other sites More sharing options...
pixelcitystockshop Posted July 20, 2012 Author Share Posted July 20, 2012 All it said in non-developer mode was Fatal error, and the cart and account modules (both in the right hand column) disappear at the same time. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 20, 2012 Share Posted July 20, 2012 All it said in non-developer mode was Fatal error, and the cart and account modules (both in the right hand column) disappear at the same time. Can you please check your hosting provider's error logs and let us know what is listed there? -Mike Link to comment Share on other sites More sharing options...
pixelcitystockshop Posted July 22, 2012 Author Share Posted July 22, 2012 There's nothing in the error log (hopefully I'm looking in the right place, the Error Log in C-Panel?) When I open the cart.php it takes me to my shop page and says there is 1 error "Invalid token" When I open the product.php it says "this page has moved" and then "Product not found" I don't know if this narrows it down for you, but ANY help is still much appreciated. Heather Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 23, 2012 Share Posted July 23, 2012 Hi Heather, In your config/config.inc.php file, please set "display_errors" to "on," reload the page and let us know if you receive any error messages there. -Mike Link to comment Share on other sites More sharing options...
pixelcitystockshop Posted July 23, 2012 Author Share Posted July 23, 2012 Hi Mike I still get the same message as above (and a simple Fatal Error when I turned off developer mode again). Does it help if I show you what the config.inc.php file says?: <?php /* * 2007-2012 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-2012 PrestaShop SA * @version Release: $Revision: 14009 $ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ /* Debug only */ @ini_set('display_errors', 'on'); define('_PS_DEBUG_SQL_', false); $start_time = microtime(true); /* Compatibility warning */ define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false); /* SSL configuration */ define('_PS_SSL_PORT_', 443); /* Improve PHP configuration to prevent issues */ ini_set('upload_max_filesize', '100M'); ini_set('default_charset', 'utf-8'); ini_set('magic_quotes_runtime', 0); // correct Apache charset (except if it's too late if (!headers_sent()) header('Content-Type: text/html; charset=utf-8'); /* No settings file? goto installer...*/ if (!file_exists(dirname(__FILE__).'/settings.inc.php')) { $dir = ((is_dir($_SERVER['REQUEST_URI']) OR substr($_SERVER['REQUEST_URI'], -1) == '/') ? $_SERVER['REQUEST_URI'] : dirname($_SERVER['REQUEST_URI']).'/'); if (!file_exists(dirname(__FILE__).'/../install')) die('Error: \'install\' directory is missing'); header('Location: install/'); exit; } require_once(dirname(__FILE__).'/settings.inc.php'); /* Include all defines */ require_once(dirname(__FILE__).'/defines.inc.php'); if (!defined('_PS_MAGIC_QUOTES_GPC_')) define('_PS_MAGIC_QUOTES_GPC_', get_magic_quotes_gpc()); if (!defined('_PS_MODULE_DIR_')) define('_PS_MODULE_DIR_', _PS_ROOT_DIR_.'/modules/'); if (!defined('_PS_MYSQL_REAL_ESCAPE_STRING_')) define('_PS_MYSQL_REAL_ESCAPE_STRING_', function_exists('mysql_real_escape_string')); /* Autoload */ require_once(dirname(__FILE__).'/autoload.php'); /* Redefine REQUEST_URI if empty (on some webservers...) */ if (!isset($_SERVER['REQUEST_URI']) OR empty($_SERVER['REQUEST_URI'])) { if (substr($_SERVER['SCRIPT_NAME'], -9) == 'index.php' && empty($_SERVER['QUERY_STRING'])) $_SERVER['REQUEST_URI'] = dirname($_SERVER['SCRIPT_NAME']).'/'; else { $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; if (isset($_SERVER['QUERY_STRING']) AND !empty($_SERVER['QUERY_STRING'])) $_SERVER['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING']; } } /* Trying to redefine HTTP_HOST if empty (on some webservers...) */ if (!isset($_SERVER['HTTP_HOST']) OR empty($_SERVER['HTTP_HOST'])) $_SERVER['HTTP_HOST'] = @getenv('HTTP_HOST'); /* aliases */ function p($var) { return (Tools:($var)); } function d($var) { Tools:($var); } function ppp($var) { return (Tools:($var)); } function ddd($var) { Tools:($var); } global $_MODULES; $_MODULES = array(); /* Load all configuration keys */ Configuration::loadConfiguration(); /* Load all language definitions */ Language::loadLanguages(); /* Define order state */ // DEPRECATED : these defines are going to be deleted on 1.6 version of Prestashop // USE : Configuration::get() method in order to getting the id of order state define('_PS_OS_CHEQUE_', Configuration::get('PS_OS_CHEQUE')); define('_PS_OS_PAYMENT_', Configuration::get('PS_OS_PAYMENT')); define('_PS_OS_PREPARATION_', Configuration::get('PS_OS_PREPARATION')); define('_PS_OS_SHIPPING_', Configuration::get('PS_OS_SHIPPING')); define('_PS_OS_DELIVERED_', Configuration::get('PS_OS_DELIVERED')); define('_PS_OS_CANCELED_', Configuration::get('PS_OS_CANCELED')); define('_PS_OS_REFUND_', Configuration::get('PS_OS_REFUND')); define('_PS_OS_ERROR_', Configuration::get('PS_OS_ERROR')); define('_PS_OS_OUTOFSTOCK_', Configuration::get('PS_OS_OUTOFSTOCK')); define('_PS_OS_BANKWIRE_', Configuration::get('PS_OS_BANKWIRE')); define('_PS_OS_PAYPAL_', Configuration::get('PS_OS_PAYPAL')); define('_PS_OS_WS_PAYMENT_', Configuration::get('PS_OS_WS_PAYMENT')); /* It is not safe to rely on the system's timezone settings, and this would generate a PHP Strict Standards notice. */ if (function_exists('date_default_timezone_set')) @date_default_timezone_set(Configuration::get('PS_TIMEZONE')); /* Smarty */ require_once(dirname(__FILE__).'/smarty.config.inc.php'); /* Possible value are true, false, 'URL' (for 'URL' append SMARTY_DEBUG as a parameter to the url) default is false for production environment */ define('SMARTY_DEBUG_CONSOLE', false); There may be a clue in there that I don't understand? Also, it may help to know that I moved the checkout module to the lefthand column it no longer disappears when the Fatal error notice comes up - it seems it's just the right hand column that disappears, not specfic modules.... cheers Heather Link to comment Share on other sites More sharing options...
mundomagos Posted August 14, 2012 Share Posted August 14, 2012 Hi I had the same Problem and Now It's solved, go to your config.php and to the line order state and put a number beside the comma.. like this define('_PS_OS_CHEQUE_',1, Configuration::get('PS_OS_CHEQUE')); define('_PS_OS_PAYMENT_',2, Configuration::get('PS_OS_PAYMENT')); define('_PS_OS_PREPARATION_',3, Configuration::get('PS_OS_PREPARATION')); define('_PS_OS_SHIPPING_',4, Configuration::get('PS_OS_SHIPPING')); define('_PS_OS_DELIVERED_',5, Configuration::get('PS_OS_DELIVERED')); define('_PS_OS_CANCELED_',6, Configuration::get('PS_OS_CANCELED')); define('_PS_OS_REFUND_',7, Configuration::get('PS_OS_REFUND')); define('_PS_OS_ERROR_',8, Configuration::get('PS_OS_ERROR')); define('_PS_OS_OUTOFSTOCK_',9, Configuration::get('PS_OS_OUTOFSTOCK')); define('_PS_OS_BANKWIRE_',10, Configuration::get('PS_OS_BANKWIRE')); define('_PS_OS_PAYPAL_',11, Configuration::get('PS_OS_PAYPAL')); define('_PS_OS_WS_PAYMENT_',12, Configuration::get('PS_OS_WS_PAYMENT')); and that's it!!!! Link to comment Share on other sites More sharing options...
pixelcitystockshop Posted September 4, 2012 Author Share Posted September 4, 2012 Hey mundomagos, cheers for your response! As it happens I just came back to this and downloaded the latest version of Prestashop and the problem appears to be solved. My config.php appears to still be how it was (or at least, it doesnt have the commas and numbers inserted as you advise above) but the shop is back to accepting payment, with no fatal error message. If it stuffs up again I'll definitely try your method though. cheers Link to comment Share on other sites More sharing options...
Recommended Posts