• Resolved cnxsoft

    (@cnxsoft)


    I’ve got a warning in WP Query Monitoring that I did not notice before:

    Warning file_get_contents(https://www.cnx-software.com/wp-content/uploads/wpo//directory-index/): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden 1

    More details:

        wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/SimpleHttpRequester.php:19
        file_get_contents()
        wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/SimpleHttpRequester.php:19
        HtaccessCapabilityTester\SimpleHttpRequester->makeHttpRequest()
        wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/Testers/AbstractTester.php:130
        HtaccessCapabilityTester\T\AbstractTester->makeHttpRequest()
        wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/Testers/CustomTester.php:157
        HtaccessCapabilityTester\T\CustomTester->realRunSubTest()
        wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/Testers/CustomTester.php:199
        HtaccessCapabilityTester\T\CustomTester->realRun()
        wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/Testers/CustomTester.php:222
        HtaccessCapabilityTester\T\CustomTester->run()
        wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/HtaccessCapabilityTester.php:86
        HtaccessCapabilityTester\HtaccessCapabilityTester->runTest()
        wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/HtaccessCapabilityTester.php:221
        HtaccessCapabilityTester\HtaccessCapabilityTester->directoryIndexWorks()
        wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/Testers/HtaccessEnabledTester.php:70
        HtaccessCapabilityTester\T\HtaccessEnabledTester->run()
        wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/HtaccessCapabilityTester.php:86
        HtaccessCapabilityTester\HtaccessCapabilityTester->runTest()
        wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/HtaccessCapabilityTester.php:128
        HtaccessCapabilityTester\HtaccessCapabilityTester->htaccessEnabled()
        wp-content/plugins/wp-optimize/webp/class-wpo-htaccess-capabilities.php:18
        WPO_Htaccess_Capabilities->__construct()
        wp-content/plugins/wp-optimize/webp/class-wpo-htaccess-capabilities.php:31
        WPO_Htaccess_Capabilities::get_instance()
        wp-content/plugins/wp-optimize/webp/class-wp-optimize-webp.php:73
        WP_Optimize_WebP->set_rewrite_status()
        wp-content/plugins/wp-optimize/webp/class-wp-optimize-webp.php:20
        WP_Optimize_WebP->__construct()
        wp-content/plugins/wp-optimize/webp/class-wp-optimize-webp.php:34
        WP_Optimize_WebP::get_instance()
        wp-content/plugins/wp-optimize/wp-optimize.php:281
        WP_Optimize->get_webp_instance()
        wp-content/plugins/wp-optimize/wp-optimize.php:579
        WP_Optimize->plugins_loaded()
        wp-includes/class-wp-hook.php:307
        do_action('plugins_loaded')
        wp-settings.php:450
    
    	Plugin: wp-optimize

    Not sure yet if it impacts the operation of the plugin.

Viewing 15 replies - 1 through 15 (of 22 total)
  • @cnxsoft Please contact your host and set permission to 0755 to /wp-content/uploads/wpo/directory-index/ folder.

    Thread Starter cnxsoft

    (@cnxsoft)

    Thanks. But I think the problem is not about file permissions.

    # chmod 755 directory-index/ -R
    # ls -l directory-index/*
    -rwxr-xr-x 1 www-data www-data 1 Jun  6 12:03 directory-index/index2.html
    -rwxr-xr-x 1 www-data www-data 1 Jun  6 12:03 directory-index/index.html
    

    I still have the same issue. The previous permissions were 664. I think it’s because the plugin tries to list the files in a directory through http, instead of accessing the file system directly?

    @cnxsoft Though it won’t impact the operation of the plugin, where do you see these warnings in WordPress admin or error log files?

    Thread Starter cnxsoft

    (@cnxsoft)

    @bornforphp In Query Monitor, when I browse the website as a logged-in user.

    See screenshot https://www.cnx-software.com/wp-content/uploads/2022/06/wpo-warning.png

    @cnxsoft It won’t impact the opeartion of the plugin, you can ignore the warning

    Thread Starter cnxsoft

    (@cnxsoft)

    @bornforphp Thanks. I’ve noticed some slow response time in Google Search Console in the last few days around the time I started to see this error. I’m not sure it’s related, but I assume if the plugin makes a call to a webpage it may delay loading times? I’ll have to investigate whether it’s related to WPOptimize or not.

    See screenshot @ https://www.cnx-software.com/wp-content/uploads/2022/06/slow-response-times.png

    @cnxsoft Its not related to WP-Optimize, Have you performed a conflict test yet?

    Try deactivating all plugins except for WP-Optimize and see if it is resolved.

    If so, reactivate each plugin one at a time until you find the culprit. You can check for the issue between activating each plugin, so you can see which one is causing problems.

    Please let us know your findings.

    Thread Starter cnxsoft

    (@cnxsoft)

    If I disable all plugins I have to wait for four days for Google Search Console to update stats, and it would cause issues with the website. I have to find another way to test.

    @cnxsoft You can create a staging site and test on the staging site?

    Thread Starter cnxsoft

    (@cnxsoft)

    @bornforphp I have some smaller websites that I could check. They don’t suffer from the issue, maybe the settings are different.

    For what it is worth, when I look at the plugin code, it shows it was updated on June 6:

    /wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src# ls -l
    total 44
    -rw-r--r-- 1 www-data www-data 10685 Jun  6 12:03 HtaccessCapabilityTester.php
    -rw-r--r-- 1 www-data www-data   477 Jun  6 12:03 HttpRequesterInterface.php
    -rw-r--r-- 1 www-data www-data  2046 Jun  6 12:03 HttpResponse.php
    -rw-r--r-- 1 www-data www-data  1767 Jun  6 12:03 SimpleHttpRequester.php
    -rw-r--r-- 1 www-data www-data  3012 Jun  6 12:03 SimpleTestFileLineUpper.php
    drwxr-xr-x 3 www-data www-data  4096 Jun  6 12:03 Testers
    -rw-r--r-- 1 www-data www-data   569 Jun  6 12:03 TestFilesLineUpperInterface.php
    -rw-r--r-- 1 www-data www-data  2019 Jun  6 12:03 TestResultCache.php
    -rw-r--r-- 1 www-data www-data   967 Jun  6 12:03 TestResult.php
    
    Thread Starter cnxsoft

    (@cnxsoft)

    Just for reference, plugins directory dates:

    l/wp-content/plugins# ls -ld */
    drwxr-xr-x  2 root     root     4096 Jun  2  2020 a41573b932e24810b09949136b9a8445-15e4451e52c2e853a14c9a5cfc53d33bd2c63f73/
    drwxr-xr-x  6 www-data www-data 4096 May 29 11:00 add-search-to-menu/
    drwxr-xr-x  4 www-data www-data 4096 Jan 29 09:28 add-to-any/
    drwxr-xr-x  6 www-data www-data 4096 Nov 17  2021 adrotate-pro/
    drwxr-xr-x  7 www-data www-data 4096 May 29 11:00 all-in-one-seo-pack/
    drwxr-xr-x  8 www-data www-data 4096 Apr 13 20:34 amp/
    drwxr-xr-x  4 www-data www-data 4096 May  7 09:18 autoptimize/
    drwxr-xr-x  7 www-data www-data 4096 Sep  8  2021 backwpup/
    drwxr-xr-x 10 www-data www-data 4096 Sep 28  2021 broken-link-checker/
    drwxr-xr-x  6 www-data www-data 4096 May 29 11:00 carousel-slider/
    drwxr-xr-x  2 www-data www-data 4096 Jan 29 09:28 classic-widgets/
    drwxr-xr-x  7 www-data www-data 4096 May 29 11:00 comments-import-export-woocommerce/
    drwxr-xr-x  2 www-data www-data 4096 Dec  5  2020 content-anchor-links/
    drwxr-xr-x  8 www-data www-data 4096 May 10 14:52 cookie-law-info/
    drwxr-xr-x  9 www-data www-data 4096 May 17 21:14 disable-gutenberg/
    drwxr-xr-x  7 www-data www-data 4096 Jul 16  2021 easy-wp-smtp/
    drwxr-xr-x 10 www-data www-data 4096 Jun  8 09:29 ewww-image-optimizer/
    drwxr-xr-x  9 www-data www-data 4096 Feb 25  2021 github-updater/
    drwxr-xr-x  5 www-data www-data 4096 Apr 16  2021 gn-publisher/
    drwxr-xr-x  6 www-data www-data 4096 Sep 19  2021 goodbye-captcha/
    drwxr-xr-x  5 www-data www-data 4096 May 29 11:00 google-site-kit/
    drwxr-xr-x  4 www-data www-data 4096 Aug 23  2020 header-and-footer-scripts/
    drwxr-xr-x  6 www-data www-data 4096 Mar  1  2021 health-check/
    drwxr-xr-x  8 www-data www-data 4096 Mar  7 11:02 html-forms/
    drwxr-xr-x  5 www-data www-data 4096 Feb 27 17:48 lazy-load-for-videos/
    drwxr-xr-x  8 www-data www-data 4096 May 29 11:00 limit-login-attempts-reloaded/
    drwxr-xr-x  3 www-data www-data 4096 Apr  6  2015 maintenance-mode/
    drwxr-xr-x  2 www-data www-data 4096 Aug 18  2019 nofollow/
    drwxr-xr-x  6 www-data www-data 4096 May 29 11:00 options-for-twenty-seventeen/
    drwxr-xr-x  4 www-data www-data 4096 Jan  7 20:58 page-sidebar-for-twentyseventeen/
    drwxr-xr-x  4 www-data www-data 4096 Jun 18  2019 pending-submission-notifications/
    drwxr-xr-x  8 www-data www-data 4096 Apr 17 18:04 query-monitor/
    drwxr-xr-x  3 www-data www-data 4096 Jul 31  2021 recent-posts-widget-with-thumbnails/
    drwxr-xr-x 11 www-data www-data 4096 Feb  8 16:25 redirection/
    drwxr-xr-x  6 www-data www-data 4096 May 29 11:00 redis-cache/
    drwxr-xr-x  4 www-data www-data 4096 Feb  4  2012 share-and-follow/
    drwxr-xr-x  5 www-data www-data 4096 Apr 14 16:26 simple-author-box/
    drwxr-xr-x  3 www-data www-data 4096 Jul 13  2021 simple-icons/
    drwxr-xr-x 10 www-data www-data 4096 May  5 11:32 simple-tags/
    drwxr-xr-x  4 www-data www-data 4096 Feb  4  2012 sociable-30/
    drwxr-xr-x 11 www-data www-data 4096 Jul 25  2021 tablepress/
    drwxr-xr-x  5 root     root     4096 Mar 10  2021 tablepress-responsive-tables/
    drwxr-xr-x  2 root     root     4096 Sep 23  2015 tablepress-table-auto-update/
    drwxr-xr-x  3 www-data www-data 4096 Jun  7  2021 tinywp-mobile-detect/
    drwxr-xr-x 10 www-data www-data 4096 Jan  7 20:58 urvanov-syntax-highlighter/
    drwxr-xr-x  7 www-data www-data 4096 May  7 09:18 user-role-editor/
    drwxr-xr-x  6 www-data www-data 4096 Apr 23 11:59 whp-hide-posts/
    drwxr-xr-x  6 www-data www-data 4096 Jan 16 10:53 wordpress-popular-posts/
    drwxr-xr-x 12 www-data www-data 4096 Jun  1 20:18 wordpress-seo/
    drwxr-xr-x  8 www-data www-data 4096 Sep 27  2020 wordpress-social-login/
    drwxr-xr-x  3 www-data www-data 4096 Sep 29  2019 wp-anchor-header/
    drwxr-xr-x  5 www-data www-data 4096 Apr 17 18:04 wp-crontrol/
    drwxr-xr-x  9 www-data www-data 4096 Apr  2 08:57 wpdiscuz/
    drwxr-xr-x 13 www-data www-data 4096 Jun  6 12:03 wp-optimize/
    drwxr-xr-x  5 www-data www-data 4096 May 29 11:00 wps-hide-login/
    drwxr-xr-x  7 www-data www-data 4096 Jun  8 09:29 wp-super-cache/
    drwxr-xr-x  9 www-data www-data 4096 Feb  5  2012 wp-table-reloaded/
    drwxr-xr-x  6 www-data www-data 4096 Jan 22 21:29 xml-sitemap-feed/
    drwxr-xr-x 11 www-data www-data 4096 Dec  3  2021 yet-another-related-posts-plugin/

    After June 5, three plugins were updated:
    June 6: wp-optimize
    June 8: ewww-image-optimizer and wp-super-cache

    So I guess I should focus on those three. The problem started on June 6, but I can’t remember if the June 8 plugins were updated before that.

    • This reply was modified 2 years, 9 months ago by cnxsoft.

    @cnxsoft May be auto update on your WordPress site updated WP-Optimize to latest version?q

    Thread Starter cnxsoft

    (@cnxsoft)

    I do updates manually. How can I get the previous version of WP-Optimize? I’d like to downgrade to see if it makes any difference?

    @cnxsoft Please go here: https://www.ads-software.com/plugins/wp-optimize/

    And click on Advanced view on the right hand side: https://prnt.sc/4vHxi0rIIHn_

    Once you are on Advanced View page scroll down to Previous version and select 3.2.3 from the dropdown: https://prnt.sc/3A8wBmSOKNyb

    Thread Starter cnxsoft

    (@cnxsoft)

    @bornforphp Thank you. I’ve just downgraded now (June 18).
    The warning is gone, and I’ll check the Google Search report in about four days to see if anything has changed with response times.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘403 forbidden warning’ is closed to new replies.