Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hi – I hate to say “me to” but toggling the Process HTML on breaks just one page on my site. Is there an option not to process specific pages? I don’t have any other caching plugin and all the other pages work. If I exclude the page in the settings I get the commented message <!– WP Optimize page cache – https://getwpo.com – Page not served from cache because: In the settings, caching is disabled for matches for the current URL –> but the rest of the page is blank. Without the page being excluded it says <!– WP Optimize page cache – https://getwpo.com – page NOT cached because: Output is too small (less than 255 bytes) to be worth caching, User is logged in –>
    Process JavaScript and Proces CSS are on and seem to work fine.

    It does seem to improve performance generally very well so I would be glad to get it to work on my page so that I can use it for the whole site.

    Many thanks for any thoughts.

    WordPress 5.7
    PHP 7.4
    WP-Optimize Version 3.1.8

    Thread Starter notawizard

    (@notawizard)

    Resolved with many thanks. A fine plugin – glad to have it back working!

    Thread Starter notawizard

    (@notawizard)

    Just in case anyone comes here and doesn’t see your original guide – the full functions.php function I used in the end to keep my class is:

    function my_custom_body_class($classes) {
    $classes[] = ‘home’; // Added this line
    $classes[] = ‘inner-wrap’;
    return $classes;
    }

    add_filter(‘body_class’, ‘my_custom_body_class’);

    Thread Starter notawizard

    (@notawizard)

    Hi Rui

    Thank you so much for getting back to me! You are right it is indeed working! Thanks to your earlier post with the excellent advice. I have only just got it working so your timing couldn’t have been more perfect!

    https://ww.wp.xz.cn/support/topic/menu-not-working-36/

    I also managed to keep the “home” class I needed in my existing classes by using:

    function my_custom_body_class($classes) {
    $classes[] = ‘home’; // Added this line
    $classes[] = ‘inner-wrap’;
    return $classes;
    }

    Once I added the function and the class, the menu disappeared and it was not opening because the setting:

    Icon Action open menu / Open link URL

    was set to “Open link URL” …so it wouldn’t open the menu, of course. Silly me! Not sure if that happened in the update or if I switched it in desperation and forgot to put it back.

    Hope that may be of use to somebody. Many thanks once again for having a look.

    Thread Starter notawizard

    (@notawizard)

    Hi Folks

    By way of an update I have got the function working and it returns things like:

    Home
    <body id=”index” class=”home blog inner-wrap mob-menu-slideout-over”>

    About-us
    <body id=”index” class=”page-template page-template-templates-about_us page-template-templates-about_us-php page page-id-2132 home inner-wrap mob-menu-slideout-over”>

    and the body tag is:
    <body id=”index” <?php body_class(); ?>>

    but now the menu doesn’t appear at the bottom of the page but also doesn’t appear when you click on the burger.

    I would appreciate any thoughts or help anyone can offer.

    Many thanks

    Thread Starter notawizard

    (@notawizard)

    Thanks wfasa – I had that enabled and have now enabled the “Enable HIGH SENSITIVITY scanning” option. The only “Fail” now is that it cannot enumerate the drive and return disk size – possibly due to the load balancing: [Jul 20 11:20:20] Scanning to check available disk space – Failed.

    I have sent your sample folk an email with access to a lot of nasties they can play with.

    Still running today so perhaps I was looking at the logs a bit too often!

    • This reply was modified 8 years, 10 months ago by notawizard.
    • This reply was modified 8 years, 10 months ago by notawizard.
    Thread Starter notawizard

    (@notawizard)

    In case this might be of value in explaining for others what is happening, this is from my host. I had seen another similar post about permissions changing, which was attributed to a possible cron job but it may be due to this:

    All our cluster hosting packages i.e Momentum has a default 700 chmod permissions.

    You can change the settings via SSH as long as you have an “x” – execute portion on your chmod command. If you do not have an x execute bit, then permissions will revert to default in around a few seconds. The way the system works is that it will not allow you to change the mode on the files via FTP. It will revert your change to 700 (Linux wise) anyway as the permissions are secured on the backend storage. It’s quite complex storage model and the permissions you see in FTP or under Linux may not be relevant. It would be best if you could try to change and check the permission via SSH also.

    Thread Starter notawizard

    (@notawizard)

    I realise I might have been able to block the scripts in the upload folder using “Disable Code Execution for Uploads directory” but unfortunately that also blocks the images from appearing in my page head “Featured content slider”.

    I had also blocked a persistent visitor by url before realising it was a valid bot. I could only remove the block by editing the database – removing it from the list did not remove it from operation.

    I have asked the Service provider to make the changes you recommend and hope to see it carry on without problems.

    Many thanks once again for your help

    Thread Starter notawizard

    (@notawizard)

    Hi @wfasa

    Many thanks for your kind help. I have passed it to Fasthosts – hopefully it may go some way to providing a common solution to the problem.

    It really is a remarkable tool and I am very keen to keep it working (sadly the site got stuck again this evening).

    Its scan appeared to have missed an inserted file on the root called wp-images.php which had a nasty script inside, as well as many nasty script jpegs in the uploads folder which it controlled. It has, however, now caught two users trying to access it and will, I hope be blocking them. I only wish there were a way to track them down!

    Thread Starter notawizard

    (@notawizard)

    Update from Service Provider from their error logs if that helps

    [Mon Jul 17 00:04:17.309838 2017] [fcgid:warn] [pid 56008] [client xxx.8.132.41:52932] mod_fcgid: stderr: Unable to open /home/xxxxx/xxx/xxxxx/user/htdocs/wp-content/wflogs/ips.php for reading and writing.

    Thread Starter notawizard

    (@notawizard)

    Further update

    Increasing the number of hits allowed by any user to 480 (worked upwards in stages) and human hits to 60 per minute, reducing the display rate to once every 180 seconds seems so far to have stopped the 504 errors. Site activity in real-time is currently “on” and it seems OK. Each of the little flags seems to make a hit of its own so perhaps that put up the over all “hit” rate when scrolling through the logs.

    Thread Starter notawizard

    (@notawizard)

    Oops – I spoke too soon – stopped again and same process got it back.

    Thread Starter notawizard

    (@notawizard)

    Correction wflogs has now been created though I have not actually activated the firewall – it may have kept the earlier settings though. So far it is still running.

    Hello Huge-IT support – thanks for your reply.

    I have had to use another slider for now. I was using slide off animation. Version 3.06.

    It did as Daveystarr described sometimes, and other times when you went away from the page and came back to it, by clicking on the tab, the pictures did not move but the dots changed rapidly (about twice per second). Eventually, sometimes, the pictures would start to move again. Sometimes they would change erratically before recovering.

    Refreshing the page restarted the slider so it worked normally – hence the interim “fix”.

    I had the same problem as both daveystarr and #2. This code solved my problem for the short term until the fix is published, which I hope will be soon. It also solves the issue where Internet Explorer shows “Waiting for…” in the title tab, which is a needed fix for the reloaded page. I put this in the page head.

    It refreshes the page and so reloads the slider at slide #1 when the page has lost focus and regains it – as when returning from another tab.

    <script language="javascript">
     var title_var = document.title;
     var loadcount = 0;
    
            window.onfocus = function(){
             var title_var = document.title;
                 if(loadcount == 1){
                 location.reload(true);
                 }
            document.title = title_var;
            }
    
            window.onblur = function(){
            loadcount = 1;
            }
     </script>
Viewing 15 replies - 1 through 15 (of 16 total)