• Hi Guys,

    Tried to login to my site https://www.cardiffnetball.co.uk today and had a blank screen, set the php setting to show the error and it shows as this:

    Fatal error: Call to undefined method cnOptions::getGoogleMapsAPI() in /customers/b/0/0/cardiffnetball.co.uk/httpd.www/wp-content/plugins/connections/connections.php on line 1128

    I’ve had a look in the file and can’t see what’s wrong with it. Assuming something has changed with Google API as I haven’t touched anything.

    Am completely stumped on how to fix this. Please can you assist?

    (Code in comment below, with the line in question in bold)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter emzquem

    (@emzquem)

    /**
    		 * Register the external JS libraries that may be enqueued in either the frontend or admin.
    		 *
    		 * @return NULL
    		 */
    		public function registerScripts()
    		{
    if ( $this->options->getGoogleMapsAPI() ) wp_register_script('cn-google-maps-api', 'https://maps.google.com/maps/api/js?sensor=false', array( 'jquery' ), CN_CURRENT_VERSION, $this->options->getJavaScriptFooter() );
    wp_register_script('jquery-gomap-min', WP_PLUGIN_URL . '/connections/js/jquery.gomap-1.3.2.min.js', array('jquery' , 'cn-google-maps-api' ), '1.3.2', $this->options->getJavaScriptFooter() );
    			wp_register_script('jquery-markerclusterer-min', WP_PLUGIN_URL . '/connections/js/jquery.markerclusterer-2.0.10.min.js', array('jquery' , 'cn-google-maps-api' , 'jquery-gomap-min' ), '2.0.10', $this->options->getJavaScriptFooter() );
    
    			wp_register_script('jquery-qtip', WP_PLUGIN_URL . '/connections/js/jquery.qtip.min.js', array('jquery'), 'nightly', $this->options->getJavaScriptFooter() );
    			wp_register_script('jquery-preloader', WP_PLUGIN_URL . '/connections/js/jquery.preloader.js', array('jquery'), '1.1', $this->options->getJavaScriptFooter() );
    			wp_register_script('jquery-spin', WP_PLUGIN_URL . '/connections/js/jquery.spin.js', array('jquery'), '1.2.5', $this->options->getJavaScriptFooter() );
    			wp_register_script('jquery-chosen-min', WP_PLUGIN_URL . '/connections/js/jquery.chosen-0.9.8.min.js', array('jquery'), '0.9.8', $this->options->getJavaScriptFooter() );
    			wp_register_script('jquery-validate' , WP_PLUGIN_URL . '/connections/js/jquery.validate.min.js', array('jquery', 'jquery-form') , '1.9.0' , $this->options->getJavaScriptFooter() );
    		}
    
    		/**

    Login with an FTP client and delete the “connections” plugin from:

    /customers/b/0/0/cardiffnetball.co.uk/httpd.www/wp-content/plugins/connections/

    Your site should at least load then, but your Google Maps functionality will be missing.

    Thread Starter emzquem

    (@emzquem)

    Et voila.

    Thanks for quick response.

    The site is back up.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Website Down with PHP Error. Help.’ is closed to new replies.