• viktor2404

    (@viktor2404)


    Hi all! I really need your help, I am kinda desperate right now.

    I have a problem with uploading images on WP library. Every time when I want to upload image I am getting the same message:
    Could not insert post into the database.

    I am running localhost on ampps. In my directory C:\Program Files (x86)\Ampps\www\03 wordpress-5.2-en_CA\wordpress\wp-content\uploads I can find images that I have uploaded but library is empty.

    I saw solutions with changing permissions on FTP but didn’t find anything for localhost.

    Please, help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Stef

    (@serafinnyc)

    You’re most likely hitting the max upload.

    I’d increase your upload in config
    define('WP_MEMORY_LIMIT', '256M');

    You may also need to add a php.ini file.

    Thread Starter viktor2404

    (@viktor2404)

    Thank you for your answer. I just changed to XAMPP and did not have any problems anymore.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Could not insert post into the database.’ is closed to new replies.