We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE using /tmp/phptmp for thumbnails even though upload_tmp_dir is different

News and General

Matahi's avatar
Matahi
30 posts
2 weeks ago
Matahi's avatar Matahi

Hi all,

I’m running into an issue with file thumbnails in ExpressionEngine.

Error:

The root path /tmp/phptmp is not readable

Context:

Hosting: shared hosting PHP temp dir originally pointed to /tmp/phptmp (not accessible)

I changed upload_tmp_dir to:

/home/lasasoprano/.tmp

Verified that PHP can write there:

$file = tempnam(‘/home/lasasoprano/.tmp’, ‘test_’);

→ works correctly

Also confirmed:

is_dir(…) = true is_writable(…) = true

However:

ExpressionEngine still tries to use /tmp/phptmp when generating thumbnails sys_get_temp_dir() still returns /tmp/phptmp Questions Does EE rely on sys_get_temp_dir() for image processing / thumbnails instead of upload_tmp_dir? Is there any way to override the temp directory used by EE internally?

Could this be related to caching?

Specifically:

Can /system/user/cache/ store a previously resolved temp path? Is it safe to clear this folder to force EE to refresh environment paths? Has anyone seen this mismatch before on shared hosting? What I suspect

It looks like:

PHP uploads → use /home/…/.tmp ✔️ EE thumbnails → use sys_get_temp_dir() → /tmp/phptmp ❌

Which causes the failure.

Any insights would be really appreciated.

Thanks!

       
VincentWoodard's avatar
VincentWoodard
6 posts
2 days ago
VincentWoodard's avatar VincentWoodard

I appreciate the detailed discussion on the importance of correct configurations in ExpressionEngine. It’s a reminder of how technical nuances, like temporary directory settings, can have broader implications for site performance and user experience. Thank you for shedding light on this! space waves

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.