• Resolved simkog

    (@simkog)


    Hello Patrick,

    After the new plugin update (when the name changed also) our site is unusable.

    PHP error:

    Fatal error: Uncaught Error: Call to undefined function agy\s_user_logged_in() in /nfsmnt/hosting2_1/6/6/66c5740f-ac78-4dc9-9366-22276ff9523f/vitacig.eu.com/web/wp-content/plugins/content-warning-v2/src/class-agy-loader.php:46 Stack trace: #0 /nfsmnt/hosting2_1/6/6/66c5740f-ac78-4dc9-9366-22276ff9523f/vitacig.eu.com/web/wp-includes/class-wp-hook.php(288): agy\AGY_Loader->load_template('') #1 /nfsmnt/hosting2_1/6/6/66c5740f-ac78-4dc9-9366-22276ff9523f/vitacig.eu.com/web/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #2 /nfsmnt/hosting2_1/6/6/66c5740f-ac78-4dc9-9366-22276ff9523f/vitacig.eu.com/web/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /nfsmnt/hosting2_1/6/6/66c5740f-ac78-4dc9-9366-22276ff9523f/vitacig.eu.com/web/wp-includes/general-template.php(2895): do_action('wp_footer') #4 /nfsmnt/hosting2_1/6/6/66c5740f-ac78-4dc9-9366-22276ff9523f/vitacig.eu.com/web/wp-content/themes/vitacig-theme/footer.php(36): wp_footer() #5 /nfsmnt/hosting2_1/6/6/66c5740f-ac78-4dc9-9366-22276ff9523f/vita in /nfsmnt/hosting2_1/6/6/66c5740f-ac78-4dc9-9366-22276ff9523f/vitacig.eu.com/web/wp-content/plugins/content-warning-v2/src/class-agy-loader.php on line 46

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @simkog,

    thanks for reporting!
    That was my fault, I miss-spelled the function name.

    The update is online, download 4.1.1 and the error should be gone! ??

    Best regards,
    Patrick

    Thread Starter simkog

    (@simkog)

    Dear @patrickposner,

    That’s awesome work! Thank you.

    This plugin is excellent, and I like it a lot, but that problem persists for me even with 4.1.1

    I’ve cleared all caches, uninstalled the plugin, re-installed, but it still persists.

    Unfortunately, I can’t find my php error log at the moment so I apologize if this is a me-thing ??

    I don’t use WooCommerce – maybe that’s why?

    • This reply was modified 4 years, 11 months ago by metalhead505.
    Thread Starter simkog

    (@simkog)

    @metalhead505 the update fixed the problem for me.

    Sorry, but I have download 4.1.2 version and it broke my site. I have this message:

    “There has been a critical error on the web”

    I don’t use woocommerce either, could that be?

    Thank you!

    • This reply was modified 4 years, 11 months ago by Natalia.
    Plugin Author patrickposner

    (@patrickposner)

    Hey @metalhead505,

    does the issue still remain with 4.1.2?

    @nataliacg,

    was there an error message? Any kind of code error?
    I tried it on a different testing site (without WooCommerce) and everything works fine.

    I’m here to help if both of you find some remaining issues ??

    Best regards,
    Patrick

    Hello,

    Yes, the issue remains with 4.1.2

    I tried Agy with other plugins uninstalled (including W3TC) but no luck. I will drop a new message when/if I locate my error log.

    @natalia – Do you have an error log that you can share?

    I just updated to 4.1.2 and I’m having the same issue. I also do not use WooCommerce, the client’s sites I use this for are protecting content. Here’s what shows in my error log:
    Fatal error: Uncaught Error: Call to undefined function agy\is_shop() in /home/gicleeym/public_html/wp-content/plugins/content-warning-v2/src/class-agy-loader.php:140 Stack trace: #0 /home/gicleeym/public_html/wp-content/plugins/content-warning-v2/src/class-agy-loader.php(65): agy\AGY_Loader::check_blacklist_status() #1 /home/gicleeym/public_html/wp-includes/class-wp-hook.php(288): agy\AGY_Loader->add_template_assets('') #2 /home/gicleeym/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #3 /home/gicleeym/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /home/gicleeym/public_html/wp-includes/script-loader.php(2670): do_action('wp_enqueue_scri...') #5 /home/gicleeym/public_html/wp-includes/class-wp-hook.php(288): wp_enqueue_scripts('') #6 /home/gicleeym/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #7 /home/gicleeym/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #8 /home/gicleeym/public_html/wp-includes/general- in /home/gicleeym/public_html/wp-content/plugins/content-warning-v2/src/class-agy-loader.php on line 140

    Plugin Author patrickposner

    (@patrickposner)

    Hey @vesica,

    THANK YOU VERY MUCH!
    That was the problem.

    @metalhead505 and @nataliacg 4.1.3 should do the trick.
    Sometimes it’s harder than it should be. I’m ready for the holiday ??

    Best regards,
    Patrick

    What should I do to be able to activate the plugin without taking my client’s site down now? The Plugins page is not presenting an update to 4.1.3…

    Plugin Author patrickposner

    (@patrickposner)

    Hey @vesica,

    it should be visible soon.
    Your client’s website needs some time to recognize that an update is available.

    You can also force the update check immediately if you have access to the database as it’s described here:https://paulund.co.uk/force-wordpress-to-check-for-plugin-updates

    Got it…the update appeared and I applied it, and it’s not breaking the site any longer. Yay!! However, the age gate is automatically appearing on all galleries on the site now, not just the one that’s NSFW. I don’t see any way to control where it displays, can you point me in the right direction?

    Thanks plugin people! No more fatal error!

    But now it’s not firing. I set it for unregistered users only, no pop-up. I set it for all users, no pop-up. I also tried adjusting the # of days to 0, and 30, but it just won’t pop-up.

    Plugin Author patrickposner

    (@patrickposner)

    Hey @vesica,

    there is a checkbox in each page/post where you can exclude the content from the age gate.

    @metalhead505,

    do you have a link to your site? Maybe it’s just the z-index. Have you saved the settings, again?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘PHP Fatal error after new update’ is closed to new replies.