Hi, I was updating my Plugins. Somewhere I started getting “Briefly Unavailable for Scheduled Maintenance Error”. But it went away after a while.
Then I tried updating my core WordPress from 5.5.1 to the current one. During the process the site broke down first with- “Briefly Unavailable for Scheduled Maintenance Error” and a few secs later when refreshed it turned to “There has been a critical error on your website.”
Now it says- Parse error: syntax error, unexpected end of file in /home/q5h1wtbr7q89/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php on line 1624
Is this because my core WordPress update failed mid-way and thus left the rest-api code only partially updated?
WIll manually updating WordPress using FTP resolve this for me?
The code leading to error line 1624 is this –
if ( rest_is_field_included( ‘modified_gmt’, $fields ) ) {
/*
* For drafts, post_modified_gmt
may not be set (see post_date_gmt
comments
* above). In this case, shim the value based on the post_modified
field
* with the site’s timezone offset applied.
*/
if ( ‘0000-00-00 00:00:00’ === $po
As you can see it seems to be left open midway. And I couldn’t make sense of it. Please suggest. I’m not an expert coder. Your suggestions will be of great benefit.
Before this my site was working perfectly fine.
The page I need help with: [log in to see the link]