Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-10-28 07:53:06
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Warning: move_uploaded_file().....
hi,
all worked well, until i moved the site from subfolder to rootfolder. i get this when trying to upload image
Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/tmp/php8T4dOn) is not within the allowed path(s): (/home/la02/4519705) in /home/la02/4519705/textpattern/lib/txplib_misc.php on line 1486
Warning: move_uploaded_file(/tmp/php8T4dOn) [function.move-uploaded-file]: failed to open stream: Operation not permitted in /home/la02/4519705/textpattern/lib/txplib_misc.php on line 1486
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php8T4dOn' to '/home/la02/4519705/textpattern/tmp/txp_vTfgrY' in /home/la02/4519705/textpattern/lib/txplib_misc.php on line 1486
Textpattern
Offline
Re: Warning: move_uploaded_file().....
Ask your webhost to add /tmp to the open_basedir path.
Or create your own temporary directory inside /home/la02/4519705 and add this to your config.php file:
session_save_path('/home/la02/4519705/<your_temporary_dir>');
Offline
#3 2011-10-31 10:51:05
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: Warning: move_uploaded_file().....
did
session_save_path('/home/la02/4519705/tmp');
and this solved the problem, thank’s
but ruud, can you explain me, where this problem suddenly came from? all worked well, till i moved the site from sub to root.
could this happen again than i use this host provider?
Offline
Re: Warning: move_uploaded_file().....
I can’t explain it unless you didn’t test uploading when it was in a subdirectory or the hosting provider changed something around the time you moved the website. With the change you made (in config.php), you shouldn’t run into any problems anymore.
Offline