Skip to Content Skip to Menu

[#6331] CB 2.0.15 Fatal Error

  • hicksan
  • hicksan
  • OFFLINE
  • Posts: 28
  • Thanks: 1
  • Karma: 0
7 years 11 months ago - 7 years 11 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
Last edit: 7 years 11 months ago by krileon. Reason: Added [#6331] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
7 years 11 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 or Create an account to join the conversation.

  • hicksan
  • hicksan
  • OFFLINE
  • Posts: 28
  • Thanks: 1
  • Karma: 0
7 years 11 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 or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
7 years 11 months ago - 7 years 11 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:
Code:
$stringElse = $this->_evaluateIfs( $matchesElseIf[0][$i], $extraStrings, true );
TO:
Code:
$stringElse = $that->_evaluateIfs( $matchesElseIf[0][$i], $extraStrings, true );
ON: Line 1035
FROM:
Code:
return $this->_evaluateIfs( ( $r ? $string : $stringElse ), $extraStrings );
TO:
Code:
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.
Last edit: 7 years 11 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • hicksan
  • hicksan
  • OFFLINE
  • Posts: 28
  • Thanks: 1
  • Karma: 0
7 years 11 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 or Create an account to join the conversation.

  • hicksan
  • hicksan
  • OFFLINE
  • Posts: 28
  • Thanks: 1
  • Karma: 0
7 years 11 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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum