Jump to content

Problem with manual upgrade 5.2.2 to 5.2.3


Recommended Posts

Hi guys,

 

I have tried unsuccessfully to upgrade my cubecart store but i seem to be having an issue with the definitions.xml file.

 

Today my store went offline without warning and i have 96 pages containing this message in my system error logs.

 

[Exception] /home/matchatt/public_html/classes/language.class.php:670 - String could not be parsed as XML

 

Can anyone help?

 

Tried to change this file back as per the 5.2.3 to 5.2.3a upgrade.

 

Link to comment
Share on other sites

The loadDefinitions function can load any language file. It defaults to the definitions.xml file.

 

Since we cannot be sure which language file is bad, we can put in a piece of code that will show us the file being loaded. in the file /classes/language.class.php, find near line 668: if (file_exists($file)) {

on the same line after what is already there, add:

trigger_error('loadDefinitions: '.$file), E_USER_NOTICE);
 

 

Or, you can re-try to FTP the entire contents of the language folder and make sure the FTP program is sending the files in "binary" mode.

Link to comment
Share on other sites

Tried to add this line but i fear i am missing something as it stops my pages from displaying.

 

I have just tried a manual upgrade to 5.2.4 and it seems ok overall, however i do not see Categories, Products, Downloads or Images sections in admin when i click on them, just a blank page.

 

Here are the latest messages filling up my error log:

 

[31-Mar-2014 11:50:16 Europe/London] PHP Fatal error:  Call to a member function delete() on a non-object in /home/xxxxxx/public_html/classes/seo.class.php on line 294
[31-Mar-2014 10:54:34 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/xxxxxxx/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:54:40 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:54:40 UTC] PHP Fatal error:  Call to a member function select() on a non-object in /home/XXXXX/public_html/classes/seo.class.php on line 228
[31-Mar-2014 10:54:53 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:54:53 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:55:20 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:55:20 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:55:31 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:55:31 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:55:42 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:55:42 UTC] PHP Fatal error:  Call to a member function select() on a non-object in /home/XXXXX/public_html/classes/seo.class.php on line 228
[31-Mar-2014 10:55:58 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:55:58 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:56:05 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:56:05 UTC] PHP Fatal error:  Call to a member function select() on a non-object in /home/XXXXX/public_html/classes/seo.class.php on line 228
[31-Mar-2014 10:56:26 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:56:26 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:56:41 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:56:41 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:57:03 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:57:03 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:57:18 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:57:18 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:57:30 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:57:30 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:57:36 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:57:36 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:57:38 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:57:38 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:57:43 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:57:43 UTC] PHP Fatal error:  Call to a member function select() on a non-object in /home/XXXXX/public_html/classes/seo.class.php on line 228
[31-Mar-2014 10:57:49 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:57:49 UTC] PHP Fatal error:  Call to a member function select() on a non-object in /home/XXXXX/public_html/classes/seo.class.php on line 228
[31-Mar-2014 10:58:04 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:58:04 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:58:30 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:58:36 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:59:02 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:59:02 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:59:09 UTC] PHP Parse error:  syntax error, unexpected ',' in /home/XXXXX/public_html/classes/language.class.php on line 668
[31-Mar-2014 10:59:09 UTC] PHP Fatal error:  Class 'Language' not found in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 11:59:24 Europe/London] PHP Parse error:  syntax error, unexpected 'public' (T_PUBLIC) in /home/XXXXX/public_html/classes/filemanager.class.php on line 245
[31-Mar-2014 10:59:33 UTC] PHP Notice:  Cleaning cached files... in /home/XXXXX/public_html/classes/cache/cache.class.php on line 134
[31-Mar-2014 10:59:33 UTC] PHP Fatal error:  Call to a member function has() on a non-object in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:59:35 UTC] PHP Notice:  Cleaning cached files... in /home/XXXXX/public_html/classes/cache/cache.class.php on line 134
[31-Mar-2014 10:59:35 UTC] PHP Fatal error:  Call to a member function has() on a non-object in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 10:59:37 UTC] PHP Notice:  Cleaning cached files... in /home/XXXXX/public_html/classes/cache/cache.class.php on line 134
[31-Mar-2014 10:59:37 UTC] PHP Fatal error:  Call to a member function has() on a non-object in /home/XXXXX/public_html/classes/seo.class.php on line 720
[31-Mar-2014 11:59:42 Europe/London] PHP Parse error:  syntax error, unexpected 'public' (T_PUBLIC) in /home/XXXXX/public_html/classes/filemanager.class.php on line 245
[31-Mar-2014 11:59:48 Europe/London] PHP Parse error:  syntax error, unexpected 'public' (T_PUBLIC) in /home/XXXXX/public_html/classes/filemanager.class.php on line 245
[31-Mar-2014 11:02:50 UTC] PHP Fatal error:  No valid language found! in /home/XXXXX/public_html/classes/language.class.php on line 96
[31-Mar-2014 12:03:17 Europe/London] PHP Parse error:  syntax error, unexpected 'public' (T_PUBLIC) in /home/XXXXX/public_html/classes/filemanager.class.php on line 245
[31-Mar-2014 12:04:00 Europe/London] PHP Parse error:  syntax error, unexpected 'public' (T_PUBLIC) in /home/XXXXX/public_html/classes/filemanager.class.php on line 245
[31-Mar-2014 12:07:49 Europe/London] PHP Warning:  No callback method defined. in /home/XXXXX/public_html/classes/cubecart.class.php on line 243
 
 
Please help!
Link to comment
Share on other sites

Again, didn't quadruple check the statement. There is an extra paren. That would be the errors in line 668. Try:

trigger_error('loadDefinitions: '.$file, E_USER_NOTICE);

Yes, we know about the snafoo in the charting in CC524. Fixed in a later version.

 

"Class Language not found" error is interesting. Make sure this file exists: /classes/language.class.php and that it is about 31K in size.

 

"unexpected 'public' (T_PUBLIC)" is also interesting. This syntax error would occur if a previous statement was not well-formed: missing semi-colon at the end, missing closing brace, missing closing parenthsis, etc.

 

"No callback method defined" is where a payment gateway is wanting to tell CubeCart about a transaction, but the information provided is incomplete.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...