Title: PHP Parse error: syntax error, unexpected &#8216;print&#8217; (T_PRINT)
Last modified: October 12, 2021

---

# PHP Parse error: syntax error, unexpected ‘print’ (T_PRINT)

 *  [datainterlock](https://wordpress.org/support/users/datainterlock/)
 * (@datainterlock)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/)
 * [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.
    -  This topic was modified 4 years, 7 months ago by [datainterlock](https://wordpress.org/support/users/datainterlock/).

Viewing 15 replies - 1 through 15 (of 36 total)

1 [2](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/page/2/?output_format=md)

 *  Thread Starter [datainterlock](https://wordpress.org/support/users/datainterlock/)
 * (@datainterlock)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14962037)
 * And confirmed. This was the result of an automatic update.
 * – Contact Form 7 (from version 5.4.2 to 5.5.1)
 *  [vedderpress](https://wordpress.org/support/users/vedderpress/)
 * (@vedderpress)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14962191)
 * 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 4 years, 7 months ago by [vedderpress](https://wordpress.org/support/users/vedderpress/).
    -  This reply was modified 4 years, 7 months ago by [vedderpress](https://wordpress.org/support/users/vedderpress/).
 *  [Jonathan Camp](https://wordpress.org/support/users/nampara17/)
 * (@nampara17)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14962351)
 * Like a lot of other people… getting same error!
 *  [LMurta](https://wordpress.org/support/users/lmurta/)
 * (@lmurta)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14962532)
 * 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)
 *  [Dreich](https://wordpress.org/support/users/dreich/)
 * (@dreich)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14962587)
 * The same error. Waiting for a fix.
    Probably, `print` is a reserved word in PHP(
   [https://stackoverflow.com/questions/11266555/syntax-error-unexpected-t-print-expecting-t-string/11266571](https://stackoverflow.com/questions/11266555/syntax-error-unexpected-t-print-expecting-t-string/11266571))
 *  [Dreich](https://wordpress.org/support/users/dreich/)
 * (@dreich)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14962660)
 * Renaming function name on line 9 to `public function _print()` and on line 223
   to `$column->_print();` seemingly fixes the issue.
 *  [LMurta](https://wordpress.org/support/users/lmurta/)
 * (@lmurta)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14962833)
 * Solved by upgrading PHP to 7.4
 *  [mlemmo](https://wordpress.org/support/users/mlemmo/)
 * (@mlemmo)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14963017)
 * I would hope the official fix will work with earlier versions of PHP
    [@dreich](https://wordpress.org/support/users/dreich/),
   that works!
 *  [domikaj](https://wordpress.org/support/users/domikaj/)
 * (@domikaj)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14963322)
 * I have had the same problem since yesterday. I am going to try renaming function
   on line 9.
 * [@dreich](https://wordpress.org/support/users/dreich/) it works! Thank You
    -  This reply was modified 4 years, 7 months ago by [domikaj](https://wordpress.org/support/users/domikaj/).
 *  [Dreich](https://wordpress.org/support/users/dreich/)
 * (@dreich)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14964801)
 * Hopefully, developers will rename the function for the next plugin update.
 *  [—Q—](https://wordpress.org/support/users/-q--1/)
 * (@-q--1)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14965232)
 * +1 Same error.
 *  [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14965343)
 * [@dreich](https://wordpress.org/support/users/dreich/) thanks for the quick fix
   renaming that function!
 *  [admorrow](https://wordpress.org/support/users/admorrow/)
 * (@admorrow)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14967304)
 * Thanks for the solution and explanation, [@dreich](https://wordpress.org/support/users/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 4 years, 7 months ago by [admorrow](https://wordpress.org/support/users/admorrow/).
 *  [suvadesign](https://wordpress.org/support/users/suvadesign/)
 * (@suvadesign)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14967522)
 * [@admorrow](https://wordpress.org/support/users/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?
 *  [mwhitney9](https://wordpress.org/support/users/mwhitney9/)
 * (@mwhitney9)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/#post-14967890)
 * [@suvadesign](https://wordpress.org/support/users/suvadesign/) `welcome-panel.
   php` is within the `/wp-content/plugins/contact-form-7/admin/includes` folder

Viewing 15 replies - 1 through 15 (of 36 total)

1 [2](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/page/2/?output_format=md)

The topic ‘PHP Parse error: syntax error, unexpected ‘print’ (T_PRINT)’ is closed
to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [contactform7](https://wordpress.org/support/topic-tag/contactform7/)

 * 36 replies
 * 29 participants
 * Last reply from: [dbp](https://wordpress.org/support/users/optimus203/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-print-t_print/page/3/#post-15047931)
 * Status: not resolved