Error when trying to load page

A place for users and developers of the Xataface to discuss and receive support.

Error when trying to load page

Postby butchseaman » Mon Jan 25, 2010 5:56 pm

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
butchseaman
 
Posts: 21
Joined: Sat Jan 23, 2010 8:51 am

Re: Error when trying to load page

Postby shannah » Mon Jan 25, 2010 7:53 pm

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);
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Error when trying to load page

Postby butchseaman » Mon Jan 25, 2010 8:26 pm

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
butchseaman
 
Posts: 21
Joined: Sat Jan 23, 2010 8:51 am

Re: Error when trying to load page

Postby shannah » Mon Jan 25, 2010 8:41 pm

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(...)
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 19 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved