I can see what would cause the code to fail but not how you're arriving in the situation causing it.
The errors you have indicated would be caused by the redirection code in the module for a non-standard Zen Cart page incorrectly trying to encode a query string ($_GET) parameter which is an array.
I'm posting some code for you to prevent these errors appearing in the module but it's strange that you're reaching this point. It means that instead of your product notifications form using the POST method, as with any Zen Cart store/template I've seen, your store must be using the GET method. Also, you must have entered a URI manually for the account products notification page?
Anyway, replace the following loop in includes/init_includes/init_ceon_uri_mapping.php:
PHP Code:
foreach ($_GET as $key => $value) {
$query_string .= '&' . urlencode($key) . '=' . urlencode($value);
}
with:
PHP Code:
if (is_array($value)) {
foreach ($value as $key2 => $value2) {
$query_string .= '&' . urlencode($key2) . '=' . urlencode($value2);
}
} else {
$query_string .= '&' . urlencode($key) . '=' . urlencode($value);
}
It's kludgely and off the top of my head but that should work! I'll add better code to a future version of the module (a little recursive function of course).
All the best...
Conor
ceon
Bookmarks