Forums

Multi translation and file upload are not working

omd123 08 Jun, 2010
Hi,
1. My first form was working correctly with the multi language. I made a short second form and did the same as the first one but it will not translate.

2. Also it will not upload an image.
I did all the steps (maybe I forgot something) but checked everything from your faq but the file is not uploaded. Set everything to 777 also the folder.php and file.php (error below).
I think I do something wrong, but I can't find it.

Thanks,
stephanie


1. Form passed first SPAM check OK
2. Form passed the submissions limit (if enabled) OK
3. Form passed the Image verification (if enabled) OK
4. Form passed the server side validation (if enabled) OK
5. $_POST Array: Array ( [voorletters] => s [achternaam] => s [verzenden] => Verzenden [a35e222988b887f74182b943ab7049d1] => 1 [1cf1] => 1375c89fe41f95fa4cda5a6a0c8a860c [chronoformname] => afbeelding_upload )
6. $_FILES Array: Array ( [afbeelding] => Array ( [name] => funny0214.jpg [type] => image/jpeg [tmp_name] => /tmp/phptqP4YP [error] => 0 [size] => 44439 ) )
7. Upload routine started for file upload by : afbeelding
8. /domains/name.nl/public_html/components/com_chronocontact/uploads/afbeeldingen/08-06-2010, 12:36:11_funny0214.jpg has NOT been uploaded!!
9. Form passed the plugins step (if enabled) OK
10. An email has been SENT successfully from ([email]name@name.nl[/email]
11. Debug End
12.
Redirect link set, click to test:




Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/name/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/name/domains/name.nl/public_html/libraries/joomla/filesystem/folder.php on line 392

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/name/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/name/domains/name.nl/public_html/libraries/joomla/filesystem/folder.php on line 392

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/name/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/name/domains/name.nl/public_html/libraries/joomla/filesystem/folder.php on line 392

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/name/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/name/domains/name.nl/public_html/libraries/joomla/filesystem/folder.php on line 392

Warning: file_put_contents(/domainsname.nl/public_html/components/com_chronocontact/uploads/afbeeldingen/index.html) [function.file-put-contents]: failed to open stream: No such file or directory in /home/name/domains/name.nl/public_html/libraries/joomla/filesystem/file.php on line 298

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/name/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/name/domains/name.nl/public_html/libraries/joomla/filesystem/folder.php on line 392

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/name/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/name/domains/name.nl/public_html/libraries/joomla/filesystem/folder.php on line 392
shd 08 Jun, 2010
Hi,

The strange thing is that he says that the Full upload Path is: Not Writable but I set the permission to 777. It must be writeable.
Full upload path is: Default Path:/home/name/domains/name/public_html/components/com_chronocontact/uploads/afbeelding_upload/

Default Path:/home/name/domains/name/public_html/components/com_chronocontact/uploads/afbeelding_upload/

We do some server setting we have only this warning now:

Warning: file_put_contents(/domains/name/public_html/components/com_chronocontact/uploads/afbeeldingen_upload/index.html) [function.file-put-contents]: failed to open stream: No such file or directory in /home/name/domains/name/public_html/libraries/joomla/filesystem/file.php on line 298


and:


1. Form passed first SPAM check OK
2. Form passed the submissions limit (if enabled) OK
3. Form passed the Image verification (if enabled) OK
4. Form passed the server side validation (if enabled) OK
5. $_POST Array: Array ( [voorletters] => s [achternaam] => s [verzenden] => Verzenden [a35e222988b887f74182b943ab7049d1] => 1 [1cf1] => 1375c89fe41f95fa4cda5a6a0c8a860c [chronoformname] => afbeelding_upload )
6. $_FILES Array: Array ( [afbeelding] => Array ( [name] => funny0214.jpg [type] => image/jpeg [tmp_name] => /tmp/phptqP4YP [error] => 0 [size] => 44439 ) )
7. Upload routine started for file upload by : afbeelding
8. /domains/name.nl/public_html/components/com_chronocontact/uploads/afbeeldingen_upload/08-06-2010, 12:36:11_funny0214.jpg has NOT been uploaded!!
9. Form passed the plugins step (if enabled) OK
10. An email has been SENT successfully from ([email]name@name.nl[/email]
11. Debug End
GreyHead 08 Jun, 2010
Hi there,

The problem is most likely that the folder is not writeable by the Joomla User. I think that this can happen if mod_security is enabled on the server. You may need to check the server logs to see which user is trying to create the folder/ or save the file.

Bob

PS I think we've also seen this when FTP is enabled in the Joomla site settings.
omd123 08 Jun, 2010
Hi Bob,

As well safe_mode as open base dir are enabled.
The folder CHMOD 777
Apache = not the owner, but the user is the owner

Now I did enable the FTP layer and we're going to test.
GreyHead 08 Jun, 2010
Hi omd,

This is going to be a permission problem. I'm no expert but you will need to make sure that the Joomla user (or the FTP user) has read and write access to the upload folders.

Bob
omd123 08 Jun, 2010
Hi Bob,

FTP layer works and solves th issue.
Thx for the hint!

Regards,
Otto
ralfeez 31 Aug, 2010
What does this mean exactly? I am having the same issue with permissions. The folder is set to 777, so everyone has access. Why would the admin file upload form show that it is unwritable? It is writable to all.
thanks,
Ralph
GreyHead 31 Aug, 2010
Hi Ralph,

ChronoForms is checking the chmod for the folder from the perspective of the Joomla! user. The check uses the PHP is_writable() function and is usually a good guide.

The acid test is whether or not the uploaded file gets written OK.

Website security settings and Joomla! FTP settings can both affect the ability of ChronoForms to successfully upload files.

Bob
This topic is locked and no more replies can be posted.