Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Role User does not work
#10
(10-28-2011, 12:36 AM)amwassil Wrote: http://.../install/install.php

file: inc/inc.ClassSettings.php
151: $configFilePath= ../conf/settings.xml
229: $configFilePath=../conf/settings.xml
231: $xml= no value for $xml

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

023: echo 'file: inc/inc.ClassSettings.php<br />';
142: function Settings($configFilePath='') { /* {{{ */
151: echo '151: $configFilePath= ', $configFilePath, '<br />';
228: function load($configFilePath) { /* {{{ */
229: if(!empty($configFilePath)) {echo '229: $configFilePath=', $configFilePath, '<br />';}
230: $xml = simplexml_load_string(file_get_contents($configFilePath));
231: if(!empty($xml)) {echo '231: ', $xml, '<br />';} else echo '231: $xml= no value for $xml</br />';

The file is where it's supposed to be:
/conf
settings.xml 8.2KB xml document -rw-r--r--

So it looks to fail at: $xml = simplexml_load_string(file_get_contents($configFilePath));

Does 'echo file_get_contents($configFilePath)' just before the line with simplexml_load_string() return the content of the config file? I still think that the problems lies in reading the config file.

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: 1 Guest(s)