vickif Posted March 31, 2017 Share Posted March 31, 2017 Getting close to figuring out all of this new(er) cubecart, hopefully one last question. On the billing it has an entry for County, but this needs to be State for U.S. I know I'll have to go into a php page, can somebody tell me where and what lines, and code to change. Image included. Thank you! Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted March 31, 2017 Share Posted March 31, 2017 Check to see if your admin default language is US English or UK English. Do you have the US English language files installed? IF you do have US English as default, then you can make the wording change without having to fiddle with code. (You shouldn't have to, as the US wording is already State) Goto Admin Settings>Languages>click on English (US)>Address - Phrases from drop down. You can change wordings here and they will be databased. They will survive upgrades. Quote Link to comment Share on other sites More sharing options...
vickif Posted March 31, 2017 Author Share Posted March 31, 2017 I had looked at that, but didn't see where US was installed. Here's a screen shot, how do I get the US Language? Quote Link to comment Share on other sites More sharing options...
vickif Posted April 1, 2017 Author Share Posted April 1, 2017 (edited) OK, found the Extension via google, installed and went thru the Address drop down, but nothing has changed. Amend that, the drop down has the states but the field name still says County (not state). Here is it, tcsmg.com/2017conference if you want to see it. http://tcsmg.com/2017conference/index.php?_a=checkout Edited April 1, 2017 by vickif Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 1, 2017 Share Posted April 1, 2017 Clear your language cache in CC and your browser Quote Link to comment Share on other sites More sharing options...
vickif Posted April 1, 2017 Author Share Posted April 1, 2017 Did, restarted and everything, cleared language cache and 'general' cache, County still does not say State. I am also looking at this on tablet, mobile, etc. Also did this: Now navigate to "Filemanager" >> "Email Templates" and click the "Import" tab. In the import fieldset select en-US then click "Save". Still County, doesn't say State. Quote Link to comment Share on other sites More sharing options...
vickif Posted April 1, 2017 Author Share Posted April 1, 2017 Followed instructions on another thread to debug, Language shows en-GB, even tho I've installed the US language pack. So what do I do now? Quote Link to comment Share on other sites More sharing options...
Noodleman Posted April 1, 2017 Share Posted April 1, 2017 I've seen this happen if you have an invalid / broken or missing language file for ANY installed module. Just one will break the entire system. Can you list all of the modules you have installed? It might be one I am already aware of Quote Link to comment Share on other sites More sharing options...
garywhitling Posted May 10, 2017 Share Posted May 10, 2017 I have the same issue apart from the other way around. I have changed the word State to County in Settings/Languages/English (UK) and (US) but all areas within the website are showing State. Any suggestions? Gary Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 10, 2017 Share Posted May 10, 2017 @garywhitling What CC version are you on? Is this a new install or an upgrade? If upgrade, from what? Quote Link to comment Share on other sites More sharing options...
garywhitling Posted May 10, 2017 Share Posted May 10, 2017 Hi, Its an upgrade a while back from V5 to V6.0.12 with a modded foundation skin. https://www.firstchoicemobility.com/index.php Regards Gary Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 10, 2017 Share Posted May 10, 2017 Please try clearing CubeCart's cache (admin, Maintenance, Rebuild tab, Clear Cache). CubeCart reads the xml files, overwrites relevant keys found in the database, and caches the whole lot. Quote Link to comment Share on other sites More sharing options...
garywhitling Posted May 15, 2017 Share Posted May 15, 2017 Hi Brian, Carried that out again but still no change across the whole site :-( Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 15, 2017 Share Posted May 15, 2017 Check to see what language the Super Admin has as default. That turned out to be the cause of one poster's issue. Quote Link to comment Share on other sites More sharing options...
garywhitling Posted May 16, 2017 Share Posted May 16, 2017 Hi Dirty Butter, Checked that too and all Users are UK. so still trying to find a solution :-( Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 16, 2017 Share Posted May 16, 2017 On 4/1/2017 at 2:05 AM, Noodleman said: I've seen this happen if you have an invalid / broken or missing language file for ANY installed module. Just one will break the entire system. Can you list all of the modules you have installed? It might be one I am already aware of Try Noodleman's suggestion. Please list ALL your plugins. Quote Link to comment Share on other sites More sharing options...
Noodleman Posted May 17, 2017 Share Posted May 17, 2017 (edited) did you ever look into what I suggested? what modules do you have installed? If you edit any installed language to change a language string, do you run into any issues (white screen etc). Edited May 17, 2017 by Noodleman Quote Link to comment Share on other sites More sharing options...
garywhitling Posted May 17, 2017 Share Posted May 17, 2017 Hi Noodleman, Here are the plug-ins I have installed. I haven't had any issues with white screens. Can you see any plugins that you are aware of that might be the problem? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 17, 2017 Share Posted May 17, 2017 While you're waiting for @Noodleman to respond - please try temporarily disabling as many plugins as possible and see if the language problem resolves itself. Clear CC and browser caches, of course. Quote Link to comment Share on other sites More sharing options...
Noodleman Posted May 18, 2017 Share Posted May 18, 2017 Tax Exempt customers may cause you the problem in newwer versions of CubeCart and could be the root cause of the issue. Open & Edit the following file: /modules/plugins/tax_exempt_customers/language/module.definitions.xml replace the entire contents of the file with: <?xml version="1.0" encoding="UTF-8"?> <definitions version="1.0"> <string name="module_title"><![CDATA[Tax Exempt Customers]]></string> </definitions> The module doiesn't correctly make use of the language system (It will in the next version), however if you have an empty language file CubeCart seems to not like it and will break the entire language system. If this doesn't fix the issue, the next task will be to check EVERY module you have installed (regardless of status) has a valid module.definitions.xml language file. Quote Link to comment Share on other sites More sharing options...
garywhitling Posted October 18, 2017 Share Posted October 18, 2017 Hi Noodleman, I tried what you have suggested but now i have the white screen you mentioned before, when trying to view the language file. I get this error message when looking in the error log: [Exception] /var/www/vhosts/MYWEBSITE.com/httpdocs/classes/language.class.php:246 - Call to a member function attributes() on null I have turned off each plugin, one at a time to see if that helps but still no joy :-( I am using CubeCart version 6.1.12 Any Other Suggestions? Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 19, 2017 Share Posted October 19, 2017 (edited) If this is what you used: <?xml version="1.0" encoding="UTF-8"?> <definitions version="1.0"> <string name="module_title"><![CDATA[Tax Exempt Customers]]></string> </definitions> then please use this version instead: <?xml version="1.0" encoding="UTF-8"?> <definitions version="1.0"> <group name="tax_exempt_customers"> <string name="module_title"><![CDATA[Tax Exempt Customers]]></string> </group> </definitions> I am just guessing about the group name. The error references line 246: if(!isset($content->group->string) && !isset($content->group[0]->attributes()->name)) { Without the 'group' node, the first expression is true, so try the next expression. However, since there is no 'group' node, that part of the object chaining resolves to 'null', and the attempt to use the attributes() method on a null object fails - fatally. PHP crashes and you get the white screen of death. The revised code follows CubeCart's 'Language version 1.0' node hierarchy (schema). Edited October 19, 2017 by bsmither Quote Link to comment Share on other sites More sharing options...
garywhitling Posted October 19, 2017 Share Posted October 19, 2017 Hi Brian, As always you have come up with the solution :-) Yep now working perfectly Thank you Gary 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.