Title: Error when activating plugin
Last modified: August 31, 2016

---

# Error when activating plugin

 *  Resolved [gonebeta](https://wordpress.org/support/users/gonebeta/)
 * (@gonebeta)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/)
 * The plugin does not activate. give error.
 * Warning: require_once(/srv/users/serverpilot/apps/****tips/public/wp-content/
   plugins/full-site-cache-kc/functions.php): failed to open stream: No such file
   or directory in /srv/users/serverpilot/apps/***tips/public/wp-content/plugins/
   full-site-cache-kc/full-site-cache-kc.php on line 44
 * This is on a clean wordpress install with no cache plugin or anything else.
 * [https://wordpress.org/plugins/full-site-cache-kc/](https://wordpress.org/plugins/full-site-cache-kc/)

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

 *  Plugin Contributor [ze3kr](https://wordpress.org/support/users/ze3kr/)
 * (@ze3kr)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7187926)
 * Please check `/srv/users/serverpilot/apps/****tips/public/wp-content/plugins/
   full-site-cache-kc/functions.php` this file, it must exist, if not, download 
   here [https://downloads.wordpress.org/plugin/full-site-cache-kc.2.0.0.zip](https://downloads.wordpress.org/plugin/full-site-cache-kc.2.0.0.zip)
   and upload `functions.php` file to `/srv/users/serverpilot/apps/****tips/public/
   wp-content/plugins/full-site-cache-kc/`
 * In my test, it doesn’t appear this problem. I think it might because of when 
   this plugin is updating online on WordPress, it updated `full-site-cache-kc.php`
   before `functions.php`, so it have this problem. Try to install this plugin via
   FTP, or deactivate this plugin before update.
 * The new version had fix this bug, if functions.php not exist, returns a error
   and not effect WordPress.
 * If the error still exist, please tell me.
 *  Thread Starter [gonebeta](https://wordpress.org/support/users/gonebeta/)
 * (@gonebeta)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7187933)
 * Thanks! I can confirm there was no function file there and there is no function
   file in the link you provided up there.
 * Please check again.
    There are 6 files there:
 * readme.txt
    README.md LICENSE index.php full-site-cache-kc.php include.php
 * No functions.php file there
 *  Thread Starter [gonebeta](https://wordpress.org/support/users/gonebeta/)
 * (@gonebeta)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7187937)
 * Thanks! I was able to activate the new one (version 2.0.1) but it came up with
   this error:
 * Fatal error: Uncaught Error: Call to undefined function fsckeycdn_status() in/
   srv/users/serverpilot/apps/****tips/public/wp-content/plugins/full-site-cache-
   kc/full-site-cache-kc.php:59 Stack trace: #0 /srv/users/serverpilot/apps/****
   tips/public/wp-includes/plugin.php(235): fsckeycdn_notice_meta(Array, ‘advanced-
   excerp…’) #1 /srv/users/serverpilot/apps/****tips/public/wp-admin/includes/class-
   wp-plugins-list-table.php(764): apply_filters(‘plugin_row_meta’, Array, ‘advanced-
   excerp…’, Array, ‘all’) #2 /srv/users/serverpilot/apps/****tips/public/wp-admin/
   includes/class-wp-plugins-list-table.php(485): WP_Plugins_List_Table->single_row(
   Array) #3 /srv/users/serverpilot/apps/****tips/public/wp-admin/includes/class-
   wp-list-table.php(1213): WP_Plugins_List_Table->display_rows() #4 /srv/users/
   serverpilot/apps/****tips/public/wp-admin/includes/class-wp-list-table.php(1141):
   WP_List_Table->display_rows_or_placeholder() #5 /srv/users/serverpilot/apps/****
   tips/public/wp-admin/plugins.php(545 in /srv/users/serverpilot/apps/****tips/
   public/wp-content/plugins/full-site-cache-kc/full-site-cache-kc.php on line 59
 *  Thread Starter [gonebeta](https://wordpress.org/support/users/gonebeta/)
 * (@gonebeta)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7187939)
 * Just so you know, this error appears in front of all plugins active on the site
 *  Plugin Contributor [ze3kr](https://wordpress.org/support/users/ze3kr/)
 * (@ze3kr)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7187942)
 * I’ll fix it in the next version. But before that, you can turn the debug mode
   off for your PHP. Set display_errors to Off. (Add `display_errors = Off` in php.
   ini.
 *  Thread Starter [gonebeta](https://wordpress.org/support/users/gonebeta/)
 * (@gonebeta)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7187950)
 * Thanks! I tried that’ it didnt help. I’ll wait for the update.
    Maybe I’ll try
   something else out for now though because I still want to be able to use cache
   plugin on the site.
 * thanks for all your effort!
 *  Plugin Contributor [ze3kr](https://wordpress.org/support/users/ze3kr/)
 * (@ze3kr)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7187979)
 * Yes, I found why this error happened. I did’t push some code directly to the 
   SVN. Now this plugin is able to work.
 *  Thread Starter [gonebeta](https://wordpress.org/support/users/gonebeta/)
 * (@gonebeta)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7187998)
 * Better now. I can generate the detail but I can ‘t seem to go past the first 
   stage ( I am using cloudflare.co for my DNS could that be the problem?
 * Basically, I can’t login to wp-admin.mysite.com after implimenting the dns change
   even an hour after that.
 * in the first data generated in section one I saw this info there:
 * $fsckeycdn_useHTTPS = false; – shouldn’t that be true if I am using letsencrypt?
 * Also, do I need to first create the zone info on keycdn with the exact same info
   generated in the section you labelled “Add following DNS records, replacing existing
   records, BIND format DNS:”?
 * Because once I enter that into cloudflare the domain could become unreachable.
 *  Thread Starter [gonebeta](https://wordpress.org/support/users/gonebeta/)
 * (@gonebeta)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7188002)
 * Something else just occurred to me. referencing ip address as the origin server
   would almost always result in error for servers with multiple site on the same
   IP address. All my vps servers use serverpilot.io instead of cpanel.
 * I was able to solve that using this method [https://serverpilot.io/community/articles/how-to-preview-apps-before-they-are-live.html](https://serverpilot.io/community/articles/how-to-preview-apps-before-they-are-live.html)
 * So, the sites need to use a custom url, but not ip address to work.
 *  Plugin Contributor [ze3kr](https://wordpress.org/support/users/ze3kr/)
 * (@ze3kr)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7188013)
 * First, you need to use custom URL. And you don’t need to add zone by you self,
   this plugin will add the zone automatically. And
    $fsckeycdn_useHTTPS = false;
   doesn’t effect your KeyCDN HTTPS, it set to false because it detect your server
   doesn’t support HTTPS. If your server support, please go to CloudFlare and turn
   ssl to full ssl.
 * The domain will be unreachable until you go to the next step.
 *  Plugin Contributor [ze3kr](https://wordpress.org/support/users/ze3kr/)
 * (@ze3kr)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7188014)
 * And you need to check origin server IP, the results isn’t always right, especially
   you use shared hosting. This plugin will send a HTTP request to your server itself
   to check the server own IP, it’s works well at most of time, but not always work.
 *  Thread Starter [gonebeta](https://wordpress.org/support/users/gonebeta/)
 * (@gonebeta)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7188017)
 * Thanks! Almost there! 🙂 I went through the first two steps and it automatically
   created a zone and all that’s needed on keycdn.
 * The login and and https all works great! thanks! The site seems to work fine 
   but I couldn’t go to the next step because of this error:
 * Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /
   srv/users/serverpilot/apps/mysitename/public/wp-content/plugins/full-site-cache-
   kc/functions.php:512 Stack trace: #0 /srv/users/serverpilot/apps/mysitename/public/
   wp-includes/plugin.php(525): fsckeycdn_control_options(”) #1 /srv/users/serverpilot/
   apps/mysitename/public/wp-admin/admin.php(236): do_action(‘settings_page_f…’)#
   2 /srv/users/serverpilot/apps/mysitename/public/wp-admin/options-general.php(
   10): require_once(‘/srv/users/serv…’) #3 {main} thrown in /srv/users/serverpilot/
   apps/mysitename/public/wp-content/plugins/full-site-cache-kc/functions.php on
   line 512
 * What should I be doing next?
 *  Thread Starter [gonebeta](https://wordpress.org/support/users/gonebeta/)
 * (@gonebeta)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7188018)
 * I refrashed that page after about 30 minutes to see what could be going on and
   that error was gone but replaced with this one:
 * Warning: Invalid argument supplied for foreach() in /srv/users/serverpilot/apps/
   mywebsiteurl/public/wp-content/plugins/full-site-cache-kc/functions.php on line
   39
 *  Plugin Contributor [ze3kr](https://wordpress.org/support/users/ze3kr/)
 * (@ze3kr)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7188072)
 * Please check does zonealias is created or not. This plugin will also automatically
   create zonealias for you, but it seems that the request to create zonealias is
   timeout and this plugin doesn’t set a fault-tolerant for that, it will be fix
   in the next version.
 * And if the zone is created, add zonealias by yourself. And go to the settings
   page of this plugin, if it show the purge button, it means you have done all 
   setup.

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

The topic ‘Error when activating plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/full-site-cache-kc.svg)
 * [Full Site Cache for KeyCDN](https://wordpress.org/plugins/full-site-cache-kc/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/full-site-cache-kc/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/full-site-cache-kc/)
 * [Active Topics](https://wordpress.org/support/plugin/full-site-cache-kc/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/full-site-cache-kc/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/full-site-cache-kc/reviews/)

 * 14 replies
 * 2 participants
 * Last reply from: [ze3kr](https://wordpress.org/support/users/ze3kr/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-24/#post-7188072)
 * Status: resolved