[Resolved] WordPress update error
If you are getting below (or any WordPress update) error when you are updating your WordPress to latest version, the problem could be:
500 Internal Server Error
PHP Fatal error: Call to undefined function wp_oembed_add_host_js() in /var/www/production/blog/wp-admin/about.php on line 31
– PHP version. Make sure the PHP version you have meets the required PHP version of new WordPress update.
– Opcode cache. If you are using opcode cache like APC, clear the cache.
– WordPress cache. Flush the WordPress cache (Wordfence, WP Super Cache, W3 Total Cache, etc.) you are using.
– CloudFlare. If you are using external cache like CloudFlare, make sure you also flush it if you still see the above error.
Refresh the update page and see if this resolves for you!
WordPress plugin install without FTP
WordPress generally gives you page to fill FTP connection details when you try to install new plugin or update wordpress. The reason is it cannot write to wp-content directory due of lack of permissions to write. The best way is to change permissions and ownership of wp-content directory. But if you can’t do that because of some reason, then add the below line of code in your wp-config.php
define('FS_METHOD', 'direct'); |
Other way is to change permissions and ownerships to wp-content directory as said.
chown -R www-data wordpress | |
chgrp -R www-data wordpress | |
chmod -R 755 wordpress/wp-content |
Welcome to my Blog
Certifications
Honor
Recognition
Contributions
Categories
- Apache (2)
- ChatGPT (1)
- Domain name (2)
- eCommerce (2)
- htaccess (1)
- Humor (3)
- Instagram API (1)
- jQuery (4)
- JSON (1)
- Linux (10)
- Magento (142)
- Magento admin (58)
- Magento Certification (5)
- Magento error (13)
- Magento frontend (68)
- Magento Imagine (2)
- Magento Interview (5)
- Magento Master (2)
- Magento2 (10)
- Mobile (1)
- MySQL (7)
- OpenAI (1)
- OroCRM (2)
- Performance (2)
- PHP (8)
- Prototype JS (3)
- Security (4)
- Wordpress (3)
- XML (2)