Page 1 of 1

PHP Form Script Error?

Posted: Fri Aug 08, 2008 10:56 pm
by headbangerbuggy
Hey, I need help, lol.

I cannot for the life of me figure out what the hell is wrong.
but...
I have a feeling its an issue between the FTP syncing and folder orientation between the hosting directory and Dreamweaver.

Go to my site: craftystrats.tk

and on the "About" page, there is a link to a registration form called "Registration"

its php based, obviously...
and it has normal functions applied to each text entry.

it has an auto response server set up.
and it sends to my email=headbangerbuggy@gmail.com

and yet it gets a fatal error when you submit information to the server... :dubious: :banghead:

If someone could take a look at it, that would be GREATLY appreciated...

any questions about the way it works, ask me.

and also, if anyone knows any CSS can you take a look at the "Download" page and the "Strategy" page.
the issue is the left navigation DIV.

The strategy page looks fine in FireFox but in IE its on the bottom even though the placement is "right".

Im a beginner in both CSS and PHP.
but boy do i need help, thanks guys.

Re: PHP Form Script Error?

Posted: Sat Aug 09, 2008 5:39 am
by EverLearning
We'd have to some some code and error messages before we can begin to hep you.

Re: PHP Form Script Error?

Posted: Sat Aug 09, 2008 6:36 am
by headbangerbuggy
ok...
well heres the form log:

http://craftystrats.vndv.com/formdata/9 ... 31a696.log

you can clearly see the three tests i did using my own email.

heres the php form:
http://craftystrats.vndv.com/index/Registration.php

and the error returned:

Fatal error: Call to a member function setFormFileFolder() on a non-object in /www/vndv.com/c/r/a/craftystrats/htdocs/index/Registration_conf_inc.php on line 4



and for the messed up CSS:

downloads page:
http://craftystrats.vndv.com/index/downloads.html

strategies page:
http://craftystrats.vndv.com/index/strategies.html

CSS dependency:
http://craftystrats.vndv.com/index/main.css

Re: PHP Form Script Error?

Posted: Sat Aug 09, 2008 7:37 am
by EverLearning
From your logs

Code: Select all

SAFE MODE Restriction in effect.  The mail() command is not allowed SAFE MODE Restriction in effect.  The mail() command is not allowed
which means that SAFE_MODE is on, and mail() function is disabled on your server, so you can't send mails.

Code: Select all

Fatal error: Call to a member function setFormFileFolder() on a non-object in /www/vndv.com/c/r/a/craftystrats/htdocs/index/Registration_conf_inc.php on line 4
means you're trying to call a method on a $variable that is not an object. Why and how, I can't tell without looking a the source. It's possible that the SAFE_MODE restrictions are messing with this too, and not letting you create files and folders. Thats probably why judging by this error message from your log

Code: Select all

SAFE MODE Restriction in effect.  The script whose uid is 38309 is not allowed to access /www/vndv.com/c/r/a/craftystrats/htdocs/formdata/t_uploads_Registration owned by uid 2001
Ask your hosting provider for help.