1
hrac
Problem with search function in mydownloads 1.5
  • 2008/7/6 9:11

  • hrac

  • Quite a regular

  • Posts: 305

  • Since: 2002/7/15


Hello,
When I search downloads and if I press Show All button, it shows empty screen. When I enable debug, it show this:

Fatal error: Cannot redeclare mainheader() (previously declared in /.../modules/mydownloads/include/functions.php:28) in /.../modules/mydownloads/include/functions.php on line 30

For your information
Best regards
Hirac

2
hervet
Re: Problem with search function in mydownloads 1.5
  • 2008/7/6 17:17

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


I'm going to see

3
aquaportail
Re: Problem with search function in mydownloads 1.5

Hello,

is these trouble resolved?

Thanks

4
hrac
Re: Problem with search function in mydownloads 1.5
  • 2008/8/8 17:08

  • hrac

  • Quite a regular

  • Posts: 305

  • Since: 2002/7/15


any progress or update?
thx

5
trabis
Re: Problem with search function in mydownloads 1.5
  • 2008/8/8 19:09

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


A fix has to be made on mydownloads for the next release but you can use a search and replace program (google for 'InfoRapid Search and replace') and do this:

Search for:
mainheader

Replace for:
mydl_mainheader

6
hrac
Re: Problem with search function in mydownloads 1.5
  • 2008/8/8 21:01

  • hrac

  • Quite a regular

  • Posts: 305

  • Since: 2002/7/15


I found only one "mainheader" in include/functions.php and replace it but it didn't work. It gives same error message.

7
trabis
Re: Problem with search function in mydownloads 1.5
  • 2008/8/8 21:09

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


That is strange, but if that function is not called by the module you can delete it or comment it out.

Enclose the function with /* all the funtion mainhead here*/ and try again.

ex:
/*
function mainheader($mainlink=1) {
        echo "

";
}
*/

8
trabis
Re: Problem with search function in mydownloads 1.5
  • 2008/8/8 21:17

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Forget it, I think I know what is happening:

Go to header.php and change:

include XOOPS_ROOT_PATH."/modules/mydownloads/include/functions.php";

with


include_once(XOOPS_ROOT_PATH."/modules/mydownloads/include/functions.php");

9
hrac
Re: Problem with search function in mydownloads 1.5
  • 2008/8/8 21:21

  • hrac

  • Quite a regular

  • Posts: 305

  • Since: 2002/7/15


still doesn't solve the problem :(

10
trabis
Re: Problem with search function in mydownloads 1.5
  • 2008/8/8 21:22

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


What is the debug reporting now, and what did not work? The include_once or the commenting out?

Login

Who's Online

314 user(s) are online (256 user(s) are browsing Support Forums)


Members: 0


Guests: 314


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