JFolder::create: Infinite loop detected - Couldn't create upload directroy 1

Repitol 18 Mar, 2015
Hi,
I can't find the way to achieve upload directory setting with my form
at Upload Files Event Action, whatever I configure in Upload Path
I have the error "JFolder::create: Infinite loop detected - Couldn't create upload directroy 1" when I make a test
I verified CHMOD, tried to set the website root as target, tried to let the field empty to use default config... No way.
I verified tmp and logs config in J! configuration - they are ok
Using another form editor as a test (CKform) I can edit the upload directory without any problem.

Do you have an idea ?
Thanks
GreyHead 18 Mar, 2015
Hi Repitol,

What are you trying to set as the path? It needs to be a full server path, not just the part in your domain folder.

Bob
Repitol 18 Mar, 2015
I tried each of the followings
/var/www/clients/client1/web60/web 

/var/www/clients/client1/web60/web/ 

/var/www/clients/client1/web60/web/uploads/ 

http://www.mywebsite.com/uploads 

/web/ 

...
my logs and tmp configuration in J! are
/var/www/clients/client1/web60/web/logs
/var/www/clients/client1/web60/web/tmp

I tried also
/logs
/tmp
and
./logs
./tmp
as I saw on several forums it could be a fix.
GreyHead 18 Mar, 2015
Hi Repitol,

Please add a Custom Code element in a form and add this code
<?php
echo '<div>The path is: '.JPATH_SITE.'</div>';
?>
and see what it shows when you load the form.

Bob
Repitol 18 Mar, 2015
result :
The path is: /var/www/clients/client1/web60/web

it looks ok withe the website root path
GreyHead 18 Mar, 2015
Hi Repitol,

So that should work - you will need to add a / at the end; you should also not save them in the site root so add some other folder(s) to the path e.g. /var/www/clients/client1/web60/web/uploads/ (and possibly remove the slash at the beginning). That should set the folder correctly.

Bob
Repitol 18 Mar, 2015
Bob,
something goes wrong...
in path I have set "/var/www/clients/client1/web60/web/uploads/" saved and applied
When I test form, custom code still shows : The path is: /var/www/clients/client1/web60/web
but nothing goes into the target directory "uploads" I tried also without / at the end

debug shows :
Data Array:
Array
(
    [option] => com_chronoforms
    [tmpl] => component
    [chronoform] => Envoi
    [event] => submit
    [cf_sid] => 068f5a5c909504963eabfe73ff0c8b39
    [Itemid] => 
    [envoi_fichier] => 
    [input_textarea_15] => 
    [email] => myemail (changed for the post)
    [mentions] => Oui
    [chrono_security_answer] => 2
    [ef4f9b07a8379e6d5a88ad9f0e3eb64e] => 1
)
Validation Errors:
Array
(
)
Debug Data
    Core Captcha
        Passed the answer check!


does it indicates something to you ?
GreyHead 18 Mar, 2015
Hi Repitol,

There's no evidence of an upload files action in the Debugger output. Is it enabled? What do you have in the settings?

Bob
Repitol 19 Mar, 2015
Hi Bob,
in elements I put a File Upload button (ghost enabled was set by default I let it checked (is that OK ? ))
name and ID : envoi_fichier

in actions I put On Submit
1rst : Check Security Question (works well - Load Security Question is in On Load)
2nd : Upload Files
OnSuccess : Enabled YES
files : jpg-png-gif-tiff-Pdf-doc-docx-zip-rar-gzip
Upload Path : /var/www/clients/client1/web60/web/uploads
Max Size in KB : 12000
min Size : 1
Safe File name : yes

OnFail : Event Loop - Target Event = > On Load
GreyHead 19 Mar, 2015
Hi Repitol,

Please check the syntax for the files entry in the Upload Files action - it need to include the input name.

Bob
Repitol 19 Mar, 2015
YES !!
I did forget that point ! files type list must begin with the input name.
in my case - files: envoi_fichier:jpg-png-gif-tiff-Pdf-doc-docx-zip-rar-gzip

Is there a way now to receive the uploaded file by email ?

Thanks Bob
GreyHead 19 Mar, 2015
Hi Repitol,

Yes, add envoi_fichier to the Attachments box in the Email action. (and the Email action must be after the Upload Files action)

Bob
Repitol 19 Mar, 2015
Ok fine
I can't delete the debugger action. When I delete it, I loose everything in On Submit actions
is there a way to delete it another way ?
GreyHead 19 Mar, 2015
Hi Repitol,

That should not happen. Try making a copy of the form and see if you can delete it from that.

Bob
Repitol 19 Mar, 2015
No, same problem
May I give you an admin access by PM if possible to see the point ?
Or tell me how to delete this (it can be through DB table erasing)

Repitol
GreyHead 19 Mar, 2015
Hi Repitol,

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
Repitol 19 Mar, 2015
Great
I sent it by PM right now.
GreyHead 19 Mar, 2015
Hi Repitol,

The form backup that you sent me doesn't have a Debugger action installed.

Bob
Repitol 19 Mar, 2015
??
I made a new backup and replace the old one (same url)
I ensure there's a debugger action at On Submit, I'd like to show you a screenshot !
😲
Repitol 19 Mar, 2015
Here's the screenshot
JFolder::create: Infinite loop detected - Couldn't create upload directroy 1 image 1
GreyHead 20 Mar, 2015
Hi Repitol,

Sorry, I must have been asleep - I was looking for it at the end :-(

I'll send it back to you without the DeBugger.

Bob
Repitol 23 Mar, 2015
Hi Bob,
thanks for the form but when I test it and hit "submit" I'm on a blank page
(I just add the email action after upload action as required)
GreyHead 23 Mar, 2015
Hi Reitol,

That's correct, the form has nothing in the On Submit event - I have double checked this time.

Bob
Repitol 23 Mar, 2015
Yes ! I noticed that just now.
I have done what expected and the form works now
I just don't receive the email.
the email action is after the upload action but in Upload "on Success", there is Show Thanks Message events
so maybe that is the problem ?
Repitol 23 Mar, 2015
Sorry it works
I forgot to set email enabled... what a pity
thaks for your job Bob and the Team
:)
This topic is locked and no more replies can be posted.