markhood73
Forum Replies Created
-
Forum: Plugins
In reply to: [Map Images] Google API Error MessageI get problems too… but a slightly different error:
Google has disabled use of the Maps API for this application. This site is not authorized to use the Google Maps client ID provided. If you are the owner of this application, you can learn more about registering URLs here: https://developers.google.com/maps/documentation/business/clientside/auth#registering_authorized_urls
Sorry, I get the same error:
– The retina file ‘https://mac-pro.local:8888/wordpress/wordpress/wp-content/uploads/2013/06/Street-Art-Brighton-2-300×[email protected]’ cannot be found.
I wouldn’t worry about it – it works on my ‘live’ site without any changes, and if I’m the first to see it, I’m more than happy it’s my local test site being set up incorrectly.
I appreciate the efforts though, I suspect my ‘site_url’ is wrong, and it’s influencing everything that relies on it. If I change it, the site breaks but maybe I should look into that, since your plugin is clearly working OK otherwise ??
I didn’t mention, but I’m on version 1.4.2 of your plugin (last one I can see).
For now, I’ve worked around it with the following edits in wp-retina-2x.php (just on my local testing site):
Line 109:
//was $filepath = trailingslashit( ABSPATH ) . $img_pathinfo; $filepath = '/Applications/MAMP/htdocs/' . $img_pathinfo;
Line 113:
//was $retina_pathinfo = ltrim( str_replace( ABSPATH, "", $potential_retina ), '/' ); $retina_pathinfo = ltrim( str_replace( 'Applications/MAMP/htdocs', "", $potential_retina ), '/' );
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
So it’s ABSPATH that’s wrong – which comes from siteurl (I believe) – but changing that breaks my entire site!
It works on the live site, so I suspect my local install is wrong in some way, hopefully this can help other folks who might see something odd?