Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an error in the WP Admin stating 'WPML could not create a cache directory in /nas/content/live/brownhealth/wp-content/uploads/cache/wpml/twig/'. This issue started after moving their website from Flywheel to WP Engine.
Solution:
If you're experiencing a similar issue, we recommend you first try to clear any stuck notifications by going to WPML > Support > Troubleshooting and clicking on "Remove all messages and notifications". Then, clear the WP Engine cache, especially the object cache, as they likely have external object caching. If the problem persists, check if the "wp-content/uploads/cache/wpml/twig" directory is empty or if it contains any files. An empty directory would indicate a real issue.

Please note that the solution provided might be irrelevant due to being outdated or not applicable to your case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please do not hesitate to open a new support ticket. You can reach our support forum here.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 5 replies, has 3 voices.

Last updated by Dražen 1 year, 3 months ago.

Assisted by: Dražen.

Author Posts
February 7, 2024 at 12:00 am #15274177

seanK-12

Tell us what you are trying to do?
There's an error in my WP Admin
"WPML could not create a cache directory in /nas/content/live/brownhealth/wp-content/uploads/cache/wpml/twig/"

Is there any documentation that you are following?
No, it's just the error showing.

Is there a similar example that we can see?
Pasted above

What is the link to your site?
hidden link

But it's not showing on the public pages, of course.

Wpengine told me they couldn't help, it doesn't appear to be a permission issue, the /cache/wpml folder is at 0775.

I recently moved from Flywheel to Wpengine and that's when this error started showing. I decided to delete the twig folder in case WPML might make a new one instead but that didn't work. I can revert to an earlier version if I need those files back.

Thanks for any suggestions you have!
-S

February 7, 2024 at 8:41 am #15275142

Sumit
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi,

Thank you for contacting the support forum.
Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

It is possible that notice has been stuck and a false positive.
Please go to WPML > Support > Troubleshooting and click "Remove all messages and notifications" then clear the WP Engine cache specially the object cache. I am sure they have external object caching.

If the issue is still not solved, please let us know if "wp-content\uploads\cache\wpml\twig" directory has any directory/files in it or if it is empty.
If those are empty, that means the issue is real.

Thanks

February 7, 2024 at 4:33 pm #15277854

seanK-12

Thanks Sumit, that worked and the message is gone.

I deleted the twig folder last night and it has not reappeared. I have also clicked the "clear cache" button on the troubleshooting page and the WPML folder was removed from the cache path when I did.

Please advise, and thank you for your help!

February 9, 2024 at 7:13 am #15284152

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

great, glad to hear that.

If the message is gone, it sounds like the issue was resolved. I advise keeping an eye and if the issue comes back let us know.

Regards,
Drazen

February 12, 2024 at 5:29 pm #15294285

seanK-12

Thanks Drazen,

Sumit said, ""wp-content\uploads\cache\wpml\twig" directory has any directory/files in it or if it is empty.
If those are empty, that means the issue is real."

I mentioned in my last update that both the WPMP and TWIG folders are no longer present. I'm fine with this if that's the expected behaviour, but I don't know either way based on Sumit's comment above.

Please advise.

February 13, 2024 at 7:33 am #15295728

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

it depends if you are using language switchers and if WPML is using cache for them.

I would advise checking if language switchers work fine for you and if the error message is not there, then it should be fine. If you have an issue or the message is back let us know and we will check further.

Regards,
Drazen

February 13, 2024 at 2:07 pm #15298058

seanK-12

Thanks Drazen,

Yes, our language switcher is working properly so I'm happy to call this resolved.

Thanks for your help,
Sean