And confirmed. This was the result of an automatic update.
– Contact Form 7 (from version 5.4.2 to 5.5.1)
I have had this exact same problem. I tried to update the plugin then all went wrong.
Still cant log into my site backend. Showing the above critical error.
I have disabled plugins through cpanel file manager and also myphp.
But still the same problem, how do I fix this?
I’ve removed the cf7 plugin folder via FTP but still get the below when trying to access wordpress dashboard……
Parse error: syntax error, unexpected ‘print’ (T_PRINT), expecting identifier (T_STRING) in /var/sites/w/public_html/wp-content/plugins/contact-form-7/admin/includes/welcome-panel.php on line 9
There has been a critical error on this website. Please check your site admin email inbox for instructions.
-
This reply was modified 1 year, 7 months ago by
vedderpress.
-
This reply was modified 1 year, 7 months ago by
vedderpress.
Like a lot of other people… getting same error!
Version 5.5.1 | By Takayuki Miyoshi | View details
This plugin failed to load properly and is paused during recovery mode.
An error of type E_PARSE was caused in line 9 of the file /home2/oexpr810/public_html/dippro/wp-content/plugins/contact-form-7/admin/includes/welcome-panel.php. Error message: syntax error, unexpected ‘print’ (T_PRINT), expecting identifier (T_STRING)
Renaming function name on line 9 to public function _print()
and on line 223 to $column->_print();
seemingly fixes the issue.
Solved by upgrading PHP to 7.4
I would hope the official fix will work with earlier versions of PHP
@dreich, that works!
I have had the same problem since yesterday. I am going to try renaming function on line 9.
@dreich it works! Thank You
-
This reply was modified 1 year, 7 months ago by
domikaj.
Hopefully, developers will rename the function for the next plugin update.
@dreich thanks for the quick fix renaming that function!
Thanks for the solution and explanation, @dreich!
“Probably, print
is a reserved word in PHP”
In file welcome-panel.php
:
- Line 9: Rename function to
public function _print()
- Line 223: Rename to
$column->_print();
-
This reply was modified 1 year, 7 months ago by
admorrow.
@admorrow this may be a stupid question but when I look into the plugins/contact-form-7/includes/
folder using FTP I don’t see the welcome-panel.php
file. How did you access it?
@suvadesign welcome-panel.php
is within the /wp-content/plugins/contact-form-7/admin/includes
folder