René H4 Posted October 25, 2019 Share Posted October 25, 2019 Hi, I am debugging a fault in a script. The script is written for the official version of OSc. I use Frozen, so I think these lines need to be changed? if(!file_exists(DIR_FS_CATALOG . DIR_WS_MODULES .'payment/'. $payment . '.php')) and require_once(DIR_FS_CATALOG . DIR_WS_MODULES .'payment/'. $payment . '.php'); To what exactly? I can't figure out. Link to comment Share on other sites More sharing options...
♥ecartz Posted October 25, 2019 Share Posted October 25, 2019 I believe that it's if (!file_exists(DIR_FS_CATALOG . 'includes/modules/payment/'. $payment . '.php')) and require_once(DIR_FS_CATALOG . 'includes/modules/payment/'. $payment . '.php'); Here's the commit. It says that the following were removed define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); So anything with DIR_WS_MODULES should be replaced with 'includes/modules/' and then you can concatenate neighboring strings. DIR_FS_CATALOG and $payment should stay the same. If you continue to have trouble, try replacing $payment with $GLOBALS['payment'] and output both (either to log or screen; preferably log if a live site). Always back up before making changes. Link to comment Share on other sites More sharing options...
René H4 Posted October 26, 2019 Author Share Posted October 26, 2019 Thanks @ecartz will give it a go! Payments are going well, but the conformation messge is not sent out. Your answer definetly puts me in the right direction. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.