Zen TYPO3 Forum

Our TYPO3 forum is available for freelancers, professionals and clients new to TYPO3 to discuss Basic TYPO3 templating, Typoscript, extension installation, administration and help with subscription templates. Please register for an account to post.

All Categories > TYPO3 General Discussion > Templates > Cannot upload images
Total Posts: 6 - Pages (1): [1]
Author: debugger_systems
Posted: Jun 11 2007 - 09:43 AM
Subject: re: Cannot upload images
Update: I solved the image upload problem after searching a bit on the TYPO3 forum. Since I have already posted here I thought I'd share the solution.

In /etc/php5/apache2/php.ini there is a row that specifies the temporary upload directory. In my case it looked like this.

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; upload_tmp_dir =


It was not set to anything and for some reason did not pick up the default system folder whatever that is.. I changed this to:

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp

And everything worked! Now I guess I'll start enabling safe mode again and see if it will still work after that.

Matti Jääaro
Author: debugger_systems
Posted: Jun 11 2007 - 08:53 AM
Subject: re: Cannot upload images
Thanks Gregory, this is the first real template I have installed on our server... I realize now that my problems has little to do with the template itself. I will therefore take this to the official TYPO3 forum since it's more likely something that has to do with my TYPO3 configuration. Thanks for the link by the way

In case someone finds this thread and has the same problem switching off safe_mode, I found that the "local setting" that typo3 install tool refers to is defined in /etc/typo3-dummy/apache.conf. There I found php_admin_value safe_mode on which I changed to off

I should say that even though I managed to turn off safe mode in that file I still have the same problem with image uploading.

Matti Jääaro
Author: mediatech
Posted: Jun 04 2007 - 05:09 PM
Subject: re: Cannot upload images
Matti,

I've never had and any safe_mode issues since mine is set to off. I think you need to restart Apache for new safe_mode settings to take effect using /etc/init.d/httpd restart so if you are on shared hosting this isn't an option. Turning safe_mode off in .htaccess doesn't seem possible either.
http://php.net/manual/en/configuration.changes.php

Unless the server is running PHPSuexec I don't believe a php.ini file will have any effect if placed within your domain directory. There's some info about activating safe_mode on a per site basis here.
http://www.webhostgear.com/166_print.html

There is a feature in Install Tool > 5: All Configuration > [usePHPFileFunctions]. Have you tried toggling that to off? I'm just guessing here at this point. Since safe_mode is a popular option I can't imagine TYPO3 not being able to run entirely in safe_mode. Have you tried a search at the official support forums? This is where I learned everything about TYPO3.

Try this link

Worse case scenario grab a VPS. It's cheaper in the long run if you're doing business. I have been using ServInt for over 2 years now.
http://servint.net/vps/details.php#essential

Gregory Remington
Mediatech Consulting, Inc.
Phone : +1 (760) 525-1770 . Fax: +1 (760) 542-1990 . Skype: gremington
Author: debugger_systems
Posted: Jun 04 2007 - 05:11 AM
Subject: re: Cannot upload images
Hello Gregory,

Before trying out those commands, let me first mention that when checking the configuration via the typo3 install tool again i found that it actually warns me about safe_mode being being switched on in php.ini. The install tool say that this might cause typo3 to work except for image generation... which is exactly what I am experiencing! However, I cannot find any configuration files where it says anything but safe_mode = Off. Does typo3 have it's own php.ini stowed away someplace where I can't find it? When I run the Typo3 install tool and go to phpinfo( ), there are two columns, one caled Local Value and one called Master Value. I guess the Master Value is taken from /etc/php5/apache2/php.ini since that value says Off, but the Local Value says On, where does this Local Value come from?

Matti
Author: mediatech
Posted: Jun 03 2007 - 09:19 PM
Subject: re: Cannot upload images
Matti,

Have you tried running the following on the directories in question? Assuming you're running under Apache then the user "nobody" should do it.

chgrp -R nobody /home/domain/public_html/folder/fileadmin
chmod -R g+w,o-rwx /home/domain/public_html/folder/fileadmin


Gregory Remington
Mediatech Consulting, Inc.
Phone : +1 (760) 525-1770 . Fax: +1 (760) 542-1990 . Skype: gremington
Author: debugger_systems
Posted: Jun 01 2007 - 06:01 AM
Subject: Cannot upload images
I recently purchased and installed the zenlight pro template on our linux machine (running latest version of Ubuntu btw). I have got almost everything working except a few things. The most important one being upload of images. I am logged into the backend as admin. I go to web->pages and then navigate to the page where i want to insert an image. I choose to create content in the main column (image only). I type in a header for the image and then go to images->Browse for files. The Typo3 element browser pops up and I go to upload files and browse for a 300x200px jpeg on my desktop. The element browser default to fileadmin/_temp_/ for uploads which I guess is fine. I hit "upload image" and get the message "2: The uploaded file did not exist!"

I have spent like 5 hours trying to figure this out. All I can see from google is that this message usually pops up when you don't have sufficient rights to some temp directory. However, the typo3 install tool does not complain about not having write permissions to any directory. I have even followed the installations chapter in the official TYPO3-book which tells you to run these commands in your typo3-dummo dir:

chmod 777 typo3/temp/
chmod 777 typo3/ext/
chmod 777 typo3temp/
chmod 777 typo3conf/
chmod 777 typo3conf/ext/
chmod 777 uloads/
chmod 777 fileadmin/

..still no progress. Can't see anything popping up in the apache or typo error logs either. But I can't help feeling this still is some kind of rights issue...

By the way, I should mention that all the imagemagick tests in the install tool works fine.. and if I scp some images to the server and place them in the above mentioned folder typo3 has no problem choosing them with the element browser and inserting them into the site.

I would be extremely grateful for any pointers on this.

Matti Jääaro
Total Posts: 6 - Pages (1): [1]
You must login to post a message to this conference.

 

CHC Forum provided by Cast Iron Coding

TYPO3 Support