Page 1 of 1
Can not upload files
Posted: Wed Oct 10, 2012 3:23 pm
by cmsmsuser09
I am having trouble uploading files to some of my sites after I upgrade to 1.11.1 or 1.11.2. If trying to upload files using the file manager it looks like the file has been uploaded - the progress bars goes to 99.77%. There is no error message but the file is not uploaded. When I check the admin log it says the file has been uploaded but checking the server using ftp the file is not there. When using Image Manager to upload a file I get the error message - "File could not be uploaded. This could be a permissions or Safe mode problem?" I have checked every permission and setting I can think of.
I thought it might be problem due to the upgrade so have done a clean install of CMSMS 1.11.2 and am having the exact same issue.
Thought it might be the server but other installs and upgrades on the same server work fine.
Kim
Re: Can not upload files
Posted: Wed Oct 10, 2012 5:15 pm
by Rolf
File owner problems?
"lock" images in the File Manager?
Re: Can not upload files
Posted: Wed Oct 10, 2012 6:22 pm
by cmsmsuser09
I thought it could be file owner problems especially since it was an upgraded site so I did a clean install and left everything at the default but I still can not upload anything using the file or image manager. I can upload files to the uploads/images directory using an ftp client and can then delete the file using file or image manager.
I also find it strange that the admin log file is saying the file has been uploaded.
Thanks
Kim
Re: Can not upload files
Posted: Wed Oct 10, 2012 8:10 pm
by Rolf
Did you check the php error log from your webhost? Anything usefull there perhaps?
Grtz. Rolf

