• Hi!

    I have a multi-site installation with some plugins working fine. But when I try to activate Age Gate for the whole network, it doesn’t work and I have this notice:

    Notice: Constant WP_ALLOW_MULTISITE already defined in /var/www/clients/client2/web113/web/wp-config.php on line 102

    I can activate it site by site, but it only works in the main site. When I try to change the texts in the others, I have this Fatal Error when I click on the “Messaging” tab:

    Fatal error: Uncaught Error: Cannot unset string offsets in /var/www/clients/client2/web113/web/wp-content/plugins/age-gate/admin/class-age-gate-messaging.php:52 Stack trace: #0 /var/www/clients/client2/web113/web/wp-includes/class-wp-hook.php(287): Age_Gate_Messaging->display_options_page(”) #1 /var/www/clients/client2/web113/web/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array) #2 /var/www/clients/client2/web113/web/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /var/www/clients/client2/web113/web/wp-admin/admin.php(259): do_action(‘age-gate_page_a…’) #4 {main} thrown in /var/www/clients/client2/web113/web/wp-content/plugins/age-gate/admin/class-age-gate-messaging.php on line 52

    I’ve tested to disable all other plugins and only activate Age Gate, but I’ve had the same problems: Impossible to activate for network and impossible to edit the texts (only works in main site).

    Could you help me?

    Thanks!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @smartzes,

    You currently cannot network activate age gate, but it shouldn’t throw an error, it should die and tell you. Support is coming for full multisite support, it’s just a little slow going right now. But as WP_ALLOW_MULTISITE is a core constant that isn’t in our codebase, it’s odd that’s what’s giving you an issue.

    I’ve tried activating on individual sites on a multisite as both subdomain and subfolder, and on all php versions from 5.6 to 7.4 and cannot replicate the issue.

    Is there any other info you can give?

    Thanks
    Phil

    Thread Starter smartzes

    (@smartzes)

    Hi Phil,

    Thanks for the quick answer.
    Yes, I might give you more info:

    * The only tab that doesn’t work is the “Messaging” one.
    * It doesn’t show any error in the Console when I click on “Messaging”. It just appear in the WP this message:
    There has been a critical error on your website. Please check your site admin email inbox for instructions.
    Learn more about debugging in WordPress.

    But I check my administration email and I’m not receiving anything.
    * I have this problem in my second and third sites, but in the main one it works fine.
    * The main site is in Spanish, the second in English and the third in Italian.
    * The active theme in all sites is a Merchandiser (1.9.12) Child

    I hope it helps…

    Thanks,
    Sergio

    Plugin Author Phil

    (@philsbury)

    Hi @smartzes,

    Thanks for the info, I set up an environment very similar but still couldn’t generate the problem. Very odd.

    I’ve had a look at the error and tried to put a check in place, even though that shouldn’t really fail in just one place, but if you could try the version found here and let me know if that fixes the issue I can roll out a proper release.

    Thanks
    Phil

    Thread Starter smartzes

    (@smartzes)

    Hi Phil,

    Thank you so much for your answers and help.

    It looks well.

    I still have this issue when I try to activate the plugin for all network:
    Lo sentimos, Age Gate no puede ser activado en la red
    Something like: Sorry, Age Gate can’t be activated in the network

    But now I can modify the “Messaging” tab and it works.

    I think for me it’s enough. But if I can help you to check the error message activating the plugin, please just tell me.

    Thanks!
    Sergio

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error when activate in multi-site’ is closed to new replies.