WordPress Development Asked by Aman Kamboj on December 19, 2020
Could not insert attachment into the database.
When ever I try to upload new images from WordPress media it shows me above error.
Please help me why wp database shows this error.
Try the following solutins:
First of all check your WP database size and check whether the size is full according to your hosting provider's requirement/rule.
Second option, add this line into your wp-config.php:
define('WP_MEMORY_LIMIT', '256M');
Also if you have access to php.ini (or php[version number].ini) file on your server, try to add this line:
memory_limit 512M
By default, some database configs have a collation or charset that doesn't allow special character. Check whether the file name of the image you're trying to upload is having any special characters. If so, delete them and use only alphanumeric. Then retry.
Also, please check your folder permission. Read more about it on https://www.wpbeginner.com/wp-tutorials/how-to-fix-image-upload-issue-in-wordpress/
Hope it helps.
Answered by Walter P. on December 19, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP