PDA

View Full Version : fmbadhandler_115.php Upgrade



david_de
08-Jul-2006, 05:53 PM
While trying to upgrade from version fmbadhandler.php 1.12 to 1.15 I ran into a problem with the $TEMPLATEDIR / $TEMPLATEURL.

In working version 7.09 formmail.php I have the following setting.

$TEMPLATEDIR = "./fmtemplates";
In a working version of fmbadhandler.php 1.12 I have the following setting.

$TEMPLATEURL = "http://mywebsite.com/members/forms/fmtemplates"; This works great no problems.

In fmbadhandler.php version 1.15 if I put either of these same settings in the $TEMPLATEDIR or $TEMPLATEURL I get a message on the browser, after entering submit, that the TEMPLATEDIR and TEMPLATEURL have not been set.

The test error is to submit with no fields entered.

The error emails says

The following error occurred in FormMail :
missing_fields
Error=The form required some values that you did not seem to provide.
CAPTCHA image identification
Your email address
Your name



contact: 'Y'
mesg: ''
date: '08-Jul-2006'
time: '12:05 PM'
day: 'Saturday'
timezone: 'EDT

The directory for templates is the same the templates are the same and everything works fine until I try to upgrade to the v 1.15. This does not make any sense to me. How can the same settings work in one version and not in the other?

Any ideas?

russellr
09-Jul-2006, 12:42 AM
Hi,

I don't think there are any problems in upgrading.

So, what you should do is go back to the working version. Then change one thing and one thing only: either upgrade formmail.php or fmbadhandler.php.

If upgrading fmbadhandler.php, you need to be very careful that you copy the configuration across precisely.

If that still doesn't work, you'll need a Support Subscription to get me to look into in detail. If it turns out to be a bug in our code (possible, but not likely), we'll refund your subscription.

david_de
09-Jul-2006, 01:11 AM
Hi,

So, what you should do is go back to the working version. Then change one thing and one thing only: either upgrade formmail.php or fmbadhandler.php.

If upgrading fmbadhandler.php, you need to be very careful that you copy the configuration across precisely.


Thank you Russell, I did just that. I have a working version of formmail.php 7.09 and a working version of fmbadhandler.php 1.12 everything works fine. When I try to change fmbadhandler.php to 1.15 I have the problem.

I have checked the two versions with WinDif to make sure I missed nothing. Other then the obvious comment and version number differences the $TEMPLATEURL and $TEMPLATEDIR are different with no content in the new version. I put exactly the same content in the new version and get the error. I go back to the old version and the problem is gone.

The template settings in formmail is the DIR the one in fmbadhandler is URL and these work fine on the working versions. If I put the same settings in then 1.12 fmbadhandler in either the DIR or URL it fails. I even did a cut and paste to make sure I was not making a typo. I suspect a bug since it does work on the older version.

I will find the Support Subscription and send it in. Thanks again.

david_de
09-Jul-2006, 04:15 AM
UPDATE:

While setting up for the support subscription with Russell I decided to give it all one more try again. I upgraded to formmail 7.10 and that as usuall in the formmail upgrades using the wizard went fine. Everything worked great with the formbadhandler 1.12. I went back to testing with 1.15 using the same settings I used previously. It worked fine.

I switched back to formmail 7.09 and everything worked fine again. I went back to 7.10 no problems. I switched over from http to https and again everything worked fine.

Obviously some where along the way I had messed up. :o This time I can not even find out where my error was. Maybe the best solution, at times, is to take a few hours off and let the mind clear. ;)

Thanks again Russell for your help and for FormMail.