Title: Errors with shortcode
Last modified: August 22, 2016

---

# Errors with shortcode

 *  [darkhorse20](https://wordpress.org/support/users/darkhorse20/)
 * (@darkhorse20)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/errors-with-shortcode/)
 * I installed this plugin with the 2015 theme and used the shortcode to add the
   calendar.
 * Here’s the error I’m getting:
 *     ```
       Warning: require_once(wp-content/plugins/php-event-calendar/server/html/event-create-public.html.php): failed to open stream: No such file or directory in /website.dev/wp/wp-content/plugins/php-event-calendar/server/classes/cls_phpeventcal.php on line 145
   
       Fatal error: require_once(): Failed opening required 'wp-content/plugins/php-event-calendar/server/html/event-create-public.html.php' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php') in /website.dev/wp/wp-content/plugins/php-event-calendar/server/classes/cls_phpeventcal.php on line 145
       ```
   
 * Any ideas why this is happening?
 * [https://wordpress.org/plugins/php-event-calendar/](https://wordpress.org/plugins/php-event-calendar/)

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

 *  Plugin Author [chenster](https://wordpress.org/support/users/chenster/)
 * (@chenster)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/errors-with-shortcode/#post-5788585)
 * The required file is missing. Probably due to corrupted during upload. Please
   try to download the file and install it manually by uploading the plugin files.
 *  Thread Starter [darkhorse20](https://wordpress.org/support/users/darkhorse20/)
 * (@darkhorse20)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/errors-with-shortcode/#post-5788596)
 * I think I figured out why the error occurs. The plugin doesn’t like it when WordPress
   is installed in a subdirectory. For example if the site URL settings are [http://website.com](http://website.com)
   and the WordPress URL settings are [http://website.comd/wp](http://website.comd/wp)
   I get the error. But if I move WordPress out of the subdirectory so both the 
   site URL and WordPress URL settings are [http://website.com](http://website.com),
   the plugin doesn’t throw the error.
 *  Plugin Author [chenster](https://wordpress.org/support/users/chenster/)
 * (@chenster)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/errors-with-shortcode/#post-5788671)
 * That’s interesting. I too have tested on a WP instance installed in a subdirectory.
   It installed and worked just fine.

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

The topic ‘Errors with shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-event-calendar_2e2e2e.svg)
 * [PHP Event Calendar for WordPress](https://wordpress.org/plugins/php-event-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-event-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/php-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-event-calendar/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [chenster](https://wordpress.org/support/users/chenster/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/errors-with-shortcode/#post-5788671)
 * Status: not resolved