• Resolved fishnyc22

    (@fishnyc22)


    Hey there. Just updated from v7 to v8 and after doing so I get this error when visiting the Settings page. Any ideas?

    Fatal error: Uncaught exception 'Exception' with message 'File does not exist: /wp-content/plugins/wp-google-maps/includes/legacy/html/tile-server-fieldset.html.php' in /wp-content/plugins/wp-google-maps/includes/class.dom-document.php:85 Stack trace: #0 /wp-content/plugins/wp-google-maps/includes/legacy/settings-page.php(315): WPGMZA\DOMDocument->loadPHPFile('/home/caitli12/...') #1 /wp-content/plugins/wp-google-maps/legacy-core.php(3419): wpgmza_legacy_settings_page_basic() #2 /wp-content/plugins/wp-google-maps/legacy-core.php(3401): wpgmaps_settings_page_basic() #3 [internal function]: wpgmaps_menu_settings_layout('') #4 /wp-includes/class-wp-hook.php(286): call_user_func_array('wpgmaps_menu_se...', Array) #5 /ho in /wp-content/plugins/wp-google-maps/includes/class.dom-document.php on line 85
    The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.
    • This topic was modified 6 years, 7 months ago by fishnyc22.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    I updated to version 8.0.0 for both the free and pro-addon versions but as soon as I updated the free version to 8.0.1 a similar error appeared. I have had to deactivate the pro-addon for the site to work.

    I await a solution.

    Regards

    Alan

    Hello
    following the update I have the same error after selecting OpenLayers
    the configuration page is now inaccessible
    the code on the page settings-page.php on line 312 calls files not present in the free version if we use OpenLayers
    is it an error or is it voluntary?

    	if(isset($wpgmza_settings['wpgmza_maps_engine']) && $wpgmza_settings['wpgmza_maps_engine'] == 'open-layers')
    	{
    		$tileServerSelect = new WPGMZA\DOMDocument();
    		$tileServerSelect->loadPHPFile(plugin_dir_path(__FILE__) . 'html/tile-server-fieldset.html.php');
    		// TODO: In Pro, check this property exists
    

    waiting for an answer I commented the condition and the configuration is accessible again

    	/*
    	if(isset($wpgmza_settings['wpgmza_maps_engine']) && $wpgmza_settings['wpgmza_maps_engine'] == 'open-layers')
    	{
    		$tileServerSelect = new WPGMZA\DOMDocument();
    		$tileServerSelect->loadPHPFile(plugin_dir_path(__FILE__) . 'html/tile-server-fieldset.html.php');
    		// TODO: In Pro, check this property exists
    		
    		if(isset($wpgmza_settings['tile_server_url']))
    		{
    			$option = $tileServerSelect->querySelector('option[value="' . $wpgmza_settings['tile_server_url'] . '"]');
    			if($option)
    				$option->setAttribute('selected', 'selected');
    		}
    		
    		$ret .= $tileServerSelect->html;
    	}
    	*/
    

    Hi there

    Thank you for bringing this to our attention, our apologies for any inconvenience caused.

    Please can you change __FILE__ to WPGMZA_FILE for a quick fix,

    We’ve patched this issue in 8.0.2 which will go to release in the next hour or so.

    Kind regards
    – Perry

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

The topic ‘Fatal error: Uncaught exception after updating to v8’ is closed to new replies.