Originally Posted by
nl2dav
Looks like a PHP error. What do the myDEBUG-*.log files tell @/logs?
edit: Oh for some reason I overlooked the last posting.
Something is going wrong with redirection. The image links on the mainpage also do not work. Clue might be functions_general.php
Thank you for checking, I found some spaces at the end of functions_general.php so I've deleted that. Refreshed the homepage and still getting blank page after clicking on Add to Cart button. Here is the contents of the log file after that action:
Code:
<?php
/**
* functions_general.php
* General functions used throughout Zen Cart
*
* @package functions
* @copyright Copyright 2003-2016 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: Author: zcwilt Fri Apr 22 22:16:43 2015 +0000 Modified in v1.5.5 $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
/**
* Stop from parsing any further PHP code
*/
function zen_exit() {
session_write_close();
exit();
}
/**
* Redirect to another page or site
* @param string The url to redirect to
*/
function zen_redirect($url, $httpResponseCode = '') {
global $request_type;
// Are we loading an SSL page?
if ( (ENABLE_SSL == 'true') && ($request_type == 'SSL') ) {
// yes, but a NONSSL url was supplied
if (substr($url, 0, strlen(HTTP_SERVER . DIR_WS_CATALOG)) == HTTP_SERVER . DIR_WS_CATALOG) {
// So, change it to SSL, based on site's configuration for SSL
$url = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG . substr($url, strlen(HTTP_SERVER . DIR_WS_CATALOG));
}
}
// clean up URL before executing it
$url = preg_replace('/&{2,}/', '&', $url);
$url = preg_replace('/(&)+/', '&', $url);
// header locates should not have the & in the address it breaks things
$url = preg_replace('/(&)+/', '&', $url);
if ($httpResponseCode == '') {
session_write_close();
header('Location: ' . $url);
} else {
session_write_close();
header('Location: ' . $url, TRUE, (int)$httpResponseCode);
}
exit();
}
/**
* Parse the data used in the html tags to ensure the tags will not break.
* Basically just an extension to the php strtr function
* @param string The string to be parsed
* @param string The needle to find
*/
function zen_parse_input_field_data($data, $parse) {
return strtr(trim($data), $parse);
}
Also, the image links on the mainpage seem to work for me?
I hope I don't have to reinstall the template as I'd probably wreck the whole thing!
Bookmarks