Hi,
thank you for the fix, I replaced the code in the comprofiler.class.php but I got this error:
Fatal error: Call to a member function getUi() on a non-object in D:\xampp\htdocs\cadlore\administrator\components\com_comprofiler\comprofiler.class.php on line 4152
any idea what I am doing wrong?
Thanks in advance
Please Log in to join the conversation.
Please Log in to join the conversation.
It's fixed now for next CB version.
Since we got CB supporters in this thread (thank you !), here a quick-fix for CB 1.1:
in file administrator/components/com_comprofiler/comprofiler.class.php
Search for :
[code:1]if ( ! $functionOutputed ) {[/code:1]
and replace everything between that line and the closing } (that line and closing tag included) by:
[code:1] if ( ! $functionOutputed ) {
global $_CB_ui;
$head = "<script type=\"text/javascript\"><!--//--><![CDATA[//><!--\n"
. "var cbshowtabsArray = new Array();\n"
. "function showCBTab( sName ) {\n"
. " if ( typeof(sName) == 'string' ) {\n"
. " sName = sName.toLowerCase();\n"
. " }\n"
. " for (var i=0;i<cbshowtabsArray.length;i++) {\n"
. " for (var j=0;j<cbshowtabsArray[0].length;j++) {\n"
. " if (cbshowtabsArray[0][j] == sName) {\n"
. " eval(cbshowtabsArray[1]);\n"
. " return;\n"
. " }\n"
. " }\n"
. " }\n"
. "}\n"
. "//--><!]]></script>\n";
addCbHeadTag( $_CB_ui, $head );
$functionOutputed = true;
}
[/code:1]
Post edited by: beat, at: 2007/11/15 11:05
Please Log in to join the conversation.
beat wrote:
It's fixed now for next CB version.
Since we got CB supporters in this thread (thank you !), here a quick-fix for CB 1.1:
in file administrator/components/com_comprofiler/comprofiler.class.php
Search for :
[code:1]if ( ! $functionOutputed ) {[/code:1]
and replace everything between that line and the closing } (that line and closing tag included) by:
[code:1] if ( ! $functionOutputed ) {
global $_CB_ui;
$head = "<script type=\"text/javascript\"><!--//--><![CDATA[//><!--\n"
. "var cbshowtabsArray = new Array();\n"
. "function showCBTab( sName ) {\n"
. " if ( typeof(sName) == 'string' ) {\n"
. " sName = sName.toLowerCase();\n"
. " }\n"
. " for (var i=0;i<cbshowtabsArray.length;i++) {\n"
. " for (var j=0;j<cbshowtabsArray[0].length;j++) {\n"
. " if (cbshowtabsArray[0][j] == sName) {\n"
. " eval(cbshowtabsArray[1]);\n"
. " return;\n"
. " }\n"
. " }\n"
. " }\n"
. "}\n"
. "//--><!]]></script>\n";
addCbHeadTag( $_CB_ui, $head );
$functionOutputed = true;
}
[/code:1]
Post edited by: beat, at: 2007/11/15 11:05
Can someone please give me an idea as to what area of the file this code is located...ive looked up and down over an over, but cant find it.
Thanks
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.