Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

[SOLVED] Problem on 1.3.1 installation

  • emms
  • emms
  • OFFLINE
  • Posts: 3
  • Thanks: 1
  • Karma: 0
13 years 11 months ago - 13 years 11 months ago #150407 by emms
I had a version 1.2.3 and I tried to upgrade to V1.3.1

On com_comprofiler.zip installation in backend, it went ok through first step, then on second step stopped on white page.

Activating error log, I trapped the message :

Fatal error: Cannot redeclare _PEAR_call_destructors() (previously declared in C:\wamp\www\sitejoomla\libraries\pear\PEAR.php:773) in C:\wamp\www\sitejoomla\administrator\components\com_comprofiler\library\pear\pear.php on line 811


Seems to be a conflict between these 2 declarations:

CB code :
[code:1]function _PEAR_call_destructors()
{
global $_PEAR_destructor_object_list;
if (is_array($_PEAR_destructor_object_list) &&
sizeof($_PEAR_destructor_object_list))
{
reset($_PEAR_destructor_object_list);
if (PEAR_ZE2) {
$destructLifoExists = PEAR5::getStaticProperty('PEAR', 'destructlifo');
} else {
$destructLifoExists = PEAR::getStaticProperty('PEAR', 'destructlifo');
}

if ($destructLifoExists) {
$_PEAR_destructor_object_list = array_reverse($_PEAR_destructor_object_list);
}

while (list($k, $objref) = each($_PEAR_destructor_object_list)) {
$classname = get_class($objref);
while ($classname) {
$destructor = "_$classname";
if (method_exists($objref, $destructor)) {
$objref->$destructor();
break;
} else {
$classname = get_parent_class($classname);
}
}
}
// Empty the object list to ensure that destructors are
// not called more than once.
$_PEAR_destructor_object_list = array();
}

// Now call the shutdown functions
if (isset($GLOBALS) AND is_array($GLOBALS) AND !empty($GLOBALS)) {
foreach ($GLOBALS as $value) {
call_user_func_array($value[0], $value[1]);
}
}
}[/code:1]

Joomla library
[code:1]
function _PEAR_call_destructors()
{
global $_PEAR_destructor_object_list;
if (is_array($_PEAR_destructor_object_list) &&
sizeof($_PEAR_destructor_object_list))
{
reset($_PEAR_destructor_object_list);
if (PEAR_ZE2) {
$destructLifoExists = PEAR5::getStaticProperty('PEAR', 'destructlifo');
} else {
$destructLifoExists = PEAR::getStaticProperty('PEAR', 'destructlifo');
}

if ($destructLifoExists) {
$_PEAR_destructor_object_list = array_reverse($_PEAR_destructor_object_list);
}

while (list($k, $objref) = each($_PEAR_destructor_object_list)) {
$classname = get_class($objref);
while ($classname) {
$destructor = "_$classname";
if (method_exists($objref, $destructor)) {
$objref->$destructor();
break;
} else {
$classname = get_parent_class($classname);
}
}
}
// Empty the object list to ensure that destructors are
// not called more than once.
$_PEAR_destructor_object_list = array();
}
[/code:1]
Last edit: 13 years 11 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8303
  • Karma: 1446
13 years 11 months ago #150466 by krileon
Replied by krileon on topic Re: Problem on 1.3.1 installation
Please check your Joomla system plugins and disable any 3rd party plugins. Once done please attempt to re-upgrade. You've some sort of plugin that is initiating the PEAR library, this should not be the case.


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.

  • emms
  • emms
  • OFFLINE
  • Posts: 3
  • Thanks: 1
  • Karma: 0
13 years 11 months ago #150520 by emms
Replied by emms on topic Re: Problem on 1.3.1 installation
thanks, I'll have a try. By third party plugins, do you actually mean plugins or modules also ?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8303
  • Karma: 1446
13 years 11 months ago #150527 by krileon
Replied by krileon on topic Re: Problem on 1.3.1 installation

thanks, I'll have a try. By third party plugins, do you actually mean plugins or modules also ?

Only thing that could have affect during installation is Joomla system plugins. Modules and such shouldn't be of issue, but if you have custom Admin modules installed and visible you may want to disable them as well.


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.

  • emms
  • emms
  • OFFLINE
  • Posts: 3
  • Thanks: 1
  • Karma: 0
13 years 11 months ago #150602 by emms
Replied by emms on topic Re: Problem on 1.3.1 installation
Problem solved!
Thank you, your tip worked. 3rd party plugin was Yvxxx (smiley and comments), which I use for enhanced interactivity on my site.
I have reactivated them after CB upgrade, it looks fine.
The following user(s) said Thank You: jorgem

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

Moderators: beatnantkrileon
Powered by Kunena Forum