From the error you posted, I suspect that there was some kind of file corruption. The original file /wp-includes/post.php shouldn’t end at line 235. The file should have 5841 lines (in WP version 4.0 and 4.0.1). If it was a file corruption and the error doesn’t appear anymore, the update probably “healed” the damage by overwriting the file.
Nevertheless I sugest to check your installation, because such a file corruption shouldn’t happen except if someone is messing around with the files.
Related Posts:
- Upgrade to 3.4 error: Call to undefined function get_option()
- Upgrade to 3.1 – Fatal error: Call to undefined function wp_cache_get()
- Upgrading Node.js to latest version
- upgade python version using pip
- Not able to access admin panel after updating WordPress database fails
- Update WordPress with SFTP instead of FTP
- WP upgrade can’t create directory even though perms are 777 [closed]
- How can I migrate a super old version (2.0) of my blog to 3.1?
- How do WordPress veterans deal with the issues of upgrading WordPress?
- Release Model for WordPress?
- 4.3.1 to 4.4 – WYSIWYG Editor Issues
- From 3.5 to 5.6.2 – Recommendation on how to get there with the least amount of pain?
- Permissions issue when trying to update WordPress
- Best Way to Upgrade from WP 2.8 (!)?
- Site needs massive upgrade – how to proceed?
- How to configure site for automatic upgrades
- How to prepare images for a layout width change?
- Upgrade WordPress Database from 2.6 to 3.2
- Why did my manual upgrade fail?
- Getting rid of files not used by latest upgrade
- WP already installed is asking to install
- Is the built-in updater the “best” way to upgrade WP installations?
- 3.1.3 auto-upgrade
- Empty space instead of admin bar
- Which database table does “Featured images” save under?
- What files to keep after upgrading WordPress?
- Upgrading an old WordPress install to a new one on a new host
- Upgrading wordpress 2.7 to 4.1 – posts are not listing after importing old db to new
- Updating servers at once in web cluster
- Client is using Softaculous to upgrade WordPress versions. How do I upgrade from the WordPress dashboard?
- WordPress 3.8 keeps asking me to upgrade to 3.8
- wp_list_categories
- Upgraded from 2.8.x to 3.3.1 and lost content
- Interrupted Upgrade to 4.5.1
- Can I degrade back to 3.7.1 from 3.8 by just coping old wp files?
- Why is it bad to use the GUID?
- redirected to “welcome to 3.8.5” after automatic upgrade to 4.1.1 now other admin links give 500 error
- Running WP_Upgrader via Cron
- Warnings On Updating WordPress
- Problems updating wordpress
- Upgrading from 3.2.1 to current
- Upgrading Across Multiple Versions
- Is WordPress 4.0 a Major update?
- Why does WordPress 4.1 have an auto-update entry in wp_options?
- WordPress automatic update error. Download failed : SSL certificate problem: unable to get local issuer certificate, “Installation Failed”
- Upgrading existing WordPress 4.1 to 4.6. What are some obstacles I might encounter?
- Upgrading from Old Version to Latest Version
- Installed WordPress with Softaculous. Should I upgradeManually or with Softaculous?
- Upgrade to 3.3.2 return a blank admin page
- WordPress 2.7 upgrade protocol
- Requirements for hosting a single WordPress Blog (upgrades / backups)
- When will be the next major update for wordpress?
- How is FTP used for upgrade?
- Maximum execution time exceeded while upgrading network on multisite local install [closed]
- WP not displaying the latest version upgrade button
- Cannot access dashboard after upgrading to 3.5
- _.omit is not function
- Publish issue after upgrading to 3.3
- The new WordPress 3.1 “Admin Menu” isn’t appearing on my site or in the Dashboard
- WordPress cannot auto update and cannot find .maintenance file
- WordPress GUI and wp-cli are saying we have the latest version, but we don’t
- How to upgrade wordpress version?
- WP website won’t accept any new content – need dedicated hosting?
- Site showing version 4.1.16 as latest version
- Best method to upgrade WordPress and Plugins
- WordPress not updated correctly
- Upgrade local version of WordPress – links point to live site
- upgrade v. 2.8.5 to latest version of wordpress
- Upgraded to 3.8.1 on wp-admin but unable to upgrade in godaddy cpanel
- Upgrading from 3.4.2 [duplicate]
- plugin not updated after update wordpress 3.5.2
- Production Website Frozen at /wp-admin/upgrade.php
- Upgrading WP Version + Keeping Customized Core Code?
- Automatic Theme Upgrade hooks?
- Upgrading WordPress (File permission group owner)
- Stuck on Database Update Required after downgrading to 4.9.9 from backup
- Upgraded to 3.6.1. and cannot open my website anymore [closed]
- Do I have to buy a WordPress plan if I have Bluehost? [closed]
- upgrade wordpress 2.1.2 to wordpress latest version (3.6)
- Is it safe update WordPress 3.4.2. to 3.5? [closed]
- Upgrading from WordPress 3.8.2 to latest – only files and SQL dump available
- Cleanup uploads folder, Media Library db structure
- Gutenberg Block manipulation: Undo parse_blocks() with serialize_blocks() results in unicode issues
- current_user_can on WordPress 3.1.1
- WordPress plugin DB upgrade
- Admin Blank Page with Working Front-End After Updating to WordPress 4.6
- Can a plugin be used to contain all custom functions to extend other plugins
- file-gallery plugin line 1573 broken in 4.2 upgrade [closed]
- Tried to move blogs to a new server – “white screen of death”
- Cannot access my wp-admin after installing Gzip compression [closed]
- Security updates to 3.3.2
- Class cannot be found, but it’s available in the file, I get: Fatal Error: Uncaught Error: Class ‘Blocks\Base\Activation’ not found
- Error using wp_mail inside custom function
- Error messages & can’t reach admin after upgrading to 3.4.1 WordPress
- Auto-Update Fails
- DISABLE wordpress upgrade page
- Debug errors for “Destination directory for file streaming does not exist or is not writable”
- Custom Fields after update to WordPress 6
- WordPress critical error after trying to update to 6.2 – Fatal error: Allowed memory size of 268435456 bytes exhausted
- Trouble with WordPress Gallery since update using has_block(‘gallery’