Help Desk Help Desk   Live Chat Live Chat   Phone +1 (917) 409-7605 M-F 9am-6pm EST
Home
Features
Screenshots
Live Demo
Free Trial
Pricing
Client Login
Help Desk
Search:
Help Desk » Errors and Troubleshooting » getimagesize: open_basedir restriction in effect
getimagesize: open_basedir restriction in effect

The error may look similar to:

 

Keep in mind, the directory path is just an example and the actual directory output may be different.

 

getimagesize() [function.getimagesize]: open_basedir restriction in effect. File(/tmp/php/phpD3KA5) is not within the allowed path(s): (/var/www/public_html/phplive)

 

The PHP Live! system has a feature to upload chat icons, company logos, profile images and other image upload.  When trying to upload the image, some servers may have an openbasedir in effect.  The PHP upload process writes the upload content to a temporary directory set by the server.  However, that temporary directory is not within the open_basedir path.  Here is what you'll want to do:

 

  1. Open the server "php.ini" file and search for the string upload_tmp_dir".  The value set for this variable is where all uploads are stored temporarily.  Then, the PHP script copies the uploaded content from the temp directory and moves it to the actual directory where it can be accessed by the PHP script/software/web.  However, that temp directory is not within the "open_basedir" path.
  2. Search again for another string open_basedir within the "php.ini" file.  Be sure the value (path) of the above "upload_tmp_dir" is included in the "open_basedir" paths.

 

 

Was this helpful?
could be more helpful? let us know