Title: Bug loading no existing scripts
Last modified: September 1, 2016

---

# Bug loading no existing scripts

 *  Resolved [T Billiusthefourth](https://wordpress.org/support/users/thomasbill/)
 * (@thomasbill)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/)
 * Why is the plugin trying to load these?…
 * <script type=’text/javascript’ src=’[http://h?ver=h’></script&gt](http://h?ver=h’></script&gt);
   
   <script type=’text/javascript’ src=’[http://2?ver=2′></script&gt](http://2?ver=2′></script&gt);
   <script type=’text/javascript’ src=’[http://3?ver=3′></script&gt](http://3?ver=3′></script&gt);
 * It’s slowing my site down! Site is much slower when you plugin is enabled and
   the above has appeared in the source code!
 * [https://wordpress.org/plugins/google-calendar-events/](https://wordpress.org/plugins/google-calendar-events/)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/page/2/?output_format=md)

 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-7597346)
 * Do you have a link to your site?
 * Could be a conflict with something, try going through this: [http://docs.simplecalendar.io/troubleshooting-theme-plugin-widget-conflicts/](http://docs.simplecalendar.io/troubleshooting-theme-plugin-widget-conflicts/)
 * Are you running a caching plugin?
 *  Thread Starter [T Billiusthefourth](https://wordpress.org/support/users/thomasbill/)
 * (@thomasbill)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-7597350)
 * We disabled the caching problem and all our plugins apart from simplecalendar
   the problem went away when we disabled the last plugin, yours. I went back to
   your older plugin version 3.0 and the bug isn’t there in this version.
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-7597411)
 * I’m sorry I am not really sure what is going on here. Is it loading the regular
   scripts too?
 * I will look in the code to see if anything sticks out.
 *  [wpfredrik](https://wordpress.org/support/users/wpfredrik/)
 * (@wpfredrik)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-7597437)
 * I have the exact same problem. Site is significantly slowed by trying to find
   these scripts with no success. Please have a look at this.
 *  [Mitja Jež](https://wordpress.org/support/users/mitjajez/)
 * (@mitjajez)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-7597438)
 * Investigating …
 * 1. it comes into google-calendar-events/includes/assets.php
    into `public function
   load_scripts( $scripts ) {` where enqueue happens of: wp_enqueue_script(src [http://h](http://h)
   h h wp_enqueue_script(ver [http://2](http://2) 2 2 wp_enqueue_script(src [http://h](http://h)
   h h wp_enqueue_script(var [http://3](http://3) 3 3
 *  [Mitja Jež](https://wordpress.org/support/users/mitjajez/)
 * (@mitjajez)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-7597439)
 * Is `$script` input bad?
 * Or is `if ( ! empty( $scripts ) && is_array( $scripts ) ) {` filter bad?
 * Or just
    `foreach ( $scripts as $script => $v )` does bad job?
 *  [Mitja Jež](https://wordpress.org/support/users/mitjajez/)
 * (@mitjajez)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-7597440)
 * may be also filter in `public function load() {` function:
    // First check if
   there is a multi-dimensional array of scripts `if ( isset( $this->scripts[0] )){`
 * Or inside `public function get_widgets_assets()`
    filter `add_filter( 'simcal_front_end_scripts',...`:`
   return array_merge( $scripts, $view->scripts( $min ) );`
 *  [Mitja Jež](https://wordpress.org/support/users/mitjajez/)
 * (@mitjajez)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-7597441)
 * `print_r($v);` inside `foreach` of `public function load_scripts` returns string
   like this:
    - `http://`<page/gce>`/assets/js/vendor/qtip.min.jsArray`
    - `2.2.11http://`<page/gce>`/assets/js/default-calendar.min.jsArray`
    - `3.1.21Array`
 * So, i belive that `array_merge` inside `simcal_front_end_scripts` filter was 
   done wrong.
 *  [hofmayer](https://wordpress.org/support/users/hofmayer/)
 * (@hofmayer)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-7597449)
 * I have the same problem.
 * Will you fix it??
 * Best regards.
    Hofmayer
 *  Plugin Contributor [Phil Derksen](https://wordpress.org/support/users/pderksen/)
 * (@pderksen)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-7597450)
 * We were able to repeat the issue when running PHP 5.3. Running PHP 5.4+ fixes
   it.
 * Also, at some point we’ll be requiring PHP 5.4 when we update to the current 
   2.x version of the Google API PHP client anyway, which already requires it.
 * [https://github.com/google/google-api-php-client](https://github.com/google/google-api-php-client)
 * Keep in mind PHP 5.6 or higher is strongly recommended by wordpress.org as well.
 * [https://wordpress.org/about/requirements/](https://wordpress.org/about/requirements/)
 * Because of these facts this will get a lower priority to fix.
 * Please contact your host about upgrading to PHP 5.4 or higher, and please confirm
   that it’s resolved when you’re able to do this.
 *  [hofmayer](https://wordpress.org/support/users/hofmayer/)
 * (@hofmayer)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-7597455)
 * So you leave it as it was…
 *  [wpfredrik](https://wordpress.org/support/users/wpfredrik/)
 * (@wpfredrik)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-7597457)
 * I have contacted my host provider and they claim that PHP version 5.3.3 is the
   latest stable release for RedHat so they will not upgrade until a new stable 
   version is released.
 * Anyone knows if this sounds like a reasonable response from them or if this is
   just a lazy hosting provider?
 *  [hofmayer](https://wordpress.org/support/users/hofmayer/)
 * (@hofmayer)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-7597458)
 * Don’t worry about that, i found a solution. The name of the solution is “All-
   in-One Event Calendar” it’s a better plugin with more options and better look.
 *  Plugin Contributor [Phil Derksen](https://wordpress.org/support/users/pderksen/)
 * (@pderksen)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-8179826)
 * Sorry folks. This is just going to get lower priority as PHP 5.3.x is very outdated
   as well as the other points noted in my last reply.
 * Any developer is welcome to take a stab at contributing a patch for this in our
   repository at [https://github.com/moonstonemedia/Simple-Calendar](https://github.com/moonstonemedia/Simple-Calendar).
 *  [craigdberry](https://wordpress.org/support/users/craigdberry/)
 * (@craigdberry)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/#post-8307748)
 * For the record, moving my site to php 6 solved the problem, without introducing
   any other problems. And that is the current recommended version for wp.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/page/2/?output_format=md)

The topic ‘Bug loading no existing scripts’ is closed to new replies.

 * ![](https://ps.w.org/google-calendar-events/assets/icon-256x256.png?rev=1263960)
 * [Simple Calendar - Google Calendar Plugin](https://wordpress.org/plugins/google-calendar-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-events/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-events/reviews/)

 * 16 replies
 * 8 participants
 * Last reply from: [Clifford Paulick](https://wordpress.org/support/users/cliffpaulick/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/bug-loading-no-existing-scripts/page/2/#post-8859611)
 * Status: resolved