• Resolved abhis2.0

    (@abhis20)


    Specifically it says –

    Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /xxx/wp-content/plugins/wp-html-sitemap/inc/Utilities.php on line 191

    Warning: file_get_contents(/xxx/wp-content/plugins/wp-html-sitemap/html/about.htm) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /xxx/blog/wp-content/plugins/wp-html-sitemap/inc/Utilities.php on line 191

    Fatal error: Uncaught exception ‘Exception’ with message ‘wp_html_sitemap_Utilities::getFilteredHtml unable to load contents from http://xxx/wp-content/plugins/wp-html-sitemap/html/about.htm’ in /xxx/wp-content/plugins/wp-html-sitemap/inc/Utilities.php:193 Stack trace: #0 /xxx/wp-content/plugins/wp-html-sitemap/inc/AdminPage.php(314): wp_html_sitemap_Utilities->getFilteredHtml(‘http://xxx…’, Array, ”) #1 /xxx/wp-content/plugins/wp-html-sitemap/inc/AdminPage.php(445): wp_html_sitemap_AdminPage->outputHtml(‘http://xxx…’) #2 /xxxg/wp-content/plugins/wp-html-sitemap/inc/AdminPage.php(113): wp_html_sitemap_AdminPage->outputTab(Array) #3 /xxx/wp-content/plugins/wp-html-sitemap/inc/AdminPage.php(101): wp_html_sitemap_AdminPage->body() #4 /xxx/wp-content/plugins/wp-html-sitemap/inc/Options.php(399): wp_html_sitemap_AdminPage-> in /xxx/wp-content/plugins/wp-html-sitemap/inc/Utilities.php on line 193

    http://wordpress.org/extend/plugins/wp-html-sitemap/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author wmsedgar

    (@wmsedgar)

    abhis2.0,

    In the current version of WP HTML Sitemap, the PHP function file_get_contents() function is required. However, this function is disabled by the settings on your web server. You can enable this by adding
    the following line to your php.ini file:

    allow_url_fopen=1

    Cheers,

    -Bill

    Thread Starter abhis2.0

    (@abhis20)

    Hey Bill,

    Thanks for the response.

    Is it safe practice or should I close it after generating map?

    PS: Loved your plugin

    Thread Starter abhis2.0

    (@abhis20)

    Sorry to bump in again.

    If I may ask again, is it safe practice to let the line there be forever or should I remove it after generating sitemap?

    Plugin Author wmsedgar

    (@wmsedgar)

    abhis2.0,

    There are differing views on that depending upon how secure you need your server to be. If you want to comment it out that is entirely up to you. Just remember that to use the WP HTML Sitemap plugin you’ll need to re-enable it in the future.

    Cheers,

    -Bill

    Thread Starter abhis2.0

    (@abhis20)

    Thanks. Love you 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error after activating! Says file_get_contents() wrapper disabled’ is closed to new replies.