• Resolved RK

    (@rokask)


    I set save to “Media Library” in settings for generated images and when I try to generate one I get an error: “From OpenAI: could not move file”.
    The generated image doesn’t appear on the dashboard either.
    Do I need to set extra permission or something?

    When I set Local Download: None
    It generates images as usual, but when I want to add it to the media library, I receive an Error: Invalid file type.
    The images are in .png, I tried changing the extension to .jpeg, but of course, it doesn’t work. So I can only download the image to a hard disk and upload it to media library.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Val Meow

    (@valwa)

    Hi @rokask! ??

    Could you please review your PHP logs for the complete error message? This problem is likely associated with your WordPress installation. Ensure the following:

    1. The server does not lack the necessary permissions to access or move the file.
    2. There is sufficient space on the server to accommodate the file transfer.
    3. Verify that the destination directory exists.

    Hello, I have the same issue : “It generates images as usual, but when I want to add it to the media library, I receive an Error: Invalid file type.”
    PHP error logs show no error, I can see older error logs. Also verified the above mentioned issues. Uploading the generated image manually to media library works with no issues. Just purchased the subscription last night. This is kind of frustrating, bc generating images is api-expensive. Please assist, thx.

    I’m getting an error log in the server panel:
    Error37.120.131.40319969#0: *443280 openat() “/var/www/vhosts/mydomain.net/httpdocs/wp-json/mwai/v1/ai/images” failed (2: No such file or directory)
    My Rest-API is wroking correctly, by checking /wp-json/wp/v2/posts in my browser.

    .htaccess doesn’t suggest any WP-JSON issues either. The problem might be at the application level (plugin code)?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Images to Library Fails’ is closed to new replies.