I have installed recaptcha in my client's site which is not live yet But in development. The recaptcha was working fine till last week but when I'm checking it now it gives a "Input error: Invalid referer " instead of the recaptcha block.
I am just wondering what might be the cause of this. Is it something to do with the public and private key. ??
Any help would be appreciated
Cheers
yep! It's working for me, I manage over 3 different domains and I was trying to use the same recaptcha keys, I was getting this error " Input error: Invalid referer"
I just create new keys for each of my domains and It works like a charm!
I found the solution its just to do with the public and private key.
For anyone who is having the same problem just go on this link http://www.google.com/recaptcha
and enter keys fro your domain or just 127.0.0.1 and it will work fine.
Cheers
Related
I have implemented on Add contact to AgileCRM with PHP API then
In agile_curl_wrap function, I have provided three requirements with Domain, User and Api_key after clicking submit, I got 401 UNAUTHORIZE response back.
I'm sure that I have set all requirement needed with this API. I really got stuck in this step.
Thank in advance for any helps.
You can check that gist I've created to show you how it works. Just replace the strings on both files and go on!
In AgileCRM PHP Wrap replace:
define("AGILE_DOMAIN", "yourDomain");
define("AGILE_USER_EMAIL", "yourEmail");
define("AGILE_REST_API_KEY", "yourApiKey");
In AgileCRM PHP Wrap usage replace:
$email = "some#email.com";
And it must work!
I have faced the same issue "401 UNAUTHORIZE". Fixed it by changing AGILE_USER_EMAIL
Please provide your valid admin email of your Agile email id at AGILE_USER_EMAIL area and make sure you have added valid AGILE_DOMAIN and AGILE_REST_API_KEY
I am currently experiencing this problem. the thing is that it is working perfectly in test mode, but when we try to use the live id and transaction key, we keep getting the error... I am thinking maybe the request is still trying to post to the test server and we need to force the request to the live one
here is our instantiation code
// authorize.net account credentials
$auth_test_mode = false;
if ($auth_test_mode) {
define("AUTHORIZENET_API_LOGIN_ID", "testid");
define("AUTHORIZENET_TRANSACTION_KEY", "testkey");
} else {
define("AUTHORIZENET_API_LOGIN_ID", "ourid");
define("AUTHORIZENET_TRANSACTION_KEY", "ourkey");
}
any help would be greatly appreciated
thanks!
You also need to specify which URL you are using. The test server and live server use different URLs. If you don't change that, too, you'll get this error.
If you are using authorizenet-php-api, then include this line too:
define("AUTHORIZENET_SANDBOX", false);
Also, FYI, you don't need defines for your API keys, you can use the functions like this:
authorizeNetGetDailyTransaction($account['loginID'],$account['transactionID'])
Which is the only way to do it if you have to login to multiple accounts from the same page.
I'll try to make it short.
When i set flash data like this
$this->session->set_flashdata('testing', $somevariable);
I should get something like this in session:
'flash:new:testing' => string 'Test'
And this works.
When I make a new server request it should say
'flash:old:testing' => string 'Test'
I don't get to this part. Even at first request (while it is still "new") i get boolean (false) when trying to get flashdata.
I should mention this is working in wamp, but not on my live site.
Any ideas?
Thanks in advance
It seems strange !
Maybe you should check the value of var_dump($somevariable) in your live site.
Had a look at quite a few posts on stack and the cpanel forum but still cant seem to find a solution.
Im trying to retreive information via an api call but it just always seems to fail. I know its to do with the url 404'ing but not sure how to fix.
I am using the the XMl API class:
https://github.com/CpanelInc/xmlapi-php/
The code I have is:
$this->load->library('xmlapi');
$xmlapi = new xmlapi(XMLAPI_HOST);
$xmlapi->password_auth(CPANEL_USER, CPANEL_PASSWORD);
$xmlapi->set_debug(1);
echo '<pre>';
print_r($xmlapi->accountsummary(CPANEL_USER));
echo '</pre>';
The above outputs the xml array. In the error_notice it says:
HTTP error 404, The requested page was not found.
Thats fine. So I echo out the url it uses which 404's:
http://mysite.co.uk:2082/xml-api/accountsummary
The cpanel docs are a little awkward to navigate but just cant find anything on the actual url structure, besides its the class that compiles the url. ive tried adding www, tried an ip etc but no idea why its erroring.
Also if it helps im accessing a normal cpanel account, not a WHM admin and its through http.
Thanks for reading, any help guidance on getting it working would be appreciated.
The issue you are experiencing is that you are attempting to use the accountsummary function from cPanel ports (2082/2083). The accountsummary function is limited to the administrator accounts since this function is designed to provide administrative api level access for pulling account information from any user on the server.
To access the accountsummary api, you will need to call the accountsummary api from the following url:
https://$SERVER_IP:2087/xml-api/accountsummary?user=$USERNAME
You will need to replace $SERVER_IP and $USERNAME with their respective values.
http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/ShowAccountInformation
I am getting
PHP Notice: Undefined index: password_clear
when I use any plugin other then joomla's login plugin to log-in the user.
In joomla database, we are not storing any user's data. so I have got a custom plugin, which will do the check for user's credentials through a web service call.
The credentials are checked good, and joomla does show the user has logged in, and rest of the things are also working fine. But my logs are filled with the above Notices!
Any one faced such problem or any hints or directions for me?
Thanks for help in advance,
Tanmay
You can do two things:
Edit php.ini and set error_reporting to E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
Edit the plugin code and test the presence of password_clear before using it.
Here's an example how to do the testing part:
$clear = $_POST['password_clear']; /* old */
$clear = empty($_POST['password_clear']) ? '' : $_POST['password_clear']; /* fixed */
or:
if ($_POST['password_clear'] == 'x') {...} /* old */
if (! empty($_POST['password_clear']) && $_POST['password_clear'] == 'x') {...} /* fixed */
#JMZ, your reply did gave me some ideas of looking into the stuff, and I got the solution.
I am not user, if the changes I did are valid, but it works for me.
I basically grabbed the gmail.php login plugin as the base for creating my own plugin.
Now on the success I had to add
$response->password_clear = ""; to the response object, so that at least it has a reference and will not give me a notice of undefined index.
Hope some one will be helped. Or if some one has a better understanding on this, please do let me know.
Thanks,
Tanmay