Re: Can not upload files
Posted: Wed Oct 10, 2012 8:27 pm
by Dr.CSS
Did you look in the system info page for any yellow ! or red X..?
Re: Can not upload files
Posted: Thu Oct 11, 2012 5:50 pm
by cmsmsuser09
Everything is good on the system info page.
This is a few lines from my error log:
[Wed Oct 10 09:08:55 2012] [error] [client xx.x.xxx.xxx] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer:
http://www.imotionfitness.com/admin/ima ... _=a6365df9
[Wed Oct 10 09:09:51 2012] [error] [client xx.x.xxx.xxx] PHP Warning: imagejpeg(): Unable to open '/home/imotionfitness/public_html/uploads/images/test/thumb_IMG.jpg' for writing: Permission denied in /home/imotionfitness/public_html/lib/filemanager/ImageManager/Classes/GD.php on line 461, referer:
http://www.imotionfitness.com/lib/filem ... %2Ftest%2F
[Wed Oct 10 09:09:57 2012] [error] [client xx.x.xxx.xxx] PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/imotionfitness:/usr/local/lib/php) in Unknown on line 0, referer:
http://www.imotionfitness.com/admin/ima ... _=a6365df9
[Wed Oct 10 09:09:57 2012] [error] [client xx.x.xxx.xxx] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer:
http://www.imotionfitness.com/admin/ima ... _=a6365df9
[Wed Oct 10 09:14:05 2012] [error] [client xx.x.xxx.xxx] PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/imotionfitness:/usr/local/lib/php) in Unknown on line 0, referer:
http://www.imotionfitness.com/admin/ima ... _=a6365df9
[Wed Oct 10 09:14:05 2012] [error] [client xx.x.xxx.xxx] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer:
http://www.imotionfitness.com/admin/ima ... _=a6365df9
[Wed Oct 10 09:14:22 2012] [error] [client xx.x.xxx.xxx] PHP Warning: unlink(/home/imotionfitness/public_html/uploads/images/test/IMG.jpg): Permission denied in /home/imotionfitness/public_html/lib/filemanager/ImageManager/Classes/Files.php on line 105, referer:
http://www.imotionfitness.com/lib/filem ... hp?dir=%2F
[Wed Oct 10 09:14:22 2012] [error] [client xx.x.xxx.xxx] PHP Warning: rmdir(/home/imotionfitness/public_html/uploads/images/test/): Directory not empty in /home/imotionfitness/public_html/lib/filemanager/ImageManager/Classes/Files.php on line 148, referer:
http://www.imotionfitness.com/lib/filem ... hp?dir=%2F
[Wed Oct 10 09:14:29 2012] [error] [client xx.x.xxx.xxx] PHP Warning: unlink(/home/imotionfitness/public_html/uploads/images/test/IMG.jpg): Permission denied in /home/imotionfitness/public_html/lib/filemanager/ImageManager/Classes/Files.php on line 105, referer:
http://www.imotionfitness.com/lib/filem ... %2Ftest%2F
[Wed Oct 10 09:14:35 2012] [error] [client xx.x.xxx.xxx] PHP Warning: unlink(/home/imotionfitness/public_html/uploads/images/test/IMG.jpg): Permission denied in /home/imotionfitness/public_html/lib/filemanager/ImageManager/Classes/Files.php on line 105, referer:
http://www.imotionfitness.com/lib/filem ... %2FIMG.jpg
Re: Can not upload files
Posted: Thu Oct 11, 2012 6:46 pm
by Rolf
When you change permission of the tmp folder and content to 777.
Can you post a copy of your system information here.
Re: Can not upload files
Posted: Thu Oct 11, 2012 7:09 pm
by cmsmsuser09
Thanks for your reply.
I double checked and the tmp, uploads, uploads>images folders are already set to 777.
BTW- I can create a new directory in the uploads folder using file manager and the new directory has 777 permissions set but can not upload anything. Here is my system information:
Cms Version: 1.11.2
Installed Modules:
CMSMailer: 5.2.1
FileManager: 1.4.1
MenuManager: 1.8.4
ModuleManager: 1.5.5
News: 2.12.9
Printing: 1.1.2
Search: 1.7.7
ThemeManager: 1.1.7
CMSPrinting: 1.0.3
MicroTiny: 1.2.3
Config Information:
php_memory_limit:
process_whole_template:
output_compression:
max_upload_size: 128000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.3.17
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 30
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 128M
upload_max_filesize: 128M
session_save_path: No check because open basedir active
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.0.92
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Re: Can not upload files
Posted: Fri Oct 12, 2012 4:18 pm
by Dr.CSS
Check the unmask, it is default to 022 you may need to use 002 then check settings to see what it says...
Re: Can not upload files
Posted: Fri Oct 12, 2012 7:26 pm
by cmsmsuser09
I had tried that also set it to 000, same result with both. When changed to 002 this is the output from my error log, same as 022.
[Fri Oct 12 14:59:08 2012] [error] [client xx.x.xxx.x] PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/imotionfitness:/usr/local/lib/php) in Unknown on line 0, referer:
http://www.imotionfitness.com/cms/admin ... _=595b0d11
[Fri Oct 12 14:59:08 2012] [error] [client xx.x.xxx.x] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer:
http://www.imotionfitness.com/cms/admin ... _=595b0d11
Thanks
Re: Can not upload files
Posted: Fri Oct 12, 2012 9:52 pm
by Jo Morg
cmsmsuser09 wrote:...PHP Warning: Unknown: open_basedir restriction in effect.
open_basedir protection tweak is a Safe Mode security measure. CMSMS requires that safe mode be disabled.
Edit: I just saw that: safe_mode: Off (False). Not sure where that error actually comes from. Sorry.
Re: Can not upload files
Posted: Sat Oct 13, 2012 1:50 am
by cmsmsuser09
In system information there is a green check mark besides this setting and my other sites on the same server that are working fine have the exact same settings?
Re: Can not upload files
Posted: Sat Oct 13, 2012 2:50 am
by Jo Morg
cmsmsuser09 wrote:In system information there is a green check mark besides this setting and my other sites on the same server that are working fine have the exact same settings?

Yup. I noticed that after I made the post. I just left the post there with the edit instead of deleting it... better than ghost posts.

... again, my apologies.