[Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]
I recently upgraded our catalog from 1.5.6a to 1.5.6b and one of the files changed was includes/init_includes/init_ipn_postcfg.php
I'm now getting this Debug log error:
Code:
[07-Jun-2019 09:19:54 EST5EDT] Request URI: /catalog/ipn_main_handler.php, IP address: 173.0.81.1
#1 require() called at [/X/X/X/public_html/XXX/catalog/includes/init_includes/init_ipn_postcfg.php:22]
#2 require(/X/X/X/public_html/XXX/catalog/includes/init_includes/init_ipn_postcfg.php) called at [/X/X/X/public_html/XXX/catalog/includes/autoload_func.php:48]
#3 require(/X/X/X/public_html/XXX/catalog/includes/autoload_func.php) called at [/X/X/X/public_html/XXX/catalog/includes/application_top.php:170]
#4 require(/X/X/X/public_html/XXX/catalog/includes/application_top.php) called at [/X/X/X/public_html/XXX/catalog/ipn_main_handler.php:114]
--> PHP Warning: require(/X/X/X/public_html/XXX/catalog/includes/languages/englishcheckout_process.php): failed to open stream: No such file or directory in /X/X/X/public_html/XXX/catalog/includes/init_includes/init_ipn_postcfg.php on line 22.
[07-Jun-2019 09:19:54 EST5EDT] PHP Fatal error: require(): Failed opening required '/X/X/X/public_html/XXX/catalog/includes/languages/englishcheckout_process.php' (include_path='.:/usr/local/lib/php') in /X/X/X/public_html/XXX/catalog/includes/init_includes/init_ipn_postcfg.php on line 22
This is the text in the new init_ipn_postcfg.php file :
Code:
/**
* require language defines
* require('includes/languages/english/checkout_process.php');
*/
if (!isset($_SESSION['language'])) $_SESSION['language'] = 'english';
require(zen_get_file_directory(DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'], 'checkout_process.php', 'false'));
?>
The error seems to indicate that the file is outputting an incorrect path - languages/englishcheckout_process.php instead of languages/english/checkoutprocess.php
I'm not PHP proficient enough to know how to fix.
Bookmarks