n1ck0
Forum Replies Created
-
Confirming for other interested WordPress users.
Still no luck with those 4 (including Cloudflare tab) pre populated fields in SG Optimizer.
The terminology SiteGround is using is different to WordPress in the Settings > General section…
* SiteGround is referencing “siteurl” as what WordPress calls WordPress Address (URL) – which is the backend
* SiteGround is referencing “home URL” as what WordPress calls Site Address (URL) – which is the frontend
This is a bit confusing, to me anyway.Regardless, if SiteGround uses their “siteurl” / WordPress’s backend “WordPress Address (URL)” for those prepopulated 4 x fields, it’s always going to output “wp” (or whatever the sub folder is called) in a sub folder setup.
So to me I don’t think you can say at this point in time with version SG Optimizer 5.7.12 that it fully supports a sub folder setup. Shame.
Hi Stanimir,
You’re a bit eager to close this, it is not resolved for those 3 settings as reported.
Would it be possible to provide your ticket IDs?
Sure…
Here is a chat ID related to one enquiry: Chat 6709122.
Here is the follow up advanced email tech support: Ticket 3865496.
These 2 support contacts were prior to finding there was a www and a non www in the WordPress URLs as reported above (which your team didn’t pick up on).I’ve tested the plugin and it works with custom wp dir.
Yes, I confirmed that in this thread.
What isn’t working for us are those 3 settings as reported because the backend address with /wp in the url is pre-populated / hardcoded.Screencaps below…
WordPress General Settings:
SG Optimizer showing the pre-populated wp in the url so we can;t use those settings:
How do we get rid of the pre-populated wp in the url for those 3 settings?
Thanks.
Hi Stanimir,
Thanks so much for getting back to me and for the positive news.
Three support staff at Site Ground think otherwise – they all told me SG Optimizer wouldn’t work with WordPress in sub folder so you’d best let them know :). In one instance I gave backend WP access and two suport staff still couldn’t get it working for us.
Anyway, yesterday afternoon I had a little break through after I found a discrepancy in General > Settings due to another issue: the backend WordPress Address (URL) was non www and the frontend Site Address (URL) was www. This was changed during migration using the Site Ground migrator plugin. Once I picked up on this discrepancy and made both www, I reinstalled the SG Optimizer plugin and it started working. So that’s great news :).
Not all settings in SG Optimizer are setup for working in a WordPress sub folder install though because it pre-populates / hard codes the sub folder address from the backend WordPress Address (URL) (eg https://www.domain.com/wp) rather than the frontend Site Address (URL) (eg https://www.domain.com/). The pre-populated / hard coded backend WordPress Address (URL) is greyed out and cannot be changed. The frontend website on the Site Address (URL) is what we want to cache so hard coding the backend WordPress Address (URL) makes no sense for a sub folder setup.
This affects these 3 x SG Optimizer options for:
* Supercacher Settings > Excluding URLs (so we’re unable to exclude front end urls)
* Supercacher Settings > Test URLs for Cache Status (so we’re unable to test front end urls)
* Speed Test > Score Test (so we’re unable to speed test front end pages)Would love to see these 3 items resolved in an update – then a sub folder setup will work flawlessly in the SG Optimizer plugin.
Thank you kindly and keep up the great work.
- This reply was modified 3 years, 10 months ago by n1ck0.
Forum: Fixing WordPress
In reply to: white screen in front end when not logged inThanks Hugh.
I disabled all plugins and the site worked. Tracked it down to WP Rocket, must have been a caching issue. Disabled WP Rocket and the front end worked as expected. Reactivated WP Rocket and site working fine. Weird. I don’t think the hosting is very good so that might not help things.
Thanks again.Hi Sybre,
Thanks so much. You have fixed it – without much info to go on… You are good!!!
Thank you very much and have a super day.
Hi Sybre,
Ok thanks.
Fair enough and understood but… you didn’t ask for it :).
Best of luck and have a great weekend yourself.
Thanks again.
Hi Sybre,
Thanks so much. Agreed, it would be nice if they did. Sometimes those big players and too big for their coding boots!
Ah I see, thanks for confirming that. Understood.
Ok great, I will keep an eye on that GitHub issue.
If you would like login access to see the issue happening, just let me know and give me your email address (or another way for me to send it to you privately).
Thanks again.
Resolved
Ok… I think this is sorted. I noticed today that the WordPress Address URL and the Site Address URL for some reason reverted back to http. Not sure why that was, its a bit wierd. Everything else was showing as https, just not the issues reported. Anyway, I think this is resolved now – Hopefully it doesn’t revert back again.
Ha, if only I could delete those extra posts :).
Not one of those 3 duplicate replies showed on sending, so I did it again, and again, and again… Whoops!Greatly appreciate any help that anyone can give with the Media Library insecure content issue.
Thanks in advance.
Hi j09,
Thanks so much for the assist.
I did the F12 in Firefox and all thumbs in the media library show as https when I look in the inspector – so I think that the outputting is as expected. Nothing has changed there.
Installing Really Simple SSL made no difference to the thumbs.
With your suggestion of mixed content, I managed to get the WordFence icons and Media Library thumbnails showing again by changing http to https in this line related to hotlinking in the htaccess file (my oversight given new to https):
RewriteCond %{HTTP_REFERER} !^https://(www.)?domain.com.au/.*$ [NC]
So now the thumbnails in the Media Library are showing but I get a mixed content warning (“Parts of this page are not secure”).
On doing a search for http in the source code of the Media Library page, I see the following non https / std http links:
wp admin bar
<li id="wp-admin-bar-site-name" class="menupop"><a class="ab-item" aria-haspopup="true" href="https://domain.com.au/">Website Name</a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-site-name-default" class="ab-submenu"> <li id="wp-admin-bar-view-site"><a class="ab-item" href="https://domain.com.au/">Visit Site</a>
(this one does not throw a warning in any of the other pages so can probably ignore)
Media Library table. 2 http links per image (same issue for each of the 3 thumbs)
<td class='title column-title has-row-actions column-primary' data-colname="File"> <strong class="has-media-icon"> <a href="https://domain.com.au/wp-admin/post.php?post=48&action=edit" aria-label="“bookmarker512w” (Edit)"> <span class="media-icon image-icon"><img width="60" height="60" src="https://domain.com.au/wp-content/uploads/2016/05/bookmarker512w-300x300.png" class="attachment-60x60 size-60x60" alt="" srcset="https://domain.com.au/wp-content/uploads/2016/05/bookmarker512w-300x300.png 300w, https://domain.com.au/wp-content/uploads/2016/05/bookmarker512w.png 512w" sizes="(max-width: 60px) 85vw, 60px" /></span> bookmarker512w </a> </strong> <p class="filename"> <span class="screen-reader-text">File name: </span>bookmarker512w.png </p> <div class="row-actions"> <span class='edit'><a href="https://domain.com.au/wp-admin/post.php?post=48&action=edit" aria-label="Edit “bookmarker512w”">Edit</a> | </span> <span class='delete'><a href="post.php?action=delete&post=48&_wpnonce=3063a05ea8" class="submitdelete aria-button-if-js" onclick='return showNotice.warn();' aria-label="Delete “bookmarker512w” permanently">Delete Permanently</a> | </span> <span class='view'><a href="https://domain.com.au/home/bookmarker512w/" aria-label="View “bookmarker512w”" rel="permalink">View</a> | </span> <span class='regenerate_thumbnails'><a href="https://domain.com.au/wp-admin/tools.php?page=force-regenerate-thumbnails&goback=1&ids=48&_wpnonce=c18b48223c" title="Regenerate the thumbnails for this single image">Force Regenerate Thumbnails</a></span> </div>
So these 2 links for each thumbnail appear to be the problem:
span class="media-icon image-icon"><img width="60" height="60" src="https://domain.com.au/wp-content/uploads/2016/05/bookmarker512w-300x300.png... span class='view'><a href="https://domain.com.au/home/bookmarker512w/" aria-label="View “bookmarker512w”" rel="permalink">View..
Any ideas on how to fix those items per each image?
Hi j09,
Thanks so much for the assist.
I did the F12 in Firefox and all thumbs in the media library show as https when I look in the inspector – so I think that the outputting is as expected. Nothing has changed there.
Installing Really Simple SSL made no difference to the thumbs.
With your suggestion of mixed content, I managed to get the WordFence icons and Media Library thumbnails showing again by changing http to https in this line related to hotlinking in the htaccess file (my oversight given new to https):
RewriteCond %{HTTP_REFERER} !^https://(www.)?domain.com.au/.*$ [NC]
So now the thumbnails in the Media Library are showing but I get a mixed content warning (“Parts of this page are not secure”).
On doing a search for http in the source code of the Media Library page, I see the following non https / std http links:
wp admin bar
<li id="wp-admin-bar-site-name" class="menupop"><a class="ab-item" aria-haspopup="true" href="https://domain.com.au/">Website Name</a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-site-name-default" class="ab-submenu"> <li id="wp-admin-bar-view-site"><a class="ab-item" href="https://domain.com.au/">Visit Site</a>
(this one does not throw a warning in any of the other pages so can probably ignore)
Media Library table. 2 http links per image (same issue for each of the 3 thumbs)
<td class='title column-title has-row-actions column-primary' data-colname="File"> <strong class="has-media-icon"> <a href="https://domain.com.au/wp-admin/post.php?post=48&action=edit" aria-label="“bookmarker512w” (Edit)"> <span class="media-icon image-icon"><img width="60" height="60" src="https://domain.com.au/wp-content/uploads/2016/05/bookmarker512w-300x300.png" class="attachment-60x60 size-60x60" alt="" srcset="https://domain.com.au/wp-content/uploads/2016/05/bookmarker512w-300x300.png 300w, https://domain.com.au/wp-content/uploads/2016/05/bookmarker512w.png 512w" sizes="(max-width: 60px) 85vw, 60px" /></span> bookmarker512w </a> </strong> <p class="filename"> <span class="screen-reader-text">File name: </span>bookmarker512w.png </p> <div class="row-actions"> <span class='edit'><a href="https://domain.com.au/wp-admin/post.php?post=48&action=edit" aria-label="Edit “bookmarker512w”">Edit</a> | </span> <span class='delete'><a href="post.php?action=delete&post=48&_wpnonce=3063a05ea8" class="submitdelete aria-button-if-js" onclick='return showNotice.warn();' aria-label="Delete “bookmarker512w” permanently">Delete Permanently</a> | </span> <span class='view'><a href="https://domain.com.au/home/bookmarker512w/" aria-label="View “bookmarker512w”" rel="permalink">View</a> | </span> <span class='regenerate_thumbnails'><a href="https://domain.com.au/wp-admin/tools.php?page=force-regenerate-thumbnails&goback=1&ids=48&_wpnonce=c18b48223c" title="Regenerate the thumbnails for this single image">Force Regenerate Thumbnails</a></span> </div>
So these 2 WordPress links for each thumbnail appear to be the problem:
span class="media-icon image-icon"><img width="60" height="60" src="https://domain.com.au/wp-content/uploads/2016/05/bookmarker512w-300x300.png... span class='view'><a href="https://domain.com.au/home/bookmarker512w/" aria-label="View “bookmarker512w”" rel="permalink">View..
Any ideas on how to fix those items per each image?
Thanks again.
ps The Media Library page is the only page showing the mixed content warning – everything else (WP backend and website frontend) shows the green padlock
Hi j09,
I can’t see my reply here so just trying a shortened version with less code…
Thanks so much for the assist.
I did the F12 in Firefox and all thumbs in the media library show as https when I look in the inspector – so I think that the outputting is as expected. Nothing has changed there.
Installing Really Simple SSL made no difference to the thumbs.
With your suggestion of mixed content though (thankyou!), I managed to get the WordFence icons and Media Library thumbnails showing again by changing http to https in this line related to hotlinking in the htaccess file (my oversight given new to https):
RewriteCond %{HTTP_REFERER} !^https://(www.)?domain.com.au/.*$ [NC]
So now the thumbnails in the Media Library are showing but I get a mixed content warning on that page (“Parts of this page are not secure”).
On doing a search for http in the source code of the Media Library page, I see the following non https / std http links:
wp admin bar
<li id="wp-admin-bar-site-name" class="menupop"><a class="ab-item" aria-haspopup="true" href="https://domain.com.au/">Website Name</a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-site-name-default" class="ab-submenu"> <li id="wp-admin-bar-view-site"><a class="ab-item" href="https://domain.com.au/">Visit Site</a>
(this one does not throw a warning in any of the other pages so can probably ignore)
Media Library table. 2 http inclusions per image (same issue for each of the 3 thumbs)
span class="media-icon image-icon"><img width="60" height="60" src="https://domain.com.au/wp-content/uploads/2016/05/bookmarker512w-300x300.png"... and span class='view'><a href="https://domain.com.au/home/bookmarker512w/" aria-label="View “bookmarker512w”" rel="permalink">View..
Any ideas on how to fix those WP items for each image?
Thanks again.
Hi j09,
I can’t see my reply here so just trying a shortened version with less code…
Thanks so much for the assist.
I did the F12 in Firefox and all thumbs in the media library show as https when I look in the inspector – so I think that the outputting is as expected. Nothing has changed there.
Installing Really Simple SSL made no difference to the thumbs.
With your suggestion of mixed content though (thankyou!), I managed to get the WordFence icons and Media Library thumbnails showing again by changing http to https in this line related to hotlinking in the htaccess file (my oversight given new to https):
RewriteCond %{HTTP_REFERER} !^https://(www.)?domain.com.au/.*$ [NC]
So now the thumbnails in the Media Library are showing but I get a mixed content warning on that page (“Parts of this page are not secure”).
On doing a search for http in the source code of the Media Library page, I see the following non https / std http links:
wp admin bar
<li id="wp-admin-bar-site-name" class="menupop"><a class="ab-item" aria-haspopup="true" href="https://domain.com.au/">Website Name</a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-site-name-default" class="ab-submenu"> <li id="wp-admin-bar-view-site"><a class="ab-item" href="https://domain.com.au/">Visit Site</a>
(this one does not throw a warning in any of the other pages so can probably ignore)
Media Library table. 2 http inclusions per image (same issue for each of the 3 thumbs)
span class="media-icon image-icon"><img width="60" height="60" src="https://domain.com.au/wp-content/uploads/2016/05/bookmarker512w-300x300.png" class="attachment-60x60 size-60x60" alt="" srcset="https://domain.com.au/wp-content/uploads/2016/05/bookmarker512w-300x300.png 300w, https://domain.com.au/wp-content/uploads/2016/05/bookmarker512w.png 512w" sizes="(max-width: 60px) 85vw, 60px" />bookmarker512w... and span class='view'><a href="https://domain.com.au/home/bookmarker512w/" aria-label="View “bookmarker512w”" rel="permalink">View..
Any ideas on how to fix those WP items for each image?
Thanks again.