Forums

Form Code eval & Chronoforms V3.2.0

Gilandune 16 Jul, 2012
Hello,

I´ve been trying to fix the "Code being eval´d upon save" bug for some time, and i think im stuck.
I´ve upgraded my chronoforms install to V3.2.0, cleared my firefox cache, ran "Upgrade SQL" and even tried saving the from on a different computer that had never been into my backend, yet im still getting this:

Forbidden

You don't have permission to access /administrator/index2.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


When i try to save a form with this code:
$rastreo = JRequest::getString('rastreo', '', 'get');


Any help would be very appreciated. My old forms that include such code are working normally, but cannot be modified, as the same message pops up.

Thanks in advance!
GreyHead 17 Jul, 2012
Hi Gilandune,

The "Code being eval´d upon save" bug is fixed in CFv3.2 so that shouldn't be the problem you are seeing here. It looks more like problems with the server security settings not liking something.

There's a FAQ for CFv4 here that may help.

Bob
Gilandune 18 Jul, 2012
Thanks for the quick reply, i´ve contacted my hosting provider and the´ve investigated.
Ill leave some more details in case anyone ever has a similar issue.

I figured out that the 403 only happens when i have 2 different echo statements anywhere on the "Form Code" tab of a form. Switching them to "print" instead of "echo" let me submit the forms and save the changes.

In addition, the forms themselves on the frontend werent submitting correctly, showing just a red box with a 1. and no error message (like the validation boxes when an attachment violates a size rule). It also discarded all post data when doing this and neither saved to DB nor emailed the form.
GreyHead 19 Jul, 2012
Hi Gilandune,

If this the latest ChronoForms version 3.2 there's a bug in the File upload code that gives you the 'red 1' errors. Please see this post.

Bob
Gilandune 19 Jul, 2012
Thank you for that link, I was about to pull my hair out wondering what I had done!
This topic is locked and no more replies can be posted.