1
ladysham
MyLinks Module Assistance
  • 2004/11/1 5:36

  • ladysham

  • Quite a regular

  • Posts: 274

  • Since: 2003/11/11


Help! I was working on my "resources" section (using the MyLinks module) today. I deleted all my categories, set up some new ones with new links. When I viewed it all after I was done, everything looked fine.

Here is the error message I get when running in PHP debug mode:

Fatal error: Cannot redeclare convertorderbyin() (previously declared in /home2/cwahm/christianwahm-www/modules/mylinks/include/functions.php:50) in /home2/cwahm/christianwahm-www/modules/wfsection/include/functions.php on line 495

I must have screwed something up. Guess I could delete and reinstall the module since I only have four new links in it.

But I would like to know what caused this error so I don't do it again. Thanks in advance!!

Kelly Ling

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now, to top it all off - my xdirectory module is doing the same thing. From the error above, somehow it is linked ot the wf-section module? Does that even make sense??

Ugh!! I'm heading to bed. Maybe it'll go away in the morning. LOL

Thanks for any input!

Kelly

2
ladysham
Re:MyLinks Module Assistance
  • 2004/11/1 11:11

  • ladysham

  • Quite a regular

  • Posts: 274

  • Since: 2003/11/11


This is the error I'm getting in the xdirectory module with the PHP Debug on.

Fatal error: Cannot redeclare convertorderbyin() (previously declared in /home2/cwahm/christianwahm-www/modules/xdirectory/include/functions.php:55) in /home2/cwahm/christianwahm-www/modules/wfsection/include/functions.php on line 495

Can anyone help?

Kelly

3
rowdie
Re:MyLinks Module Assistance
  • 2004/11/1 12:18

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


A function with the same name is being declared in each of those modules. I think you can get around the problem by finding where the functions.php file is being included and change 'include' to 'include_once'

In xdirectory the file you need to change is header.php
find:
include XOOPS_ROOT_PATH."/modules/xdirectory/include/functions.php";


change to:
include_once XOOPS_ROOT_PATH."/modules/xdirectory/include/functions.php";


Mylinks is also in the header.php file. Not sure where it is in wfsection, you'll have to check.

Hope this helps,
Rowd

4
ladysham
Re:MyLinks Module Assistance
  • 2004/11/1 12:31

  • ladysham

  • Quite a regular

  • Posts: 274

  • Since: 2003/11/11


Thanks for the reply. Actually, I got it fixed!

Here's a link to the post that helped me.

https://xoops.org/modules/newbb/viewtopic.php?topic_id=19959&viewmode=flat&order=DESC&start=10

Thanks again!

Kelly Ling

Login

Who's Online

282 user(s) are online (169 user(s) are browsing Support Forums)


Members: 0


Guests: 282


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits