Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Role User does not work
#8
(10-27-2011, 12:26 AM)amwassil Wrote: Browser Error:
http://www..../install/install.php
inc/inc.Settings 1 OK
inc/inc.Settings 2 OK

Fatal error: Call to a member function xpath() on a non-object in /.../inc/inc.ClassSettings.php on line 232

The script fails here: inc/inc.Settings.php

049 echo 'inc/inc.Settings 1 OK</br>'; // added for debug
050 require_once('inc.ClassSettings.php');
051 echo 'inc/inc.Settings 2 OK</br>'; // added for debug
052 $settings = new Settings();
053 echo 'inc/inc.Settings 3 OK</br>'; // added for debug

So the script fails at: $settings = new Settings();

So it happens in the constructor of the class Settings(). The only reasonable cause for that is a failure in reading the configuration file.

Place some echos in the constructor of class Settings in inc/inc.ClassSettings.php.
You could for example echo the $configFilePath.

Uwe
Reply


Messages In This Thread
Role User does not work - by amwassil - 10-24-2011, 12:35 AM

Forum Jump:


Users browsing this thread: