I'm using Joomla 1.5.x and CFV2.5J1.5.
I've followed the FAQ and scanned the Forums for help but still get the error, "You are not allowed to access this URL directly, POST array is empty" when trying to upload a file.
In "General Tab" I have: enctype="multipart/form-data"
In Form Code" I have:
<input name="datafile" id="datafile" size="40" type="file">
<br>
<input value="Send" type="submit">
<input value="Start over" type="reset">
And In "File Uploads" I have:
Enable Uploads: YES
Field names and extensions: datafile:zip
Max allow: 4000
Min allow: 1
What am I missing????
I've followed the FAQ and scanned the Forums for help but still get the error, "You are not allowed to access this URL directly, POST array is empty" when trying to upload a file.
In "General Tab" I have: enctype="multipart/form-data"
In Form Code" I have:
<input name="datafile" id="datafile" size="40" type="file">
<br>
<input value="Send" type="submit">
<input value="Start over" type="reset">
And In "File Uploads" I have:
Enable Uploads: YES
Field names and extensions: datafile:zip
Max allow: 4000
Min allow: 1
What am I missing????
Hi dennisg,
That all looks good. Try adding an hidden field so that the $_POST array has something other than submit & reset:
If not, please take a Form Backup from the Forms Manager and post it here or email to to the address in my sig and I'll take a look (may take a while I'm very busy right now).
Bob<br><br>Post edited by: GreyHead, at: 2008/04/03 20:39
That all looks good. Try adding an hidden field so that the $_POST array has something other than submit & reset:
<input type='hidden' name='dummy' />See if that will do the trick.
If not, please take a Form Backup from the Forms Manager and post it here or email to to the address in my sig and I'll take a look (may take a while I'm very busy right now).
Bob<br><br>Post edited by: GreyHead, at: 2008/04/03 20:39
Greetings Bob!
So far, I have found this to be an amazing component. Thank you for all your hard work. I have confidence the issue I am about it post will be resolved, so I have registered the component.
I have created two test forms.
[list]Email address submission with an extra hidden field
File Upload with Email[/list].
The first issue on both form was the "You are not allowed to access this URL" so I commented out:
Now the "
You are not allowed to access this URL directly, POST array is empty " is occurring.
I have attached a backup of the file upload form.
Edit:
It seems that I am unable to get the backup file to attach to the post, so let me know if you need it and I will email it to you.
So far, I have found this to be an amazing component. Thank you for all your hard work. I have confidence the issue I am about it post will be resolved, so I have registered the component.
I have created two test forms.
[list]Email address submission with an extra hidden field
File Upload with Email[/list].
The first issue on both form was the "You are not allowed to access this URL" so I commented out:
//if(!JRequest::checkToken()){
//echo "You are not allowed to access this URL";
//return;
//}Now the "
You are not allowed to access this URL directly, POST array is empty " is occurring.
I have attached a backup of the file upload form.
Edit:
It seems that I am unable to get the backup file to attach to the post, so let me know if you need it and I will email it to you.
Hi studiogrynn,
No attachment - it needs to be zipped or renamed to a .txt file to be uploaded
Bob
No attachment - it needs to be zipped or renamed to a .txt file to be uploaded
Bob
Bob,
File has been renamed and is attached.
John
File has been renamed and is attached.
John
Hi John,
As far as I can see the form works OK, I added enctype="mulitpart/form-data" in the Form Tag Attachement box on the General Tab as this is usually needed with IE.
Please check the File Uploads tutorial in the Downloads area here.
Bob
As far as I can see the form works OK, I added enctype="mulitpart/form-data" in the Form Tag Attachement box on the General Tab as this is usually needed with IE.
Please check the File Uploads tutorial in the Downloads area here.
Bob
Bob,
Originally the forms were built using the tuts. I had tried it with and without the tags without success.
Also, your test email did arrive. That was good news.
I'll add the tag again and give it another try.
Originally the forms were built using the tuts. I had tried it with and without the tags without success.
Also, your test email did arrive. That was good news.
I'll add the tag again and give it another try.
The issue still exists.
Are there any known conflicts with other components/modules/plug-ins?
I do not have sef urls active.
Are there any known conflicts with other components/modules/plug-ins?
I do not have sef urls active.
Hi studiogrynn,
There's always the possibility of conflicts but the file uploads are pretty basic and not especially prone to them. You can add &tmpl=component to the url to check just the form
Bob
There's always the possibility of conflicts but the file uploads are pretty basic and not especially prone to them. You can add &tmpl=component to the url to check just the form
Bob
Bob,
Thanks for your continued efforts on this.
Adding &tmpl=component to the end of the url did separate the component from the Joomla! front-end, but did not resolve the issue. So we are making headway.
Any expected PHP settings other than Joomla!'s default requirements?
Also, just a reminder that the "checkToken" issue exists too.
John
Thanks for your continued efforts on this.
Adding &tmpl=component to the end of the url did separate the component from the Joomla! front-end, but did not resolve the issue. So we are making headway.
Any expected PHP settings other than Joomla!'s default requirements?
Also, just a reminder that the "checkToken" issue exists too.
John
Hi John,
the "You are not allowed to access this URL directly, POST array is empty" error means that the form was submitted empty which is impossible because there is at least the token field, are you sure you don't have any form tags in your code ?
Max
the "You are not allowed to access this URL directly, POST array is empty" error means that the form was submitted empty which is impossible because there is at least the token field, are you sure you don't have any form tags in your code ?
Max
Hi John,
Nothing obvious - email or PM me a SuperAdmin login and I'll take a look if you like.
Bob
Nothing obvious - email or PM me a SuperAdmin login and I'll take a look if you like.
Bob
Bob,
I sent you admin access a while back, but it looks like you have not had an opportunity to log in. Any idea when that might happen? I would really like to get this resolved so I can move forward with new form development.
I sent you admin access a while back, but it looks like you have not had an opportunity to log in. Any idea when that might happen? I would really like to get this resolved so I can move forward with new form development.
Hi studiogrynn,
I should get there soon - I've had a client visiting for a few days and haven't been on-line much at all, I'm working steadily through the backlog now.
Bob
I should get there soon - I've had a client visiting for a few days and haven't been on-line much at all, I'm working steadily through the backlog now.
Bob
Hi Studiogrynn,
I did take a look back on 10 April - but got "Connection Refused" and sent an email saying that.
I've just spent half-an-hour or so digging around and can't work out what is happening. The error message is correct - the $_POST array is empty by the time the ChronoForms code executes so there are no form results left to do anything with.
I tried this with a new form and exactly the same thing happens so it isn't a form html problem. I have no real idea where else to look. Perhaps your ISP might have a suggestion?
I have amended the code so that execution continues if DeBug is enabled and you can see from the DeBug report that both the $_POST and $_FILES arrays are empty.
Bob
I did take a look back on 10 April - but got "Connection Refused" and sent an email saying that.
I've just spent half-an-hour or so digging around and can't work out what is happening. The error message is correct - the $_POST array is empty by the time the ChronoForms code executes so there are no form results left to do anything with.
I tried this with a new form and exactly the same thing happens so it isn't a form html problem. I have no real idea where else to look. Perhaps your ISP might have a suggestion?
I have amended the code so that execution continues if DeBug is enabled and you can see from the DeBug report that both the $_POST and $_FILES arrays are empty.
Bob
I did see that you were in the back-end. Did you find any resolutions or identify the cause?
Hi studiogrynn,
No - see my last post I've absolutely no idea why the result arrays are empty, never seen that before. It is kind of fundamental that the values get passed through.
I suppose the next step would be to dig into the Joomla core code and see if something there is tripping some kind of alarm??
Bob
No - see my last post I've absolutely no idea why the result arrays are empty, never seen that before. It is kind of fundamental that the values get passed through.
I suppose the next step would be to dig into the Joomla core code and see if something there is tripping some kind of alarm??
Bob
Bob,
Sorry about not seeing your post. I came to this thread and found no comments. I must have been viewing a cached page.
Thanks for digging into this.
We host our own servers. I'll put the code on another clean-site on the same server. Maybe we can isolate this to something server related or maybe a conflict on the affected site.
Sorry about not seeing your post. I came to this thread and found no comments. I must have been viewing a cached page.
Thanks for digging into this.
Perhaps your ISP might have a suggestion?
We host our own servers. I'll put the code on another clean-site on the same server. Maybe we can isolate this to something server related or maybe a conflict on the affected site.
Hi guys,
I'm having the same problem "you are not allowed to access this url". But only happens with files bigger than 2MB, could be related with some timeout?
Thanks.
I'm having the same problem "you are not allowed to access this url". But only happens with files bigger than 2MB, could be related with some timeout?
Thanks.
Hi ctasada,
Try to disable the "checkToken" under the general tab or search the forums for "keepalive"
regards,
Max
Try to disable the "checkToken" under the general tab or search the forums for "keepalive"
regards,
Max
Hi Max,
I found a message that recommends inserting <?php echo JHTML::_('behavior.keepalive'); ?> at the top of the form. Doing that I still have the same problem😟
I've also tried to disable the checkTokens. Then I don't get the message, but the file isn't uploaded either and the notification email arrives empty😟
What else can I try?
Thanks.
I found a message that recommends inserting <?php echo JHTML::_('behavior.keepalive'); ?> at the top of the form. Doing that I still have the same problem😟
I've also tried to disable the checkTokens. Then I don't get the message, but the file isn't uploaded either and the notification email arrives empty😟
What else can I try?
Thanks.
how long does it take to upload this file ? try to increase the session life time a little under the Joomla global config ?
Max
Max
This topic is locked and no more replies can be posted.
