googlearchive / appengine-php-wordpress-starter-project

Starter project for running WordPress on Google Cloud Platform
366 stars 226 forks source link

Image URL becomes secured link regardless of whether use Secure URL is checked #62

Closed Kage1989 closed 8 years ago

Kage1989 commented 8 years ago

First off, this plugin is awesome. Now I'm able to upload media on my Wordpress site, just the way I wanted. Thanks guys! :)

But I've faced an odd issue on getting the full size image link for this site that I'm playing around with. I'm not sure if it's because of the theme that I'm using or what, but the full size image (not the thumbnails) doesn't appear and a popup tells me that

Image cannot be loaded. Make sure the path is correct and image exist.

Oddly, the href is pointed to a secured URL when I did not check the "Use secure URLs for serving media files" checkbox. Just to double check, the URL for the image that I've uploaded is on an unsecured URL. Is there anyway to identify what could have been the cause for this problem?

I don't have an SSL certificate for the website that I'm setting up. So an unsecured link would be perfect.

Some background on the themes and plugins that I'm using: Theme: Storefront Plugins: 1) Woocommerce 2) WP Editor (although this doesn't seem to work at all since I can't edit the style.css on the fly) 3) Batcache Manager 4) Google App Engine for Wordpress (duh, of course)

You may replicate the issue by visiting https://pandanpoetry-wp.appspot.com/shop/cookies/ and clicking on any of the images that you see.

Kage1989 commented 8 years ago

Oh my god! I think I'm an idiot. This did not dawn on me till just 5 seconds after I posted the issue. But just for clarification, does the image URL need to be secured just because the site I'm on right now uses a secured URL?

Kage1989 commented 8 years ago

Well, it seems to me that I've not done a thorough job of doing my testing. But yeah... the best option is to set it to use secure URL regardless. Now it works on both https and http connection. Sorry and pardon me.