• Hi everyone!

    First of all, thank you for making this awesome plugin!

    I would just like to ask the following questions and hopefully someone can shed some light:

    1. After editing my .htaccess files (there’s two that the plugin requires), the colored notification of these rules still appears on the advanced page, is this normal?

    2. I am using godaddy’s hosting and the plugin seems to be unable to edit these on its own automatically, what could be the problem here?

    3. Sometimes I get a notification in my browser that the page is temporarily unavailable and then it redirects me to the page after a second or two, is this normal too or will it go away and things kinda ‘settle’ down after awhile?

    4. Is it normal to have these ‘query strings’ after the URLs or can I get rid of that somehow? If not, why are they there?

    Thanks in advance guys, your help is much appreciated!
    Alex

Viewing 11 replies - 1 through 11 (of 11 total)
  • It’s not the hosting, it’s their latest update which left out a slash before “.htaccess”. In my case the plugin is looking for the lines and tries to add the lines in “public_html.htaccess” instead of “public_html/.htaccess”.
    This is most probably because this:
    $home_path . ‘.htaccess’
    was supposed to be this:
    $home_path . ‘/.htaccess’
    in all instances under wp-super-cache.php and rest/class.wp-super-cache-rest-get-status.php files.
    If you add the mod_rewrite rules manually to your .htaccess the plugin will work and probably they will push an update fixing this crap.

    Thread Starter legendarymage

    (@legendarymage)

    Oh I see. So problem no1 & no2 is due to this and is expected to be resolved in the next update. Alright.

    Yeah, I think I added everything manually and it seems to work for now I guess. Do you happen to know why this ‘temporary unavailable’ stuff keeps popping out every once in awhile? It’s definitely due to the plugin but I’m just worried that it may annoy visitors if it keeps happening and the pages are delayed for a second or two because of it.

    Also, this ‘query string’ at the end of posts and pages is confusing me, is that also because of the plugin or just wordpress and is custom url structure (I selected the ‘post name’ as a perma link option to make urls look better).

    Thanks a lot Malinc!

    I agree. After spending about a hour debugging the issue as to why my sites were broken, and not being able to setup wp super cache correctly with their latest update, I found the following in wp-cache.php

    $home_root = parse_url(get_bloginfo(‘url’));
    $home_root = isset( $home_root[ ‘path’ ] ) ? trailingslashit( $home_root[ ‘path’ ] ) : ‘/’;

    and then subsequently, them running…
    if (
    $home_root == ‘/’ &&
    $home_path != $_SERVER[ ‘DOCUMENT_ROOT’ ]
    ) {
    $home_path = $_SERVER[ ‘DOCUMENT_ROOT’ ];
    }

    and since $home_path will now never == $_SERVER[ ‘DOCUMENT_ROOT’ ], because $home_path has a trailing slash, and document root does not, the result is missing.

    It would be solved if they added trailingslashit() farther down to $home_path

    • This reply was modified 6 years, 9 months ago by xrampage16.

    I just checked, and indeed adding

    $home_path = trailingslashit($home_path);

    on line 3213 of wp-cache.php resolves the issue

    Thread Starter legendarymage

    (@legendarymage)

    Thanks xrampage16! So basically, if I edited htaccess (both of them) manually, then everything works even without adding this, it’s just that the plugin cannot find the htaccess file and reports as if the code is not there?

    I did not thoroughly test that route, but from what it sounds like from malinc, that should be the case. I am hesitant to just do it that way, as I am not 100% sure if the files will be created correctly if that is the case. I say try it out malinc’s way,if you are fine with ignoring the warning it keeps giving. Either/or, it sounds like the code error should probably be resolved in the next update, as I can imagine that they are receiving a lot of complaints.

    Thread Starter legendarymage

    (@legendarymage)

    Right. Well, since I’m not very adept at editing all this code (I checked the line but don’t really know where exactly to ‘add this’ excerpt you mentioned), I did edit the htaccess files the other day and caching seems to work just fine on ‘expert mode’ so I guess I’ll just leave it like that until they patch it for good.

    By the way, do you happen to know anything about points 3 & 4 I mentioned above? Mainly the temporary caching redirect, as well as ‘query strings’ at the end of the URLs. This shouldn’t affect something like google in a bad way?

    Thank you for your help, it’s greatly appreciated!

    oh, well, you would just have to edit that file, and add that line on 3213. Regardless, if it is working for you now, and content, when viewed as page source displays, “WP Super Cache” in the footer, then you can mark it up as it working.

    As far as 3, make sure this is enabled

    Cache rebuild. Serve a supercache file to anonymous users while a new file is being generated. (Recommended)

    That response is generally meaning that the service is not available (all resources used up), making that a server side issue.

    4) Where are the query strings, and what are they. It really depends on what they are and on which pages. For instance, without permalinks installed, all urls will be query strings. Without more information, can’t help you much, but generally, if permalinks are enabled, you will not have many query strings on a wordpress website.

    Thread Starter legendarymage

    (@legendarymage)

    Thank you xrampage16!

    Yes, I do have the cache rebuild option enabled but the ‘page is temporarily unavailable’ redirect still happens sometimes (not always), this could mean that the server resources aren’t very good? Weird, I paid quite a bit of money for godaddy’s second tier level shared hosting and there aren’t that many visitors, one would expect it to work flawlessly under those conditions, perhaps I made a mistake there with my host.

    The 4th thing happens on more than 50% of pages I’d say, I have a perma link option to use post names as perma links, to make things a little bit more attractive.

    Here is my gaming website if you care to take a look, I would really appreciate it. And thank you once again for everything!

    http://www.legendarymage.com

    Alex

    edit: Oh, and I have added the code as you suggested to the appropriate line and it seems that the htaceess prompt is now gone from the ‘advanced’ tab, thank you!

    The line looks like this now:

    $home_root_lc = str_replace( ‘//’, ‘/’, strtolower( $home_root ) ); $home_path = trailingslashit($home_path);

    Maybe it’s not perfect, but it certainly eliminated the message.

    • This reply was modified 6 years, 9 months ago by legendarymage.

    Try the development version at https://downloads.wordpress.org/plugin/wp-super-cache.zip as it’s fixed there. (unzip and overwrite the files in the wp-content/plugins/wp-super-cache/ directory)
    It will still say it’s 1.5.1 when installed so when 1.5.2 comes out you’ll receive an upgrade notice.

    Thread Starter legendarymage

    (@legendarymage)

    Thanks Donncha, appreciated! I’ll do that too, keep up the good work by the way!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Mod Rewrite Notification in the ‘Advanced’ Tab’ is closed to new replies.