Skip to Content Skip to Menu

CB 1.9.1 and UddeIM 3.5 - Error on upgrading UddeIM

  • gjschaller
  • gjschaller
  • OFFLINE
  • Posts: 169
  • Thanks: 21
  • Karma: 7
9 years 9 months ago #253828 by gjschaller
When I updated UddeIM on my site to 3.5, I get a white screen with the following error:

Fatal error: Cannot redeclare uddeIMgetGroupID() (previously declared in /home/kradmin/public_html/components/com_uddeim/uddeimlib25.php:346) in /home/kradmin/public_html/components/com_uddeim/uddeimlib25.php on line 391

Joomla 2.5.27
CB 1.9.1
Kunena 3.0.6

UddeIM 3.4 to 3.5

Geoffrey Schaller
Technical Officer
www.knightrealms.com

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

  • gjschaller
  • gjschaller
  • OFFLINE
  • Posts: 169
  • Thanks: 21
  • Karma: 7
9 years 9 months ago - 9 years 9 months ago #253830 by gjschaller
I was able to restore SOME functionality to the site by taking out the following code at line 346:
Code:
function uddeIMgetGroupID() { // 0=public, 1=registered, 2=special $database = uddeIMgetDatabase(); $user = JFactory::getUser(); $userid = $user->id; $sql="SELECT g.id AS gid FROM (#__users AS u INNER JOIN #__user_usergroup_map AS um ON u.id=um.user_id) INNER JOIN #__usergroups AS g ON um.group_id=g.id WHERE u.id=".(int)$userid; $database->setQuery($sql); $rows = $database->loadObjectList(); $my_gid = Array(); // 1 = Public, 2 = Registered, ... foreach($rows as $key => $value) { if ($value->gid<=1) $my_gid[] = (int)0; else $my_gid[] = (int)$value->gid; } if (uddeIMisSpecial($my_gid)) return 2; if (uddeIMisReggedOnly($my_gid)) return 1; return 0; }

The front page now loads, but UddeIM is not working.

Geoffrey Schaller
Technical Officer
www.knightrealms.com
Last edit: 9 years 9 months ago by gjschaller.

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
9 years 9 months ago #253853 by slabbi
Please check the FAQ. You have to update all uddeim plugins, cb plugins and modules.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

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

  • gjschaller
  • gjschaller
  • OFFLINE
  • Posts: 169
  • Thanks: 21
  • Karma: 7
9 years 9 months ago #253854 by gjschaller
I already updated all plugins, CB plugins, and modules.

The error message clearly states the issue is in:

/components/com_uddeim/uddeimlib25.php

I've pointed out that editing this file partially resolves the issue.

I've verified all plugins are v3.5, and even re-installed them to be sure. Additionally, it seems the Kunena plugin causes a 500 Internal Server error when it is enabled.

Geoffrey Schaller
Technical Officer
www.knightrealms.com

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
9 years 9 months ago #253856 by slabbi
You are right. It is a typo in the 2.5 lib only, so it only appears on Joomla 2.5 installations.

I have updated all packages.

The function with the "$config" should be "uddeIMgetGroupID2($config)".

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

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

  • gjschaller
  • gjschaller
  • OFFLINE
  • Posts: 169
  • Thanks: 21
  • Karma: 7
9 years 9 months ago #253861 by gjschaller
Confirmed working, thank you.

A suggestion for down the line - allow UddeIM to be reinstalled over itself. When I tried to apply the new bundle, I got an error that 3.5 was already installed, so I had to un-install and re-install it. The ability to simply reload the same version to repair any files would be a welcome feature, both for bugs like this, and for issues caused by customization.

Geoffrey Schaller
Technical Officer
www.knightrealms.com

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum