Skip Navigation

[Gelöst] image tmp dir problem

This support ticket is created vor 5 Jahren, 8 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Dieses Thema enthält 15 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Christian Cox vor 5 Jahren, 7 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#1225975

i get this Error message:
Warning: is_writable(): open_basedir restriction in effect. File(/home/.sites/613/site7859656/) is not within the allowed path(s): (/home/.sites/613/site7859656/web:/home/.sites/613/site7859656/tmp:/usr/share/pear:/usr/bin/php_safemode) in /home/.sites/613/site7859656/web/wp-content/plugins/types/vendor/toolset/types/embedded/views/image.php on line 392

Site: versteckter Link

It appears after migration to another Server.

Please help

#1226005

Looks like a server configuration issue. Please check file and folder permissions -- typically Folders should have 755 permission and Files have 644. Please also contact your hosting support and ask them to confirm file and folder permissions and that opendir() function is enabled on the server, and if possible to disable the open_basedir directory restriction.

#1226006

Can you guide me WHAT Folders i have to check?

#1226009

Mainly the directory noted in the warning message:

/home/.sites/613/site7859656/
#1226010

ok i have no access to that (is one level above).

will wait for the support from my hosting

#1226012

i Think the Path is Wrong - it should be one of the order paths
/home/.sites/613/site7859656/tmp for example - tmp is allowed - can i tell toolset to use this Folder instead?

#1226019

You can try setting it in your wp-config.php file like so:

define('WP_TEMP_DIR','/home/.sites/613/site7859656/tmp');
#1226020

Still the Same error - wired?

Warning: is_writable(): open_basedir restriction in effect. File(/home/.sites/613/site7859656/) is not within the allowed path(s): (/home/.sites/613/site7859656/web:/home/.sites/613/site7859656/tmp:/usr/share/pear:/usr/bin/php_safemode) in /home/.sites/613/site7859656/web/wp-content/plugins/types/vendor/toolset/types/embedded/views/image.php on line 392

#1226084

If you upload an image to a custom field, is it stored in the media library as expected, with or without the WP_TEMP_DIR setting?

#1226280

Yes Upload is working fine.

Info from my Hosting: /home/.sites/613/site7859656/ is restricted.

I think the Problem appears because Toolset try to Scale and Crop an Image?

Oh - idea: i Importet the CPT and the Image that is imported is NOT located in the wp-content/uplaods/ folder - there is a folder wp-content/assets/ where the images are stored (from the import)

on my Development Hosting there was no Problem to scale the images there - could it be a Problem in the new Hosting.
wp-content/assets/ permissions are set to 755 and the images in there had: 644

#1227347

Do you have database access? If so, please go to the wp_options table and search for the option_names "upload_path" and "upload_url_path". Let me know what you have set for these options.

#1227372
Bildschirmfoto 2019-04-08 um 19.27.29.png

its empty

#1228027

Oh - idea: i Importet the CPT and the Image that is imported is NOT located in the wp-content/uplaods/ folder - there is a folder wp-content/assets/ where the images are stored (from the import)
Is this directory change temporary, or permanent?

#1228042

The Images still there and loading from there - at my first Hosting the images rescaled (300x300px) in that folder so i see the files in assets with the wcf-300x300 extension

#1228089

Thank you. I'm asking my 2nd tier support team to take a closer look and I'll let you know what I find out.