Title: Error on PHP snippet
Last modified: August 22, 2016

---

# Error on PHP snippet

 *  Resolved [drmunden](https://wordpress.org/support/users/drmunden/)
 * (@drmunden)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-on-php-snippet/)
 * Hi ,
 * Am trying to add a Content Block with the following PHP code (without the tags):
 * include(‘[https://www.awin1.com/wshow.php?inc=1&s=517987&#8217](https://www.awin1.com/wshow.php?inc=1&s=517987&#8217););
 * I am getting errors as follows:
 * Warning: include(): https:// wrapper is disabled in the server configuration 
   by allow_url_include=0 in /home/lumumi/public_html/wp-content/plugins/global-
   content-blocks/global-content-blocks.php(322) : eval()’d code on line 1
 * Warning: include([https://www.awin1.com/wshow.php?inc=1&s=517987](https://www.awin1.com/wshow.php?inc=1&s=517987)):
   failed to open stream: no suitable wrapper could be found in /home/lumumi/public_html/
   wp-content/plugins/global-content-blocks/global-content-blocks.php(322) : eval()’
   d code on line 1
 * Warning: include(): Failed opening ‘[https://www.awin1.com/wshow.php?inc=1&s=517987&#8242](https://www.awin1.com/wshow.php?inc=1&s=517987&#8242);
   for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/lumumi/
   public_html/wp-content/plugins/global-content-blocks/global-content-blocks.php(
   322) : eval()’d code on line 1
 * Please help! Thanks
 * [https://wordpress.org/plugins/global-content-blocks/](https://wordpress.org/plugins/global-content-blocks/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [v3r50r](https://wordpress.org/support/users/v3r50r/)
 * (@v3r50r)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-on-php-snippet/#post-5737610)
 * The issue is that hosting does not allow
 * `allow_url_include`
 * which means they cannot include external (or over internet) files. That is one
   security breach anyways. You can talk to their hosting to allow this, or try 
   to use fopen, file_get_contents or cURL, and then eval the code (those options
   might be blocked by the hoster as well).
 * If it is your own server, you need to edit the php.ini file (normally under /
   etc/php.ini) and add a line at the end saying:
 * `allow_url_include = 1`
 * This issue has nothing to do with the GCB plugin, either way.
 *  Thread Starter [drmunden](https://wordpress.org/support/users/drmunden/)
 * (@drmunden)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-on-php-snippet/#post-5737704)
 * Sorry for late reply – I have contacted my hosting provider.
 * In the meantime thanks for your helpful response.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error on PHP snippet’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/global-content-blocks_c8cac8.svg)
 * [Global Content Blocks](https://wordpress.org/plugins/global-content-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/global-content-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/global-content-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/global-content-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/global-content-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/global-content-blocks/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [drmunden](https://wordpress.org/support/users/drmunden/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/error-on-php-snippet/#post-5737704)
 * Status: resolved