I am a new PHP programmer. I am using reCaptcha for my website. It was showing normally earlier but does not show up now. The code is working on my localhost.
I have signed up for reCaptcha, entered my domain name and obtained the generated keys. After that, I downloaded the reccaptchalib.php and deployed it to my server.
Kindly help me as I don't know what to do next.
Thanks in advance!
Are you getting any PHP errors in the logs? Is it possible that you moved the reCaptcha library to a different path or moved the script?
I had a similar problem and it was caused by "cleaning up" and I moved the reCaptcha library into a subfolder.
Related
I am using the native app's latest version and it was working good but suddenly this problem appeared still loading the request without any reply.
I tried to reinstall it but nothing changed a tried the environment variables for the postman and still the problem. What can I do? Please help. Thanks.
For anyone reading this: problem was that I was not connected to my database. I needed to whitelist my IP address in MongoDB Atlas.
Just so I'm not spamming SO, you can check out my full answer here: https://stackoverflow.com/a/58263695/11993942
I'm trying to use a HTML/PHP form on my website. The problem is submit just opens a new page displaying my php as text, this is when I open the html file on my computer using Google Chrome. When I uploaded to my hosting service, TK dot com, I get a 405 error when using the form. I've tested on working/downloadable php forms and the same thing happens.
From my understanding, I can't just use php on my site without setting up an environment. I've read I need to use some sort of program to do this (apache). Which kind of confuses me further, how would I enable this type of service, which installs to my computer, to run on my website when my computer is off?
Any tips or guides on how to do use apache for PHP forms on my website or similar that I can be redirected to would be really helpful. Please let me know if any extra information is needed.
I have set up a simple Wordpress site with an order form but I'm struggling to get the site to recognise Sage Pay.
I've been following the initial instructions in the PHP integration kit - http://www.sagepay.co.uk/support/find-an-integration-document/direct-integration-documents:
Create a database and add the necessary tables.
Edit the /lib/config.php and the /demo/config.php to include my Sagepay Account and database details
In the test server for Sage Pay I also added the IP address of my site as an exception.
Every time I run the https://mywebsite.com/demo it returns the error:
Ooops!!!
An unexpected error seems to have occurred.
Try to refresh the page or you can contact us if the problem persist.
This is pretty early on in the but I seem to be doing something wrong. Is there something else that needs edited as the instructions are frustratingly vague.
Would I be better just using a Sagepay Direct plug in with Wordpress e-commerce solutions?
Thanks.
I am also a currently frustrated Sagepay learner. To asnswer you question, I had this problem too. My problem was that i had the database details incorrect. I had my local host details on my test environment, and i had not changed the details correctly in demo/config.php before ftp the file to my webserver. Once i did this, i got over the oops screen. The next problem was that i got a blank screen when running index.php from demo. I was told by sagepay that apache needs restarting as a service everytime somethingortheother happens. So on my local environment i restarted all services in wamp and it worked. I can now see the demo (not that i know what to do now as there are no instructions and the php is hidden in a complex class structure with the html content in some tpl files which i have never seen before - of course there are no instructions in the integration kit at all). Anyway back to the answer. So locally i can run the demo, but i still have white screen on my webserver, becuase i can't restart the apache service there, so that is the next problem. I will keep trying and add anything useful later.
I also had this problem, I had not given the database user account the necessary permissions to access the database.
I am a newbie who is trying to create a Facebook app using PHP and Facebook's PHP SDK. The app is hosted on Heroku, and the sample app that they provided is working fine. However, I am now trying to get the sample app to work on Apache 2.2, and I have encountered a lot of problems along the way. Well, straight to the point, my latest problem will be trying to do Facebook login on localhost, but the 'An error occurred. Please try later' appears on the popup dialog. This does not happen on Heroku.
Will someone please enlighten me on if there's any steps that I can take to overcome this error? I don't think it got to do with any coding error since I am just following the provided sample app. Thanks!
This is happening because FB does not recognize the URL of the host issuing requests. You need to determine what the FQDN of your localhost server is then add it to the Site URL section of the FB App Settings manager. Chances are you have the URL of your Heroku server in there now.
its simple. in local host you must create another sample application for localhost in facebook .and you must have the permission.then you can login and work with your local one.
simply for every copies of your app.you must create it in facebook
hope it help you
good luck
There is absolutely no errors in coding, it just does not seem to work locally, but works perfectly online. It is important I get it working locally because of development purposes. Not form submission, but page display.
Any ideas on how I cam make the recaptcha to work locally.
Thanks
Jean
Recaptcha is an online web service, thus it will work only online.
You cannot make it work offline.
Edit:
Your problem seems not to be your internet connection but a PHP error, since your comment talks about a "white page". Please search the web (or stackoverflow) for "php white page" to get debugging instructions.
Are you using XAMPP, if so, I found that if you put your files in htdocs in XAMPP folder the recaptcha works. According to google, their recaptcha will work on localhost. I'm sure there's a lot more logical solution than what I have, but this is what worked for me, hope it helps you too.