Guest Posted November 4, 2005 Posted November 4, 2005 I installed the Store Pickup contribution without a glitch. I then proceeded to change the text in languages/english/modules/shipping/spu.php From the original: define('MODULE_SHIPPING_SPU_TEXT_DESCRIPTION', 'In-store pickup during regular business hours.'); define('MODULE_SHIPPING_SPU_TEXT_WAY', 'No shipping charge added. Pickup during regular business hours.'); To: define('MODULE_SHIPPING_SPU_TEXT_DESCRIPTION', 'We will e-mail you to schedule an appointment.'); define('MODULE_SHIPPING_SPU_TEXT_WAY', 'No shipping charge added. We will schedule an appointment for pickup.'); Made no other changes. After uploading the file I get the following error in /checkout_shipping.php Fatal error: Cannot instantiate non-existent class: spu in /home/bando2/public_html/store/includes/classes/shipping.php on line 39 I never touched shipping.php line 39 in shipping.php says: $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class']; For your convenience I have included the code from lines 35 to 45 of shipping.php for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) { include(DIR_WS_LANGUAGES . $language . '/modules/shipping/' . $include_modules[$i]['file']); include(DIR_WS_MODULES . 'shipping/' . $include_modules[$i]['file']); $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class']; } } } function quote($method = '', $module = '') { global $total_weight, $shipping_weight, $shipping_quoted, $shipping_num_boxes; Your assistance is greatly appreciated in fixing this error, I don't know PHP so I'm at a loss. Thanks in advance Quote
Guest Posted November 4, 2005 Posted November 4, 2005 Everything is working again after I reverted to the original files that came with the contribution. All I want to do is change the language that the customer sees, how can I do this without causing errors? I was very careful to not touch anything else in the file. I'm using Filezilla for the FTP and Crimson Editor to modify the files. Quote
wheeloftime Posted November 4, 2005 Posted November 4, 2005 Everything is working again after I reverted to the original files that came with the contribution. All I want to do is change the language that the customer sees, how can I do this without causing errors? I was very careful to not touch anything else in the file. I'm using Filezilla for the FTP and Crimson Editor to modify the files. Have you tried changing the language file again ? There seems nothing wrong with your textual changes so those shouldn't cause the error unless Crimson Editor saves in a wrong file format or possibly the upload got corrupted and that would mean a one time glitch if the next time it goes without problem. If the same error occurs again revert back and try changing the language file with notepad to see if that makes any difference. Quote
Guest Posted November 4, 2005 Posted November 4, 2005 Have you tried changing the language file again ? There seems nothing wrong with your textual changes so those shouldn't cause the error unless Crimson Editor saves in a wrong file format or possibly the upload got corrupted and that would mean a one time glitch if the next time it goes without problem. If the same error occurs again revert back and try changing the language file with notepad to see if that makes any difference. I will try that, thanks for your time. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.