Jump to content
Froxlor Forum
  • 0

[solved] PHP Fatal error: Call to a member function getLink() on a non-object


asemen

Question

I am sorry I did a fresh new installation of froxlor on SUSE 13.1 and after the setup / installation were the database etc were set I did get a plank with site on:

 

xxx,de;/froxlor/admin_updates.php

 

The apache error log file shows:

 

PHP Fatal error:  Call to a member function getLink() on a non-object in /srv/www/htdocs/froxlor/lib/classes/database/class.Database.php on line 343, referer: http://xxxx_server.de//froxlor/

 

on running the admin_updates.php on console

 

php admin_updates.php
PHP Notice:  Undefined index: REMOTE_ADDR in /srv/www/htdocs/froxlor/lib/init.php on line 155
PHP Notice:  Undefined index: HTTP_HOST in /srv/www/htdocs/froxlor/lib/functions/output/function.redirectTo.php on line 77

 

I do not know what is wrong on php configuration.

 

Could you be so kind to write me what to check?

 

Is it a redirect problem?

Is ther missing php package?

 

Best Regards

 

 

 


 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Don't call that script directly....and don't run it directly on shell.

 

Also, your error message is not complete, there is no getLink() in Database.php on line 343...please post the complete error-message

Link to comment
Share on other sites

ok thank for the fast answer:

 

you are right.

 

here the logs from apache2/error_log

 

[Wed May 21 10:11:27.639299 2014] [core:error] [pid 7630] [client xx.xx.xx.xx:54783] AH00037: Symbolic link not allowed or link target not accessible: /srv/www/htdocs/froxlor/js/jquery-ui.min.js, referer: http://xxxx.de/froxlor/
[Wed May 21 10:11:30.135394 2014] [php5:error] [pid 7630] [client xx.xx.xx.xx:54783] PHP Warning:  file_get_contents(/srv/www/htdocs/froxlor/templates//misc/dberrornice.tpl): failed to open stream: No such file or directory in /srv/www/htdocs/froxlor/lib/classes/database/class.Database.php on line 332, referer: http://xxxx.de/froxlor/
[Wed May 21 10:11:30.135695 2014] [php5:error] [pid 7630] [client 195.135.221.2:54783] PHP Fatal error:  Call to a member function getLink() on a non-object in /srv/www/htdocs/froxlor/lib/classes/database/class.Database.php on line 343, referer: http://xxx.de/froxlor/

 

looks now like a "Symbolic link" problem

 

what do I have to configure on apache to make this work?

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...