“Real Cookie Banner” Plugin – Auto Quarantine conflict

Home Forums BulletProof Security Pro “Real Cookie Banner” Plugin – Auto Quarantine conflict

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #41732
    BenBe
    Participant

    Hallo,

    we are using BPS Pro and also use a cookie plugin called “Real Cookie Banner” which is very capable for EU / German plugin for cookie laws.

    The problem:

    “Real Cookie Banner” puts to function properly three .js files into the “wp-content” folder. Those files are called:

    “randomNumber.js”

    BPS Pro detects those files and I can restore them. But “Real Cookie Banner” deletes those three .js files and creates new ones on a regular basis. Always with a different number as file name.

    Is it somehow possible to generally allow .js files in wp-content folder?? At the moment I can get up to 10.000 files in the quarantine folder because BPS Pro always deletes those files and Real Cookie Banner creates them.

    #41733
    AITpro Admin
    Keymaster

    I have installed and tested the WordPress Real Cookie Banner plugin.  On first time installation some php errors occurred (see below). I see that this plugin created 3 randomly named files in the root wp-content folder instead of a folder under the wp-content folder. The best method would be for this plugin to create its own folder under the wp-content folder for its js files. Then that folder could be excluded from being checked by AutoRestore. Example: /wp-content/wp-real-cookie-banner/.

    AutoRestore does not use any RegEx rules because that would render AutoRestore completely ineffective.
    Also if you excluded all .js files under the wp-content folder that would also render AutoRestore completely ineffective.
    It is possible to exclude the entire wp-content folder from being checked by AutoRestore, but that would mean all folders under the wp-content folder would no longer be checked by AutoRestore rendering AutoRestore completely ineffective.

    So what really needs to happen is that the WordPress Real Cookie Banner plugin needs to create its own folder under the wp-content folder to store its randomly named js files. Architecturally and structurally that is industry standard best practice. Unfortunately, until a working solution is created by the WordPress Real Cookie Banner plugin you will have to turn Off AutoRestore. I will notify the WordPress Real Cookie Banner plugin author about this issue and link back to this forum topic for reference.

    [06-Apr-2022 13:34:32 UTC] PHP Warning: Undefined property: stdClass::$plugins in C:\xampp\htdocs16\demo9\wp-content\plugins\real-cookie-banner\vendor\devowl-wp\real-utils\src\WelcomePage.php on line 283
    
    [06-Apr-2022 13:34:32 UTC] PHP Warning: foreach() argument must be of type array|object, null given in C:\xampp\htdocs16\demo9\wp-content\plugins\real-cookie-banner\vendor\devowl-wp\real-utils\src\WelcomePage.php on line 283
    
    [06-Apr-2022 13:34:32 UTC] PHP Fatal error: Uncaught TypeError: uasort(): Argument #1 ($array) must be of type array, null given in C:\xampp\htdocs16\demo9\wp-content\plugins\real-cookie-banner\vendor\devowl-wp\real-utils\src\WelcomePage.php:298
    Stack trace:
    #0 C:\xampp\htdocs16\demo9\wp-content\plugins\real-cookie-banner\vendor\devowl-wp\real-utils\src\WelcomePage.php(298): uasort(NULL, Object(Closure))
    #1 C:\xampp\htdocs16\demo9\wp-includes\class-wp-hook.php(307): DevOwl\RealCookieBanner\Vendor\DevOwl\RealUtils\WelcomePage->prepare_items(Object(stdClass), 'query_plugins', Object(stdClass))
    #2 C:\xampp\htdocs16\demo9\wp-includes\plugin.php(189): WP_Hook->apply_filters(Object(stdClass), Array)
    #3 C:\xampp\htdocs16\demo9\wp-admin\includes\plugin-install.php(234): apply_filters('plugins_api_res...', Object(stdClass), 'query_plugins', Object(stdClass))
    #4 C:\xampp\htdocs16\demo9\wp-admin\includes\class-wp-plugin-install-list-table.php(241): plugins_api('query_plugins', Object(stdClass))
    #5 C:\xampp\htdocs16\demo9\wp-content\plugins\real-cookie-banner\vendor\devowl-wp\real-utils\src\WelcomePage.php(256): WP_Plugin_Install_List_Table->prepare_items()
    #6 C:\xampp\htdocs16\demo9\wp-content\plugins\real-cookie-banner\vendor\devowl-wp\real-utils\src\WelcomePage.php(139): DevOwl\RealCookieBanner\Vendor\DevOwl\RealUtils\WelcomePage->our_plugins_output()
    #7 C:\xampp\htdocs16\demo9\wp-includes\class-wp-hook.php(307): DevOwl\RealCookieBanner\Vendor\DevOwl\RealUtils\WelcomePage->welcome_page_output('')
    #8 C:\xampp\htdocs16\demo9\wp-includes\class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #9 C:\xampp\htdocs16\demo9\wp-includes\plugin.php(474): WP_Hook->do_action(Array)
    #10 C:\xampp\htdocs16\demo9\wp-admin\admin.php(259): do_action('admin_page_real...')
    #11 {main}
    thrown in C:\xampp\htdocs16\demo9\wp-content\plugins\real-cookie-banner\vendor\devowl-wp\real-utils\src\WelcomePage.php on line 298
    #41734
    AITpro Admin
    Keymaster

    I heard back from the WordPress Real Cookie Banner plugin folks and the solution is to use the steps below to prevent the randomly generated files from being created.

    Click the Customize Banner button at the top of the Real Cookie Banner page > Custom CSS > Disable > click the Publish button.

    #41735
    BenBe
    Participant

    Thanks for the fast response and solution.

    #41736
    AITpro Admin
    Keymaster

    I got sidetracked with other stuff, so posting this late.  The Real Cookie Banner folks offer incredible support!!!  Gonna leave a 5* Plugin Review for them as well.  😉

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.