WordPress.org

Ready to get started?Download WordPress

Forums

WordPress CDN Rewrite
function.require-once error (4 posts)

  1. mikeotgaar
    Member
    Posted 1 year ago #

    Error message after installation - (navigating to configuration page)

    Warning: require_once(./functions.php) [function.require-once]: failed to open stream: No such file or directory in /home/graphgwi/public_html/tech/wp-content/plugins/wordpress-cdn-rewrite/html/config.php on line 26
    
    Fatal error: require_once() [function.require]: Failed opening required './functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/graphgwi/public_html/tech/wp-content/plugins/wordpress-cdn-rewrite/html/config.php on line 26

    Any Suggestions?

    http://wordpress.org/extend/plugins/wordpress-cdn-rewrite/

  2. Heiko Mamerow
    Member
    Posted 9 months ago #

    Me to, same error.

    My solution:

    1. Open this file in your editor:
      path_to_wordpress/wp-content/plugins/wordpress-cdn-rewrite/html/config.php
    2. Remove this (line 26):
      require_once( dirname( __DIR__ ) . '/functions.php' );
    3. ...with that:
      define('__ROOT__', dirname(dirname(__FILE__)));
      require_once(__ROOT__.'/functions.php' );
    4. Do not forget to save... ;-)

    Look here why: http://www.php.net/manual/en/function.require-once.php#104265

  3. mikeotgaar
    Member
    Posted 9 months ago #

    Thanks Heiko - I'm sure this will help users

  4. Heiko Mamerow
    Member
    Posted 9 months ago #

    ...no problem :-)

    btw. read also this topic - there will be another problem:
    http://wordpress.org/support/topic/plugin-wordpress-cdn-rewrite-no-urls-get-rewritten

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic