• Resolved Anonymous User 14054542

    (@anonymized-14054542)


    My website is in a subfolder in my account, not the root folder of the domain. So my site URL is different from my home URL. This plugin breaks the site when I install it because it’s using the home URL.

    I have to go to the plugin folder via FTP and go to core > Helper > Helper.php and then go to line 243 and change ‘home’ to ‘siteurl’.

    Is there any plan to fix this? It doesn’t seem like it would interfere with anyone who has their site in the root folder and would actually make the plugin work for websites who don’t.

    Every time there’s a plugin update I have to go in and fix it.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @pbwebd

    Thanks for the feedback. We will consider it for future updates.

    Regards,
    Stanimir

    I *always* use different SiteURL and HomeURL. It’s a 100% legit supported config for WordPress, and in my opinion, a very smart and versatile setup.

    Does SG Optimizer really not work in this setup? If so, it’s shocking that SG is so well regarded in the WP community, and yet ignores this perfectly legit, if not very common, config.

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    It does work with custom setup and we’re not ignoring it.

    Good to hear, that’s what I’d expect from SG. Thanks for the fast reply and confirmation.

    Thread Starter Anonymous User 14054542

    (@anonymized-14054542)

    Just to be clear, it doesn’t work with a custom setup yet. Which means you’re working on it?

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @pbwebd

    I’ve installed a test site with different site and home URLs, but everything work ok.

    Would it be possible to provide more details about the issues you have?

    Regards,
    Stanimir

    Thread Starter Anonymous User 14054542

    (@anonymized-14054542)

    My WordPress Address is https://pbwebd.com/pbwebd and my Site Address is https://pbwebd.com.

    The error in the console is: GET https://pbwebd.com/wp-content/uploads/siteground-optimizer-assets/siteground-optimizer-combined-styles-cf20af40089bf919dc62a7abedc669e2.min.css net::ERR_ABORTED 404

    Because it’s searching for get_option( ‘home’ ) instead of get_option( ‘siteurl’ ).

    As I said in my initial post, I have to go to the plugin folder via FTP and go to core > Helper > Helper.php and then go to line 243 and change ‘home’ to ‘siteurl’.

    When you’re testing a different home and siteurl, is your WordPress installation in a different folder than the root? I’m not sure how it could possibly work when it’s not looking for the right URL.

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Thanks,

    Indeed this is an issue and we will fix it in the upcoming version.

    Initially, I thought you have issues with the plugin settings page.

    Regards,
    Stanimir

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Can you check with this beta version of the plugin please:

    https://hristop27.sg-host.com/sg-cachepress.zip

    Good work @pbwebd – for identifying and reporting the bug (and the fix), and persisting here. And thank you SiteGround, for finally acknowledging the bug in the plugin, and providing the incredibly simple fix, so all your users can benefit (rather than having to fix the code in your plugin, and redo it every time the plugin updates).

    [rant] Bugs happen, all the time. We know, it’s fine. But what’s so frustrating is when tech support, at SiteGround or anywhere else, ignores legit bug reports like this, or just doesn’t bother to look closely and carefully at the issue, and instead passes it off with claims like “I’ve installed a test site with different site and home URLs, but everything work ok.” – which could not really have been true, as @pbwebd said “I’m not sure how it could possibly work when it’s not looking for the right URL.” And all when the fix is so simple. [/rant]

    Thread Starter Anonymous User 14054542

    (@anonymized-14054542)

    @hristo-sg Yes! That version works perfectly. What a relief.

    And I appreciate the comments, @tzeldin88. It definitely makes me feel less crazy!

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    @pbwebd great ?? We will fix everything repoted and publish a stable release next week so you can upgrade to it.

    @tzeldin88 there is no such thing as incredibly easy fix when you maintain a plugin used by almost a million people. You will be surprised how many cases there are which can be affected by a “simple” change of home and site url values, how many plugins and themes do crazy stuff that has nothing to do with best practices etc. Plus, that’s not the only thing we’re patching and improving. There is a deploy cycle which includes a lot of QA. This said, the SiteGround support team are not developers and they are not the right people to ask when you find a bug and / or expect to patch a plugin for you. Plus, in the majority of cases everything works just fine.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Site URL is different from Home URL’ is closed to new replies.