• Resolved Benjamin

    (@benjaminvandenberg)


    Hi Gerard,

    Thanks for releasing so many updates and new features lately. I really appreciate it.

    Today I noticed that translations were not being generated on a client’s website. I’ve checked my API status (sufficient credits), the language model (GPT-4.1-mini), as well as updates for other plugins and WordPress itself.

    So far, I can see that the language model is loading successfully, but an error message appears when scanning for metadata and warming up the cache on certain pages.

    The message is as follows (sorry non-Dutch speakers):

    Geen cache records toegevoegd. Mogelijke oorzaken:

    • Cache bestanden bestaan niet op de verwachte locatie
    • Cache bestanden hebben een ander formaat dan verwacht
    • Multi-domain caching configuratie komt niet overeen

    I rolled the plugin back, one version at a time. 2.1.7. is the most recent one that works on this particular website.

    Do you have any pointers on how I can resolve this issue in the latest plugin versions?

    Many thanks for your help!

    Kind regards,
    Benjamin

    • This topic was modified 7 months, 1 week ago by Benjamin. Reason: Mis-spelled the word "version"
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Gerard Kanters

    (@gkanters)

    That is indeed strange. I have just tested gpt-4.1-mini on OpenAI en Openrouter and both work with version 2.2.4. (latest version on WP)

    I did notice yesterday a difference between the API usage of both providers. Openrouter has a different API call than the standard (openai). This is fixed, but it only impacted gpt-5 models.

    Can you test with another model, like gemini-2.5-flash-lite on Openrouter and/or gpt-4.1-mini on both Openrouter and Openai ?

    Please also specify the exact version you are using when testing. Please use the latest version on WordPress.

    Thread Starter Benjamin

    (@benjaminvandenberg)

    Hi Gerard,

    I just finished some testing on multiple webservers in combination with multiple API-sources and AI-models with extra credit. What I found is that the frontend on Hosting A does translate but the frontend on Hosting B doest not translate. Both show the errors mentioned in my previous post.

    Perhaps I’m missing something… What are your thoughts on the testdata below?

    Kind regards,
    Benjamin

    1. Hosting Provider A
      Hosting: Managed
      PHP: 8.2.29 (mysqlnd 8.2.29)
      Database: 11.4.8-MariaDB-cll-lve
      WordPress: 6.9 (clean install, no additional plugins)
      AI Translate: 2.2.4 (configured with OpenRouter and OpenAI, both with sufficient credits)
      OpenRouter-API: GPT-4.1-mini + Gemini-2.5-Flash-Lite

      Results: OpenRouter-API with GPT-4.1-mini and Gemini-2.5-Flash-Lite:
      Frontend does translate with both models, but backend shows error message after removing all cache and clicking on Scan Cache Files (made multiple attempts):

      – Geen cache records toegevoegd. Mogelijke oorzaken:
      – Cache bestanden bestaan niet op de verwachte locatie
      – Cache bestanden hebben een ander formaat dan verwacht
      – Multi-domain caching configuratie komt niet overeen

      Results: OpenAI-API with GPT-4.1-mini and GPT-4.1-mini
      Frontend does translate with both models, but backend shows error message after removing all cache and clicking on Scan Cache Files (made multiple attempts):

      – Geen cache records toegevoegd. Mogelijke oorzaken:
      – Cache bestanden bestaan niet op de verwachte locatie
      – Cache bestanden hebben een ander formaat dan verwacht
      – Multi-domain caching configuratie komt niet overeen

    2. Hosting Provider B
      Hosting: Managed
      PHP: 8.2.29 (mysqlnd 8.2.29)
      Database: 10.6.20-MariaDB-cll-lve
      WordPress: 6.9 (clean install, does have additional plugins for testing)
      AI Translate: 2.2.4 (configured with OpenRouter and OpenAI, both with sufficient credits)
      OpenRouter-API: GPT-4.1-mini + Gemini-2.5-Flash-Lite

      Results: OpenRouter-API with GPT-4.1-mini and Gemini-2.5-Flash-Lite:
      Frontend does not translate with both models, backend shows error message after removing all cache and clicking on Scan Cache Files (made multiple attempts):

      – Geen cache records toegevoegd. Mogelijke oorzaken:
      – Cache bestanden bestaan niet op de verwachte locatie
      – Cache bestanden hebben een ander formaat dan verwacht
      – Multi-domain caching configuratie komt niet overeen

      Results: OpenAI-API with GPT-4.1-mini and GPT-4.1-mini
      Frontend does not translate with both models, backend shows error message after removing all cache and clicking on Scan Cache Files (made multiple attempts):

      – Geen cache records toegevoegd. Mogelijke oorzaken:
      – Cache bestanden bestaan niet op de verwachte locatie
      – Cache bestanden hebben een ander formaat dan verwacht
      – Multi-domain caching configuratie komt niet overeen
    Plugin Author Gerard Kanters

    (@gkanters)

    Hi Benjamin,
    It is expected behavior that if you remove the cache files and then run the “scan cache files” that these messages appear. But it is confusing indeed, so I have changed it to a more appropriate message :
    “No cache records added. There are currently no cache files available.” 

    But that does not explain why Host B does not translate.

    Does Host B translates if you directly use the browser: e.g. https://yoursite.com/de/ for german ?

    I have created a development version to get logging from the warm cache buttons.
    Can you install the development version on Host B. After running the warm cache button for a specific page there will be created a file warm-cache-debug.log in the folder /wp-content/uploads/ai-translate/logs after the root of your website. E.g. /var/www/yoursite.com/ (for linux)

    Please paste the log content here.

    Thanks Gerard

    Thread Starter Benjamin

    (@benjaminvandenberg)

    Hi Gerard,

    Thank you for the instructions. I installed the development version of AI Translate.
    The generated log is pasted below.

    I hope it is usable in solving the not-translating-problem on Host B.

    Kind regards,
    Benjamin

    [ SNIP! ]

    Moderator Support Moderator

    (@moderator)

    @benjaminvandenberg Copying that data here will not and cannot work here. It just creates a mess that has no value.

    Please use https://pastebin.com/ or https://gist.github.com/ or the like instead and share a link to that paste in reply here.

    Plugin Author Gerard Kanters

    (@gkanters)

    Without the log file, I cannot debug this problem. I suggest making an issue on github and paste it there.
    https://github.com/gerard-kanters/ai-translate/issues

    I an closing this ticket now.

    Plugin Author Gerard Kanters

    (@gkanters)

    Closed

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

The topic ‘Possible problem with warming cache on latest version (not sure)’ is closed to new replies.