Title: [Plugin: WordPress CDN Rewrite] function.require-once error
Last modified: August 20, 2016

---

# [Plugin: WordPress CDN Rewrite] function.require-once error

 *  [mikeotgaar](https://wordpress.org/support/users/mikeotgaar/)
 * (@mikeotgaar)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-cdn-rewrite-functionrequire-once-error/)
 * 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/](http://wordpress.org/extend/plugins/wordpress-cdn-rewrite/)

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

 *  [Heiko Mamerow](https://wordpress.org/support/users/heiko_mamerow/)
 * (@heiko_mamerow)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-cdn-rewrite-functionrequire-once-error/#post-2992575)
 * 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](http://www.php.net/manual/en/function.require-once.php#104265)
 *  Thread Starter [mikeotgaar](https://wordpress.org/support/users/mikeotgaar/)
 * (@mikeotgaar)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-cdn-rewrite-functionrequire-once-error/#post-2992576)
 * Thanks Heiko – I’m sure this will help users
 *  [Heiko Mamerow](https://wordpress.org/support/users/heiko_mamerow/)
 * (@heiko_mamerow)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-cdn-rewrite-functionrequire-once-error/#post-2992577)
 * …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](http://wordpress.org/support/topic/plugin-wordpress-cdn-rewrite-no-urls-get-rewritten)

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

The topic ‘[Plugin: WordPress CDN Rewrite] function.require-once error’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-cdn-rewrite.svg)
 * [WordPress CDN Rewrite](https://wordpress.org/plugins/wordpress-cdn-rewrite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-cdn-rewrite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-cdn-rewrite/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-cdn-rewrite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-cdn-rewrite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-cdn-rewrite/reviews/)

## Tags

 * [cdn](https://wordpress.org/support/topic-tag/cdn/)

 * 3 replies
 * 2 participants
 * Last reply from: [Heiko Mamerow](https://wordpress.org/support/users/heiko_mamerow/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-cdn-rewrite-functionrequire-once-error/#post-2992577)
 * Status: not resolved