Skip to Content Skip to Menu

cannot redeclare class mosprofiler

  • mrlivered
  • mrlivered
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
16 years 8 months ago #57496 by mrlivered
cannot redeclare class mosprofiler was created by mrlivered
Hi

I'm getting an error with uddeim. When I try to access the component (by clicking on the notifier or on a pm button within fireboard - I don't use cb) I get the error "Fatal error: Cannot redeclare class mosprofiler in /home/sites/mysite.net/public_html/includes/joomla.php on line 22"

I was using uddeim 0,8 and it just started happening, I don't know why. I tried upgrading to 1.0 but I am still getting exactly the same error.

If you have any idea what could be causing this I would be very grateful of any suggestions.

Thanks

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 8 months ago #57497 by slabbi
Replied by slabbi on topic Re:cannot redeclare class mosprofiler
Your bug is not uddeIM related.

Have you updated to Joomla? Or have you installed other components/modules?

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

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

  • mrlivered
  • mrlivered
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
16 years 8 months ago #57498 by mrlivered
Replied by mrlivered on topic Re:cannot redeclare class mosprofiler
Hi, thanks for your reply.

The problem only presents when using uddeim so if you do have any suggestions as to what might be the cause that would be great.

The change I made which must have caused the problem is changing the name of the live site - in other words, I have two domain names pointing to the same account, I have changed the primary domain and modified the Joomla configuration.php to reflect this so all the internal urls which call moslivesite will be different.

But as everything else, such as Fireboard, works fine I cannot see how that might have affected uddeim.

Cheers

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 8 months ago #57501 by slabbi
Replied by slabbi on topic Re:cannot redeclare class mosprofiler
These kind of problems appear, when a component includes Joomla files using "include" or "require" instead of "include_once" or "require_once".

So sometimes the order when a certain component is loaded is relevent, e.g.

Component A uses "include"
Component B uses "include_once"
works fine since the file is only loaded once

Component B uses "include_once"
Component A uses "include"
gives an error since component A tries to load the file the second time

So it might be a side effect that this error appears when you call uddeIM, maybe you have on this page other modules visible then on the frontpage?

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

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 8 months ago #57502 by slabbi
Replied by slabbi on topic Re:cannot redeclare class mosprofiler
Have you checked if the Itemid is still ok? Maybe the menu link does not longer point to the component?

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

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

  • mrlivered
  • mrlivered
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
16 years 8 months ago #57504 by mrlivered
Replied by mrlivered on topic Re:cannot redeclare class mosprofiler
The itemid is correct, and there is no module only published to the uddeim menulink (ie when you call uddeim from the home page, you are not calling anything new except the uddeim component itself).

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum