Fix for php 5.3

14 years 3 months ago #121939 by Mike999
Fix for php 5.3 was created by Mike999
The fix for getting cb to work with php 5.3 issues is as follow:

1. comprofiler.html.com
[code:1]echo HTML_comprofiler::_cbTemplateRender( $myUser, 'List', 'drawListBody', array( &$users, &$columns, $tableContent, $listid, $ueConfig ) );
[/code:1]
Should you change to:
[code:1]echo HTML_comprofiler::_cbTemplateRender( $myUser, 'List', 'drawListBody', array( &$users, &$columns, &$tableContent, $listid, $ueConfig ) );
[/code:1]

And second, change the file:administrator/components/com_comprofiler/plugin.foundation.php

[code:1]if ( ! $this->_tryCmsDoc( 'addCustomTag', $customHead ) ) {
[/code:1]

To
[code:1]if ( ! $this->_tryCmsDoc( 'addCustomTag', array( $customHead ) ) ) {
[/code:1]

You also have to change in the
administrator/components/com_comprofiler/plugin.foundation.php
to:
[code:1]function _tryCmsDoc( $type, $params ) {
PHP 5.3 work around
if ( !is_array( $params ) )
$params = (array)$params ;
if ( $this->_cmsDoc ) {
call_user_func_array( array( $this->_cmsDoc, $type ), $params );
return true;
}
return false;
}
[/code:1]



Where the "PHP 5.3 work around " is the real fix.
Then you have to turn on the Joomla registration to ON. And the cb registration from YES to Global.

Then everything should be working for you. Until the cb 1.2.2 are comming with all the right fixes


Post edited by: Mike999, at: 2010/01/18 00:08

Post edited by: Mike999, at: 2010/01/18 00:08
The topic has been locked.
14 years 3 months ago #122199 by krileon
Replied by krileon on topic Re:Fix for php 5.3
In big red letters before downloading CB 1.2.1

NOTICE: CB 1.2.1 Stable requires PHP 5 or better! PHP 5.3 not supported yet!

There is a a thread started providing various fixes here . Thread locked.


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.
The topic has been locked.
Moderators: beatnantkrileon
Time to create page: 0.181 seconds