This forum is now read-only. Support is provided at

Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Warning: ini_set() has been disabled...
25 April, 2013
1:40 pm
Brighton, UK
New Member
Forum Posts: 2
Member Since:
25 April, 2013
sp_UserOfflineSmall Offline

Warning: ini_set() has been disabled for security reasons in /home/hrbcreds/public_html_new/wp-content/plugins/sermon-browser/sermon.php on line 221



Installed your great plugin on a new server today, and my host doesn't seem to allow using ini_set().

I've modified the plugin to detect if you can use ini_set so lines 213-225 of sermon.php now look like this:

if(strpos(ini_get('disable_functions'),'ini_set')===false) {
 if (sb_return_kbytes(ini_get('upload_max_filesize'))<15360)
  ini_set('upload_max_filesize', '15M');
 if (sb_return_kbytes(ini_get('post_max_size'))<15360)
  ini_set('post_max_size', '15M');
 if (sb_return_kbytes(ini_get('memory_limit'))<49152)
  ini_set('memory_limit', '48M');
 if (intval(ini_get('max_input_time'))<600)
 if (intval(ini_get('max_execution_time'))<600)
  ini_set('max_execution_time', '600');
 if (ini_get('file_uploads')<>'1')
  ini_set('file_uploads', '1');


What are your thoughts on that? Should this be incorporated into your code?

26 April, 2013
1:32 am
Ben Miller
Appleton, WI, USA

Forum Posts: 1628
Member Since:
18 June, 2009
sp_UserOfflineSmall Offline

Makes sense to me.  Thanks for sharing your bug fix.  I hope this ends up in a bug fix update of Sermon Browser someday.

Ben Miller, Pathways Church, Appleton, Wisconsin, USA
Read the new FAQ, last updated 11/21/2013
Announcing version 0.45.12

Forum Timezone: Europe/London

Most Users Ever Online: 381

Currently Online:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Rich Brown: 358

Matt Schlueter: 93

Mindy: 72

Don Johnson: 65

anointed: 57

0be1: 55

Member Stats:

Guest Posters: 7

Members: 3188

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1713

Posts: 7499

Newest Members:

marktest, deatles50, ValeriaGoodriz, dapedPup, oapedPup, Margarettoimb

Moderators: Ben Miller: 1628

Administrators: Mark Barnes: 435