Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 07:37 pm EST
Geeklog Forums
Site Crashed: ini_set() has been disabled for security reasons
Status: offline
Chase
Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan
guys can u tell me how can i get around this problem
My service provider just graded php to su php (i think)
now the site is giving interal server errors.
Wed May 13 14:40:18 2009 - 2 - ini_set() has been disabled for security reasons @ lib-common.php line 159
any ideas??
the line in question is
if( ini_set( 'include_path', $_CONF['path_pear'] . $separator
. $curPHPIncludePath ) === false )
{
COM_errorLog( 'ini_set failed - there may be problems using the PEAR classes.', 1);
}
--
http://TazaKino.com - Pakistani News
Where YOU report the news
My service provider just graded php to su php (i think)
now the site is giving interal server errors.
Wed May 13 14:40:18 2009 - 2 - ini_set() has been disabled for security reasons @ lib-common.php line 159
any ideas??
the line in question is
Text Formatted Code
if( ini_set( 'include_path', $_CONF['path_pear'] . $separator
. $curPHPIncludePath ) === false )
{
COM_errorLog( 'ini_set failed - there may be problems using the PEAR classes.', 1);
}
--
http://TazaKino.com - Pakistani News
Where YOU report the news
18
14
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Do you happen to know if they are also blocking set_include_path? This is the code that we're using as of Geeklog 1.6.0:
* If needed, add our PEAR path to the list of include paths
*
*/
if (! $_CONF['have_pear']) {
$curPHPIncludePath = get_include_path();
if (empty($curPHPIncludePath)) {
$curPHPIncludePath = $_CONF['path_pear'];
} else {
$curPHPIncludePath = $_CONF['path_pear'] . PATH_SEPARATOR
. $curPHPIncludePath;
}
if (set_include_path($curPHPIncludePath) === false) {
COM_errorLog('set_include_path failed - there may be problems using the PEAR classes.', 1);
}
}
bye, Dirk
Text Formatted Code
/*** If needed, add our PEAR path to the list of include paths
*
*/
if (! $_CONF['have_pear']) {
$curPHPIncludePath = get_include_path();
if (empty($curPHPIncludePath)) {
$curPHPIncludePath = $_CONF['path_pear'];
} else {
$curPHPIncludePath = $_CONF['path_pear'] . PATH_SEPARATOR
. $curPHPIncludePath;
}
if (set_include_path($curPHPIncludePath) === false) {
COM_errorLog('set_include_path failed - there may be problems using the PEAR classes.', 1);
}
}
bye, Dirk
11
17
Quote
Status: offline
Chase
Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan
ok service provider has yielded a bit and i can use set_ini
I had to delete .htaccess.
Now i am getting a new error
Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in lib-story.php on line 324
which is
$numwords = COM_numberFormat (sizeof( explode( ' ', strip_tags( $bodytext ))));
my htaccess had
php_value memory_limit 48M
php_value upload_max_filesize 4M
</FilesMatch>
interestingly
i get this error only on the index page
but when i go to
say
http://tazakino.com/index.php?topic=Business it works
--
http://TazaKino.com - Pakistani News
Where YOU report the news
I had to delete .htaccess.
Now i am getting a new error
Text Formatted Code
Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in lib-story.php on line 324
which is
Text Formatted Code
$numwords = COM_numberFormat (sizeof( explode( ' ', strip_tags( $bodytext ))));
my htaccess had
Text Formatted Code
php_value memory_limit 48M
php_value upload_max_filesize 4M
</FilesMatch>
interestingly
i get this error only on the index page
but when i go to
say
Text Formatted Code
http://tazakino.com/index.php?topic=Business it works
--
http://TazaKino.com - Pakistani News
Where YOU report the news
17
17
Quote
Status: offline
Chase
Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan
ok there was one particular post it had problems with.
I have marked that as draft in db. so now the site seems to be working
--
http://TazaKino.com - Pakistani News
Where YOU report the news
I have marked that as draft in db. so now the site seems to be working
--
http://TazaKino.com - Pakistani News
Where YOU report the news
13
13
Quote
Status: offline
Chase
Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan
but what do i do for my htaccess?
the php flags in there?
--
http://TazaKino.com - Pakistani News
Where YOU report the news
the php flags in there?
--
http://TazaKino.com - Pakistani News
Where YOU report the news
14
18
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
If everything is working, you don't need it in the .htaccess file
What are your php memory_limit and upload_max_filesize?
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
What are your php memory_limit and upload_max_filesize?
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
15
15
Quote
Status: offline
Chase
Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan
while posting story i got the following error
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 412189 bytes) system/classes/template.class.php on line 498
i had put these in my htaccess
php_value memory_limit 48M
php_value upload_max_filesize 4M (i think thats the standard size, fine quality from mobile phone)
--
http://TazaKino.com - Pakistani News
Where YOU report the news
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 412189 bytes) system/classes/template.class.php on line 498
i had put these in my htaccess
php_value memory_limit 48M
php_value upload_max_filesize 4M (i think thats the standard size, fine quality from mobile phone)
--
http://TazaKino.com - Pakistani News
Where YOU report the news
10
19
Quote
All times are EST. The time is now 07:37 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content