[wp-trac] [WordPress Trac] #48306: Fatal after WordPress update

WordPress Trac noreply at wordpress.org
Tue Oct 15 07:11:16 UTC 2019


#48306: Fatal after WordPress update
-----------------------------+-----------------------------
 Reporter:  agengineering    |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  5.2.3
 Severity:  normal           |   Keywords:  needs-testing
  Focuses:                   |
-----------------------------+-----------------------------
 Hi there,

 I have tried to update WordPress in a local installation and I got a PHP
 error in admin area, the frontend works fine.

 {{{
 PHP Parse error:  syntax error, unexpected ')', expecting end of file in
 /srv/www/wordpress-one/public_html/wp-includes/class-wp.php on line 753

 PHP Parse error:  syntax error, unexpected ',' in /srv/www/wordpress-
 one/public_html/wp-includes/class-wp-query.php on line 4360

 PHP Parse error:  syntax error, unexpected '->editor_sc' in /srv/www
 /wordpress-one/public_html/wp-includes/script-loader.php on line 2755
 }}}

 I have the same issue in 3 files:

 class-wp.php | class-wp-query.php | script-loader.php.

 To solve this issue you simply open each file, remove the last line and
 save it, nothing else. After that the problem disappear.

 My local environment running vvv 3.1.1. I try to update WordPress via WP-
 CLI and via WordPress Dashboard and the problem persist.
 Windows/Unix, no difference -> same issue.

 I have tested it several time, same issue.

 Thanks for your time.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48306>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list