Skip to Content Skip to Menu

uddeIM 2.2 (stable) released

  • rplc
  • rplc
  • OFFLINE
  • Posts: 13
  • Thanks: 0
  • Karma: 0
13 years 10 months ago #149983 by rplc
Replied by rplc on topic Re:uddeIM 2.2 (stable) released
Hi,
I've installed uddleIM 2.2 on Joomla 1.6
Nearly everything works fine.

As soon as I activate the ContentLinkPlugin I've got the following errorcode:
"Fatal error: Call to a member function registerEvent() on a non-object in C:\www\xampp\htdocs\joomla1-6\plugins\content\uddeim_pms_contentlink\uddeim_pms_contentlink.php on line 17"

At the moment I can't deactivate the plugin. The same errorcode is shown in the Frontend.

Greetz

Edit:
I've deactivated the Plugin with replacing


if ( defined( 'JPATH_ADMINISTRATOR' ) )
$mainframe->registerEvent('onPrepareContent', 'uddeIMpmsLink15');
else
$_MAMBOTS->registerFunction( 'onPrepareContent', 'uddeIMpmsLink' );


with


if ( defined( 'JPATH_ADMINISTRATOR' ) ){
}
else {
}

Post edited by: rplc, at: 2011/01/03 20:22

Post edited by: rplc, at: 2011/01/03 20:23

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 10 months ago #150002 by slabbi
Replied by slabbi on topic Re:uddeIM 2.2 (stable) released
rplc wrote:

Hi,
I've installed uddleIM 2.2 on Joomla 1.6
Nearly everything works fine.


Could you try to replace

[code:1]if ( defined( 'JPATH_ADMINISTRATOR' ) )
$mainframe->registerEvent('onPrepareContent', 'uddeIMpmsLink15');
else
$_MAMBOTS->registerFunction( 'onPrepareContent', 'uddeIMpmsLink' );[/code:1]

with

[code:1]if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
$ver = new JVersion();
if (!strncasecmp($ver->RELEASE, "1.6", 3)) {
jimport( 'joomla.plugin.plugin' );
$_PLUGINS->registerFunction( 'onPrepareContent', 'uddeIMpmsLink15' );
} else {
JApplication::registerEvent('onPrepareContent', 'uddeIMpmsLink15');
}
} else {
$_MAMBOTS->registerFunction( 'onPrepareContent', 'uddeIMpmsLink' );
}
[/code:1]

Does it work?

If you get an error that an object cannot be found please also try
[code:1]if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
JApplication::registerEvent('onPrepareContent', 'uddeIMpmsLink15');
} else {
$_MAMBOTS->registerFunction( 'onPrepareContent', 'uddeIMpmsLink' );
}
[/code:1]

Post edited by: slabbi, at: 2011/01/03 22:52

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

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

  • rplc
  • rplc
  • OFFLINE
  • Posts: 13
  • Thanks: 0
  • Karma: 0
13 years 10 months ago #150003 by rplc
Replied by rplc on topic Re:uddeIM 2.2 (stable) released
Hi,

this doesn't work...
New Error Message:
"Fatal error: Call to a member function registerFunction() on a non-object in C:\www\xampp\htdocs\Joomla1.6-RC\plugins\content\uddeim_pms_contentlink\uddeim_pms_contentlink.php on line 20"

Line 20:
$_PLUGINS->registerFunction( 'onPrepareContent', 'uddeIMpmsLink15' );

Thx for the quick reply hope next codesnippet will help

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 10 months ago #150004 by slabbi
Replied by slabbi on topic Re:uddeIM 2.2 (stable) released
Does
JApplication::registerEvent('onPrepareContent', 'uddeIMpmsLink15');
work?

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

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

  • rplc
  • rplc
  • OFFLINE
  • Posts: 13
  • Thanks: 0
  • Karma: 0
13 years 10 months ago #150006 by rplc
Replied by rplc on topic Re:uddeIM 2.2 (stable) released
It seems not to use this part of the if-else construct.

It seems just to use the if-part

$ver = new JVersion();
if (!strncasecmp($ver->RELEASE, "1.6", 3)) {
jimport( 'joomla.plugin.plugin' );
$_PLUGINS->registerFunction( 'onPrepareContent', 'uddeIMpmsLink15' );
} else {
JApplication::registerEvent('onPrepareContent', 'uddeIMpmsLink15');
}

and the error is caused in line 20 ($_PLUGINS->registerFunction( 'onPrepareContent', 'uddeIMpmsLink15' );)

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 10 months ago #150007 by slabbi
Replied by slabbi on topic Re:uddeIM 2.2 (stable) released
Have you seen the second construct above?

[code:1] if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
JApplication::registerEvent('onPrepareContent', 'uddeIMpmsLink15');
} else {
$_MAMBOTS->registerFunction( 'onPrepareContent', 'uddeIMpmsLink' );
}
[/code:1]

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

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum