The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Install error recapatcha - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4) +--- Thread: Install error recapatcha (/showthread.php?tid=1459) |
Install error recapatcha - terry54661 - Jul 14th, 2011 Hi I am installing recapatcha on my sites registration form page. I have followed the tutorials to the letter "i think" and have retraced my steps over and over again and still get the same error everytime. The Error is.. -------------------------------------------------------------------- PHP Code: Warning: require_once(/public_html/mysite.com/formtools/global/api/api.php) [function.require-once]: failed to open stream: No such file or directory in /home/terrymcb/public_html/mysite.com/register.php on line 2 -------------------------------------------------------------------- Has anyone else come across this issue or have a solution to the problem. I would be very grateful. Regards Terry RE: Install error recapatcha - terry54661 - Jul 17th, 2011 ok im still trying to work this out and will fill out information on the problem as I find it so that others with the issue sort have a chance at sorting it. I contacted my webhost and they looked at my register.php page and told me this... Quote:[08:49] I could find that you are using the global php in your script If anyone knows what I do now do please reply to this thread. If not I will do a little research and keep updating this. Terry RE: Install error recapatcha - Ben - Jul 18th, 2011 Hi Terry, Yeesh... I'm not sure what they mean, exactly. It's possible they mean that you're using an absolute path to the api.php file and they want you to use a relative one instead. But either way, it's definitely a path issue: the fatal error means that your file can't find the api.php file, so you'll need to look closely at the path entered in the require_once("...") function. Sorry, wish I could be more help. - Ben RE: Install error recapatcha - terry54661 - Jul 19th, 2011 Hi Ben, Thanks for getting back to me on this it has been a great help. The error was indeed a path issue. Correct Path.. Code: <?php Incorrect path.. Code: <?php So now I have an active recapatcha But there is another problem! If the text is entered wrong the user will now be sent to a blank page "https://mysite.com/formtools/process.php" Entering the correct text is redirecting just fine. I will update as problems are solved. To be continued... Reason for being sent to blank page "process.php" was the line below. I removed it from my page source. Now when the wrong text is entered into recapatcha the page reloads and the user is told to re-enter the text and try again. Removed from source code.. Code: <input type="hidden" name="form_tools_form_url" value="" /> To be continued.. RE: Install error recapatcha - terry54661 - Jul 19th, 2011 No more problems. I have installed recapatcha fully and it is working great. Thanks for your help Ben. I hope this thread is of help to others. |