Page 1 of 1

Error when trying to load page

PostPosted: Mon Jan 25, 2010 5:56 pm
by butchseaman
I am getting this error ... can someone help me on this please

[25-Jan-2010 17:54:48] PHP Warning: ini_set() has been disabled for security reasons in /home/mydirectory/public_html/xataface/config.inc.php on line 214

[25-Jan-2010 17:54:48] PHP Warning: require_once(I18Nv2/I18Nv2.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/mydirectory/public_html/xataface/config.inc.php on line 242

[25-Jan-2010 17:54:48] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'I18Nv2/I18Nv2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mydirectory/public_html/xataface/config.inc.php on line 242

Re: Error when trying to load page

PostPosted: Mon Jan 25, 2010 7:53 pm
by shannah
If your server has ini_set disabled, this could be a problem, as ini_set may be used multiple times in the course of execution. In this particular case you may be able to get around the problem by changing line 214 of config.inc.php from:
Code: Select all
ini_set('include_path', $include_path );

to
Code: Select all
set_include_path($include_path);

Re: Error when trying to load page

PostPosted: Mon Jan 25, 2010 8:26 pm
by butchseaman
OK... Steve
Your suggestion enabled the app to work ... butI am still getting an error in my directory where the conf and index files are located.

I have requested my provider enable ini_set()

thanks for your help as always ... :D

ERROR
[25-Jan-2010 21:30:09] PHP Warning: ini_set() has been disabled for security reasons in /home/saddlebo/public_html/xataface/Dataface/Application.php on line 631
[25-Jan-2010 21:30:12] PHP Warning: ini_set() has been disabled for security reasons in /home/saddlebo/public_html/xataface/Dataface/Application.php on line 631
[25-Jan-2010 21:30:20] PHP Warning: ini_set() has been disabled for security reasons in /home/saddlebo/public_html/xataface/Dataface/Application.php on line 631

Re: Error when trying to load page

PostPosted: Mon Jan 25, 2010 8:41 pm
by shannah
Until the provider does this, you could just go through each instance of ini_set(), and prepend a '@' to suppress the error message. For example this call to ini_set simply sets the garbage collection timeout, so it if fails it's no biggie.

e.g.
Code: Select all
ini_set(...)

to
Code: Select all
@ini_set(...)