• Resolved BERJAYAnuranto

    (@nuranto)


    Hello !

    Congrats and thanks for your work !

    Just to let you know about a bug : When using via tinymce (ACF field…), it doesn’t work on our configuration probably because our WP is installed into a subdirectory (https://ourdomain.com/blog/).

    This is probably due to the use of raw URL like this : fetch('/wp-json/ai-content-helper/openai/v1/generated-content', .... So we get a 404 when it calls https://ourdomain.com/wp-json/... instead of https://ourdomain.com/blog/wp-json/...

    A solution would be to use rest_url method instead of raw URLs.

    • This topic was modified 1 year, 6 months ago by BERJAYAnuranto.
    • This topic was modified 1 year, 6 months ago by BERJAYAnuranto.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author BERJAYAWP Messiah

    (@wpmessiah)

    Hello Sir,

    Thank you for bringing this issue to our attention and for your detailed explanation. It’s greatly appreciated!
    We truly value your feedback, and we’ll make sure to address this in the next plugin update.

    Your suggestions not only enhance the product for yourself but also for all our users.

    Best Regards,
    BoomDevs

    Thread Starter BERJAYAnuranto

    (@nuranto)

    Thank you very much !

    I’ll wait for next release then !

    Thread Starter BERJAYAnuranto

    (@nuranto)

    Here is a quick help for a fix :

    -            const response = await fetch('/wp-json/ai-content-helper/openai/v1/generated-content', {
    + const apiEndpoint = wpApiSettings.root + 'ai-content-helper/openai/v1/generated-content';
    + const response = await fetch(apiEndpoint, {

    Of course, you should do the same everywhere the api is called.

    Plugin Author BERJAYAWP Messiah

    (@wpmessiah)

    Hello Sir,

    Thank you for reaching out and informing us about the issue. We sincerely apologize for the delayed response.

    Our team had already fixed the issue earlier, but the update was not released yet. However, we will be rolling out the updated version today or by tomorrow. Once it’s available, please update the plugin to resolve the problem.

    If you face any further issues, please don’t hesitate to reach out. We’re always here to help!

    Best Regards, WP Messiah

    Thread Starter BERJAYAnuranto

    (@nuranto)

    Great, thank you !

    Thread Starter BERJAYAnuranto

    (@nuranto)

    It seems it is not released yet, do you have an ETA ?

    Plugin Author BERJAYAWP Messiah

    (@wpmessiah)

    Hello Sir,

    Thank you for your question! The updated version of the plugin will be released soon, and you will be notified once it’s available. At this moment, we don’t have a specific ETA, as our team is working diligently to finalize the update as quickly as possible.

    In the meantime, if you encounter any issues while using the plugin, please don’t hesitate to reach out. We’re always here to help!

    Let us know if you need any further assistance.

    Best Regards, WP Messiah

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

The topic ‘API URL bug’ is closed to new replies.