• Resolved titaniyaworld

    (@titaniyaworld)


    Hi!
    I`ve the plugin (2.0.2) installed on my WP (5.5.1–ru_RU)
    I want to disable protection on some pages but it seems isn`t working this way.
    After checking anything in the ‘On Page(s)’ field the WP shows me ‘Critical error on the site’ (in Russian) on any pages of the site (the site crashes).
    But everything works fine for both the ‘On Post(s)’ and ‘On Categories’ fields.
    Sincerely, Titaniya.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @titaniyaworld,

    Regarding the query, I have tried to replicate your issue on our staging site, but I am unable to replicate it. To me, the site does not show an error when disabling protection on some pages.

    So, to troubleshoot the issue, can you please share the screenshot of the plugin settings and the issue which you are facing so that we can check. Also, it would be great if you can share the URL where you are facing the issue.

    Regards,
    Kenil Shah

    Thread Starter titaniyaworld

    (@titaniyaworld)

    Hi!
    So quick answer, thanks!

    This problem occurs on several websites.

    An example from a test website with the problem:

    site: https://kaiturovagalina.heartweb.ru/

    WordPress 5.5.1
    php 7.2 (Python 3.4)
    There is only one plugin installed on this website – WP Content Copy Protection (Lite).

    A video with demonstration of the problem:
    https://youtu.be/F3zRcdkEWSs

    An error message:
    Fatal error: Uncaught Error: Call to undefined function TycheSoftwares\Wpccp\is_shop() in /home/c/c49763/wordpress_8/public_html/wp-content/plugins/wp-content-copy-protection/includes/class-protection.php:192 Stack trace: #0 /home/c/c49763/wordpress_8/public_html/wp-content/plugins/wp-content-copy-protection/includes/class-protection.php(288): TycheSoftwares\Wpccp\Protection::exclude_pages() #1 /home/c/c49763/wordpress_8/public_html/wp-content/plugins/wp-content-copy-protection/includes/class-protection.php(94): TycheSoftwares\Wpccp\Protection::apply_protection() #2 /home/c/c49763/wordpress_8/public_html/wp-includes/class-wp-hook.php(287): TycheSoftwares\Wpccp\Protection::register_assets(”) #3 /home/c/c49763/wordpress_8/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #4 /home/c/c49763/wordpress_8/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #5 /home/c/c49763/wordpress_8/public_html/wp-includes/script-loader.php(1999): do_action(‘wp_enqueue_scri…’) #6 /home/c/c49 in /home/c/c49763/wordpress_8/public_html/wp-content/plugins/wp-content-copy-protection/includes/class-protection.php on line 192

    Sincerely, Titaniya.

    Hi @titaniyaworld,

    Apologies for the delay in response.

    Thank you for sharing the video with us. However, we will release an update for this tomorrow which will include this fix.

    Regards,
    Kenil Shah

    Hello!

    Please make sure your PRO version of this plugin also contains the fix, please.

    It’s happening on line 197 of the “includes\class-protection.php” file.

    I’ve already added a quick fix for my version, by wrapping the WooCommerce extra checks with an “if( class_exists( ‘woocommerce’ ) ) {“.

    Thanks.

    Plugin Author Dhruvin

    (@dhruvin)

    Hi @crystalfyre and @titaniyaworld

    We have released an update to both the Lite and Pro versions of the plugin with the needed fix.

    Thanks,
    Dhruvin

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The site crashes if any text is within ‘On Page(s)’ field’ is closed to new replies.