1
karedokx
Why can one module conflict with the other(s)
  • 2004/10/16 15:36

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


i posted an error i found (in wf-section) to wf-projects forum, but decided to post it again here as it might not really relate with wf-section.

i installed the latest beta version of wf-section several weeks ago and just noticed that my soapbox article form submission is now not functional again, with the following error message (from php debug):
Fatal error: Cannot redeclare class xoopstree in c:\inetpub\wwwroot\xoops\html\class\xoopstree.php on line 33

[note: turning off the wf-section module make the soapbox form submission (modules/soapbox/submit.php?op=add) functions well again]

where/what has gone wrong? how could a new module installation can cause the other (previously installed and work fine) module(s) become not functional? (how can we prevent this?)

2
Dave_L
Re: Why can one module conflict with the other(s)
  • 2004/10/16 16:14

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Search the files for "xoopstree.php".

That file should be loaded using
include_once XOOPS_ROOT_PATH."/class/xoopstree.php";

or
require_once XOOPS_ROOT_PATH."/class/xoopstree.php";


But it might be getting loaded using
include XOOPS_ROOT_PATH."/class/xoopstree.php";

or
require XOOPS_ROOT_PATH."/class/xoopstree.php";


The "_once" ensures that the file will only be loaded once, which avoids that "Cannot redeclare ..." error.

3
karedokx
Re: Why can one module conflict with the other(s)
  • 2004/10/17 10:17

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


thank you!

i have changed the "modules/soapbox/include/storyform.inc.php" to include_once XOOPS_ROOT_PATH . "/class/xoopstree.php";

now everything work fine. thanks once again.

4
paulafalves
Re:Why can one module conflict with the other(s) - soapbox...
  • 2004/10/20 13:07

  • paulafalves

  • Just popping in

  • Posts: 4

  • Since: 2004/9/22


Please, i need some help...

Is it possible to include the soapbox sent articles in user's page (when a user send an article, can it goes to his profileś page???)

Thank you everybody!

Bye...

Login

Who's Online

435 user(s) are online (319 user(s) are browsing Support Forums)


Members: 0


Guests: 435


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