Can not upload files

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
cmsmsuser09
Forum Members
Forum Members
Posts: 26
Joined: Wed Apr 01, 2009 2:48 am

Can not upload files

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Can not upload files

Post by Rolf »

File owner problems?
"lock" images in the File Manager?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
cmsmsuser09
Forum Members
Forum Members
Posts: 26
Joined: Wed Apr 01, 2009 2:48 am

Re: Can not upload files

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Can not upload files

Post by Rolf »

Did you check the php error log from your webhost? Anything usefull there perhaps?

Grtz. Rolf :-)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Can not upload files

Post by Dr.CSS »

Did you look in the system info page for any yellow ! or red X..?
cmsmsuser09
Forum Members
Forum Members
Posts: 26
Joined: Wed Apr 01, 2009 2:48 am

Re: Can not upload files

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Can not upload files

Post by Rolf »

When you change permission of the tmp folder and content to 777.
Can you post a copy of your system information here.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
cmsmsuser09
Forum Members
Forum Members
Posts: 26
Joined: Wed Apr 01, 2009 2:48 am

Re: Can not upload files

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Can not upload files

Post 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...
cmsmsuser09
Forum Members
Forum Members
Posts: 26
Joined: Wed Apr 01, 2009 2:48 am

Re: Can not upload files

Post 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
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1973
Joined: Mon Jan 29, 2007 4:47 pm

Re: Can not upload files

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
cmsmsuser09
Forum Members
Forum Members
Posts: 26
Joined: Wed Apr 01, 2009 2:48 am

Re: Can not upload files

Post 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?
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1973
Joined: Mon Jan 29, 2007 4:47 pm

Re: Can not upload files

Post 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. ;D... again, my apologies.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “CMSMS Core”