ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:For ALL the people with file upload problems ! (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:For ALL the people with file upload problems !
#8356
smetal (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Re:For ALL the people with file upload problems ! 2 Months, 1 Week ago Karma: 0  
I'm having some issues uploading and I have tried everything that the FAQ and this thread has told me. I've changed the file permissions, added the form tag, and done everything else that I've read. I'm also using Joomla 1.5 and am using version 2.5 J1.5 RC1 of chronocontact. Here is the error that I'm getting:

I echoed out my file permissions.

File perms= 0777

Warning: move_uploaded_file(/home/.../public_html/components/com_chronocontact/upload/20080513222202_Zorro.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/.../public_html/components/com_chronocontact/chronocontact.php on line 538

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phprIRRN5' to '/home/.../public_html/components/com_chronocontact/upload/20080513222202_Zorro.jpg' in /home/.../public_html/components/com_chronocontact/chronocontact.php on line 538

Warning: chmod() [function.chmod]: No such file or directory in /home/.../public_html/components/com_chronocontact/chronocontact.php on line 540
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/13 22:33 By smetal.
  The administrator has disabled public write access.
#8357
smetal (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Re:For ALL the people with file upload problems ! 2 Months, 1 Week ago Karma: 0  
I was actually able to get passed the permission denied issue by changing the permissions on the upload directory itself. Although, I had to change it to 0777 in order to prevent the code from erroring out. However, when I submit the form it is still not uploading the files to that upload destination, nor is it writing the filename in the database anymore. Please help me.

Here is what I get when i turn the debug message on:

_POST: Array ( [creation_user_id] => 66 [status] => A [cat] => Home Decor [title] => cvnb [summary] => cvbn [description] => cvbn [cost] => [time] => )

I will send whomever a backup of the form to an email if need be.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/13 23:27 By smetal.
  The administrator has disabled public write access.
#8362
GreyHead (Admin)
Support
Admin
Posts: 2905
graph
User Offline Click here to see the profile of this user
Gender: Male bobjanes Location: Brittany
Re:For ALL the people with file upload problems ! 2 Months, 1 Week ago Karma: 62  
Hi smetal,

The debug doesn't help here as it doesn't include the $_FILES array.

I think there was a small fix in a recent ChronoForms release so please update to the latest version.

You can also send a Form Backup to the address in my sig but this will only confirm if there is a problem with the form - permission problems are site / server related.

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8379
smetal (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Re:For ALL the people with file upload problems ! 2 Months, 1 Week ago Karma: 0  
Bob,
Thanks a lot for your quick response and help. The update seemed to do the trick. I can now see the files uploaded on the server. The issue that I see now is that when I go to view the form data in the admin I'm not seeing the file name displayed. I'm trying to get into the database now to see if it was inserted in the table, but I think the server is down. Is there some kind of display limit when viewing the form data? The filename is kinda long, because it gets generated.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8381
GreyHead (Admin)
Support
Admin
Posts: 2905
graph
User Offline Click here to see the profile of this user
Gender: Male bobjanes Location: Brittany
Re:For ALL the people with file upload problems ! 2 Months, 1 Week ago Karma: 62  
Hi smetal,

There shouldn't be any problem viewing the form data (if the MySQL server is down then your site won't work at all).

Please will you copy and post the code from your form Autogenerated code tab here to check that the file is included there.

Bob

PS I sometimes find that the free EasySQL Joomla Extension is a simple way to look at database tables.
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8383
smetal (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Re:For ALL the people with file upload problems ! 2 Months, 1 Week ago Karma: 0  
Bob,

Here is the auto-generated code. The "photofile" is the name in the form. It was working before, now it stopped once I upgraded.

Code:

<?php $database =& JFactory::getDBO(); $database->setQuery( "INSERT INTO #__chronoforms_3 VALUES ( '' , '". date('Y-m-d')." - ".date("H:i:s")."', '".$_SERVER['REMOTE_ADDR']."' , '".$_POST['cat']."' , '".$_POST['title']."' , '".$_POST['summary']."' , '".$_POST['description']."' , '".$_POST['cost']."' , '".$_POST['time']."' , '".$_POST['photofile']."', '".$_POST['creation_user_id']."' , '".$_POST['status']."');" ); if (!$database->query()) { echo "<script> alert('".$database->getErrorMsg()."'); window.history.go(-1); </script> "; } ?>
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/14 10:34 By smetal.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials