• Resolved crool

    (@crool)


    After update my site went down. After deactivate the plugin by ftp the site was fine again. Now i downgraded to the old version.
    This is the error i see in the logfile

    [12-Sep-2022 08:05:25 UTC] PHP Parse error: syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW), expecting ‘]’ in /wp-content/plugins/age-gate/src/Routes/Rest/Media.php on line 35

    This is line 35
    ‘permission_callback’ => fn () => get_current_user_id() > 0 && current_user_can(Constants::APPEARANCE)

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

    (@philsbury)

    Hi @crool,

    What PHP version are you running?

    You can find out in the site health section here under server:
    /wp-admin/site-health.php?tab=debug

    The latest version of age gate requires PHP 7.4 as a minimum.

    Thanks
    Phil

    Thread Starter crool

    (@crool)

    Aha, now i see. It was 7.3.3 now i update it to 7.4 and everything is fine.
    Thanks for your fast response!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Erro after update’ is closed to new replies.