• datainterlock

    (@datainterlock)


    [12-Oct-2021 03:42:16 UTC] PHP Parse error: syntax error, unexpected ‘print’ (T_PRINT), expecting identifier (T_STRING) in /wp-content/plugins/contact-form-7/admin/includes/welcome-panel.php on line 9

    My crc checking plugin found 3 new error logs this morning in admin, admin/user and admin network. They all contained the line above. Normally I don’t log into this site more than once a month or so. It’s a static. Tried to log into the site and couldn’t because the login page crashed.

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    FTP’d into the account, removed cf7. Went into cpanel and realized the site was still on php 5.6. Upgraded to 7.4, uploaded cf7 and it appears to work.

    Is upgrading to 7.4 important? Sure. Crashing the admin login when you don’t? Not so much.

    I’m just guessing there was some automatic update of the plugin this morning.

Viewing 6 replies - 31 through 36 (of 36 total)
  • rangkuk

    (@rangkuk)

    Updated PHP ver to 7.4 and It still have the same errors ??

    rangkuk

    (@rangkuk)

    thanks, @mrfreud and @fredtoft
    I Updated PHP ver to 7.4 and It still has the same errors ??

    lberlin

    (@lberlin)

    Using Godaddy shared hosting and they don’t provide the option to update to PHP 7.4.
    I tried everything, updating the function to _print in that file (line 9 and 223), reverting back to an older version, replacing the single welcome-panel.php file and still the form is not being sent.

    This is the page https://www.abma.ca/contact-us/

    FYI, this bug has been corrected in version 5.5.2, that was released a few hours ago.

    The function print() has been renamed print_content() on both lines 9 and 223.

    8)

    Parse error: syntax error, unexpected ‘print’ (T_PRINT), expecting identifier (T_STRING) in /home/kir854107/public_html/jr_panda/wp-content/plugins/contact-form-7/admin/includes/welcome-panel.php on line 9

    と出てWP-admin ではログインできるんですがその後上記のエラーで管理画面が表示されません。

    dbp

    (@optimus203)

    Thanks @frg62 – updating CF7 to version 5.5.2 solved this issue for me.

Viewing 6 replies - 31 through 36 (of 36 total)
  • The topic ‘PHP Parse error: syntax error, unexpected ‘print’ (T_PRINT)’ is closed to new replies.