Wilson Dmello Posted October 11, 2015 Share Posted October 11, 2015 11 Oct 2015, 12:27 [Error] E:XAMPPhtdocsclasseslanguage.class.php:655 - Invalid language path: E:XAMPPhtdocsmodulesgateway2Checkoutadmin/language - 2Checkout - module.definitions.xml Why this error ? while using XAMPP in Windows 7.how to fix this ? Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 11, 2015 Share Posted October 11, 2015 Welcome Wilson Dmello! Glad to see you made it to the forums.This could happen if you had a gateway or plugin installed and enabled in one installation of CubeCart, then started using another installation of CubeCart (maybe a newer version), but having this second installation use the same database, while not having the same modules and plugins installed in the second installation.That is, CubeCart-A has recorded in the database the existence and configuration of 2Checkout. Then, CubeCart-B sees the database records for 2Checkout and wants to "initialize" that gateway. But the 2Checkout module is not present in CubeCart-B. Quote Link to comment Share on other sites More sharing options...
Wilson Dmello Posted October 11, 2015 Author Share Posted October 11, 2015 I placed language folder inside admin folder in gateway/plugins, new error started [Exception] E:xampphtdocscubeincludeslibsmartysyspluginssmarty_internal_template.php:219 - Unable to load template file 'templates/main.php' Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 11, 2015 Share Posted October 11, 2015 Please put the language folders back where they were.In my previous response, I implied that you may have had a previous installation, or may have a separate active installation of Cubecart using a pre-existing database.Is this the case? Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 20, 2015 Share Posted October 20, 2015 Discovered the problem: a recent change to accommodate the case where if admin appears anywhere in the path, such as:/modules/plugins/enhanced_admin_order_entry/the removal of admin will corrupt the path. The fix was to put a slash in front of certain key words. This is a literal slash and will not solve the issue correctly on a Windows server - which uses the backslash - and, in fact, makes opening any module's control panel in admin result in a white screen.In /classes/module.class.php, near line 420:Find: $drop = array('/admin', '/classes', '/skin', '/language'); Change to: $drop = array(CC_DS.'admin', CC_DS.'classes', CC_DS.'skin', CC_DS.'language'); // array('/admin', '/classes', '/skin', '/language');This applies specifically to CC607 and CC608. Hopefully, the code will be adjusted in CC609. Quote Link to comment Share on other sites More sharing options...
Wilson Dmello Posted October 20, 2015 Author Share Posted October 20, 2015 Thank you , That worked. Quote Link to comment Share on other sites More sharing options...
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.