Tuesday 22 November 2011

Wordpress php.ini settings to load external url

A friend of mine had an issue with a vanilla wordpress install that he had that was using a premium theme.

Upon loading the theme, the page showed many errors relating to servers security setting would not allow the loading of data from external urls.

The information we were given was to set the php.ini in the directory of the calling page, so that the setting could be overridden - so we did, no change.

The solution is that the php.ini file in the wp-admin folder needs setting, not in the calling page, because the calling page in this case is a settings page itself that is being imported into the wp-admin/index.php file.

The settings in php.ini are then:

allow_url_fopen = 1
allow_url_include = 1

No comments:

Post a Comment