• Resolved nikkoboy

    (@nikkoboy)


    Hi,

    Whenever I upload an image (jpg, png) in the chatbox (“vision” enabled), I get this error message: From OpenAI: Error: Invalid base64 image_url. (invalid_base64) (invalid_request_error)

    I’m using GPT-4o with “vision” enabled, max token 4096. It used to work in previous versions of your plugin, but now I can’t upload images via the chatbox.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @nikkoboy,

    I am using Vision by URL too, and it works; but your WordPress needs to be publicly accessible. For example, if you develop your website internally (as in your computer/server is on a local network), then OpenAI might not be able to access the image by its URL.

    Thread Starter nikkoboy

    (@nikkoboy)

    Hi @tigroumeow,

    Thanks a lot for your reply! I appreciate!

    Since both my websites (staging and production) are live and accessible, I reached out to my host to investigate whether there might be a security feature on their server that prevents loading external resources on the server (via the filesystem or media library).

    They thoroughly investigated the issue and confirmed the following:

    “I have checked the logs and with the team as well and it appears to be related to the plugin itself. The upload is going through the plugin so you might need to contact them. You can share this error:
    [24-Jul-2024 07:48:33 UTC] PHP Warning: file_get_contents(https://www.mysite.com/wp-content/uploads/2024/07/c2b89256ee06667f6438e3da0370ff7e.jpg): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
    in /home/l52dprj/public_html/wp-content/plugins/ai-engine/classes/queries/droppedfile.php on line 54

    They also asked me to upload a file while monitoring the logs, and they could see the file I uploaded. So this means the upload works fine. They added “The plugin/chatbot has some issues. you may share the error with their support team.”

    [24-Jul-2024 08:01:05 UTC] PHP Warning: file_get_contents(https://www.mysite.com/wp-content/uploads/2024/07/25fb625bd0f374c72f55fc33c81b502f.jpg): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
    in /home/l52dprj/public_html/wp-content/plugins/ai-engine/classes/queries/droppedfile.php on line 54

    I also deactivated plugins one by one to make sure there weren’t any conflicts, but I’m still running into the same issue ??

    • This reply was modified 4 months ago by James Huff.
    • This reply was modified 4 months ago by nikkoboy.
    Thread Starter nikkoboy

    (@nikkoboy)

    @tigroumeow I just noticed in your message that you mentioned “I am using Vision by URL too”. I am using Images > User Upload > “Remote Upload: Upload data”.

    When I try to activate Images > User Upload > “Remote Upload: Share URLs” I’m getting “Error: An error occurred while updating the options. For more information, check your console. You might also want to check your PHP Error Logs.”

    Thread Starter nikkoboy

    (@nikkoboy)

    @tigroumeow So “Remote Upload: Share URLs” was the way to go! I downloaded version 2.4.5 of the plugin, and this time I was able to select “Remote Upload: Share URLs” without any problem. From there, I uploaded an image, and it worked!

    I then upgraded to version 2.4.9, and that worked too! So the problem seems to be linked to plugin version 2.5 as it does not let me select “Remote Upload: Share URLs” (I get an error message when I try and select it)

    I hope you find this feedback useful.

    • This reply was modified 4 months ago by nikkoboy.
    Thread Starter nikkoboy

    (@nikkoboy)

    @tigroumeow I have updated the plugin to version 2.5.1 and can confirm that the previously reported issue has been fixed.

    Thanks a lot!

    Plugin Author Jordy Meow

    (@tigroumeow)

    @nikkoboy You’re welcome! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.