Page 1 of 1

Fatal error: Call to undefined function: mainpage()

Posted: Thu Mar 10, 2005 5:07 pm
by Anom
Hello.

I get this kind of error when i try to enter the admin-side of LinkMan.

The add-link -side is working correctly.

Fatal error: Call to undefined function: mainpage() in %path%/admin.php on line 52

WHat should i do :?:

Posted: Thu Mar 10, 2005 5:23 pm
by Klemen
Hello,

Have you been editing the script? Try making a clean installation, without adding any header/footer or editing anything except settings.php

Regards

Posted: Thu Mar 10, 2005 6:31 pm
by Anom
The only thing i have changed in admin-file is its name. It used to be the original index.php, i changed it into admin.php. Then i replaced all instances of string "index.php" to "admin.php".

Can editing some other files like header.txt affect this functionality?

Posted: Thu Mar 10, 2005 8:45 pm
by Klemen
Unless you have some PHP code that would collide with the one from LinkMan editing header/footer shouldn't be a problem.

Did you try installing a clean version of LinkMan? You can do that in a separate folder, just to make sure it works on your server...

Posted: Sat Mar 12, 2005 10:50 am
by Anom
Ok, now i did a clean install, just changed the admin password.

The same error comes up.

Do you have any idea what to do?

Posted: Sat Mar 12, 2005 10:52 am
by Anom
The server i have this installed has disabled phpinfo(), so i can't get to know the details of php.

Problem solved.

Posted: Sat Mar 12, 2005 11:32 am
by Anom
Problem solved. :lol:

In the clean install file index.php, line 169 is php starting tag "<?". The server where my files are at, supports only php starting tag "<?php". After changing this the script works perfectly.

Thank you for this wonderfull software. :wink:

Webmaster of:
http://koti.mbnet.fi/doglinks/

Posted: Sat Mar 12, 2005 12:19 pm
by Klemen
I try to use the standard <?php all the time, guess that one slipped away :oops:

Thanks for letting me know, I have changed that in the original version as well.

Regards