Fatal error: Call to undefined function: mainpage()

Problems installing LinkMan?
Post Reply
Anom

Fatal error: Call to undefined function: mainpage()

Post 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 :?:
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Anom

Post 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?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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...
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Anom

Post 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?
Anom

Post by Anom »

The server i have this installed has disabled phpinfo(), so i can't get to know the details of php.
Anom

Problem solved.

Post 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/
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply