[#6331] CB 2.0.15 Fatal Error

7 years 4 months ago - 7 years 4 months ago #288743 by hicksan
[#6331] CB 2.0.15 Fatal Error was created by hicksan
Hi, I have just upgraded to the latest CB 2.0.15 from 2.0.14 and I am now getting fatal errors as follows:

Fatal error: Using $this when not in object context in /home4/glovers1/public_html/libraries/CBLib/CB/Legacy/CBuser.php on line 1035

This appears for all list items for all users. Please advise urgently.

Regards, Andrew

Please Log in to join the conversation.

7 years 4 months ago #288761 by krileon
Replied by krileon on topic CB 2.0.15 Fatal Error
Strange, that's in the substitution parsing code. What PHP version are you on?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

7 years 4 months ago #288770 by hicksan
Replied by hicksan on topic CB 2.0.15 Fatal Error
PHP 5.3.29
Joomla 3.6.4, Platform 13.1.0
Apache web server

Please Log in to join the conversation.

7 years 4 months ago - 7 years 4 months ago #288774 by krileon
Replied by krileon on topic CB 2.0.15 Fatal Error
Ah, yup that's an issue in PHP 5.3. Fixing for next build. Quickfix as follows.

IN: libraries/CBLib/CB/Legacy/CBuser.php
ON: Line 1014
FROM:
								$stringElse			=	$this->_evaluateIfs( $matchesElseIf[0][$i], $extraStrings, true );
TO:
								$stringElse			=	$that->_evaluateIfs( $matchesElseIf[0][$i], $extraStrings, true );
ON: Line 1035
FROM:
				return $this->_evaluateIfs( ( $r ? $string : $stringElse ), $extraStrings );
TO:
				return $that->_evaluateIfs( ( $r ? $string : $stringElse ), $extraStrings );

forge.joomlapolis.com/issues/6331


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

7 years 4 months ago #288800 by hicksan
Replied by hicksan on topic CB 2.0.15 Fatal Error
I tried editing this file but cannot locate the commands you quote on the lines you cite.

I checked in 2.0.14 initially and then upgraded to 2.0.15 - and confirmed the update as successful - but it looks completely different. Filesearch couldn't find those rows either.

Attachments:

Please Log in to join the conversation.

7 years 4 months ago #288801 by hicksan
Replied by hicksan on topic CB 2.0.15 Fatal Error
OK Fixed it. The upgrade said it worked but actually didn't. I re-ran it from the download file and this time it worked. I found the commands on the correct lines and edited them and all now seems to work. Thanks very much Kyle.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.227 seconds

Facebook Twitter LinkedIn