• Resolved jepcmart

    (@jepcmart)


    On 2.8.7. I force SSL for admin. When I generate the sitemap file, the sitemap.xml refers to https://www.example.com/wp-content/plugins/google-sitemap-plugin/sitemap.xsl. Then the sitemap.xml does not load correctly in the browser.

    Right now the codes does the following:

    $xml_stylesheet_path = plugins_url() . “/google-sitemap-plugin/sitemap.xsl”;

    Can you provide an option to set the url prefix (http or https) for the stylesheet url? That way it will produce http://www.example.com/wp-content/plugins/google-sitemap-plugin/sitemap.xsl

Viewing 4 replies - 1 through 4 (of 4 total)
  • From a bit of snooping around on the internet it looks as though any URL sensitive function (in this case plugins_url() ) will try to use HTTPS if you have used force SSL for admin.

    One solution which is posted here is to use this plugin.

    I have not used it myself but it does appear to be quite popular so it could be worth giving a try.

    Thread Starter jepcmart

    (@jepcmart)

    I’m using wpengine and that plugin is disallowed. Is there a hook I can use in your plugin or the ability to override your function?

    Ahh it’s not my plugin, all I can suggest is leave a support ticket on the plugin page.

    Just to be clear I have no control over the plugins_url() function as I am simply a volunteer like the majority of people on www.remarpro.com.

    If you have some coding skills then you could use the hook stated at the bottom of this page.

    If you are not familiar with the WordPress systems of hooks and filters I suggest you look at the hooks and filter api

    You could use one of these hooks in the themes functions.php if you are allowed to modify it.

    Other than that I am not sure what to suggest.

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Currently we are working on fixing this problem. We will let you know as soon as we find a solution.

    Sincerely,
    BestWebSoft Support Team

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stylesheet Error’ is closed to new replies.