-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call to undefined function htmlScriptTagJsApiV3() #22
Comments
Hi @IbrahimEzat , I tested with a fresh installation and following the documentation everything is working properly. |
i've also that issue that's my snippet of code layout.blade.php:
|
thanks @biscolab for your kind interest , i'm using Bitnami - wampstack-7.1.30-0 with php version 7.1.30 as local server before up the project , here is test code return mentioned error : `<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" prefix="og: http://ogp.me/ns#" >
<head>
<meta name="csrf-token" content="{{ csrf_token() }}">
<script type="text/javascript">
function callbackThen(response){
// read HTTP status
console.log(response.status);
// read Promise object
response.json().then(function(data){
console.log(data);
});
}
function callbackCatch(error){
console.error('Error:', error)
}
</script>
{!! htmlScriptTagJsApiV3([
'action' => '/',
'callback_then' => 'callbackThen',
'callback_catch' => 'callbackCatch'
]) !!}
</head>
<body>
<form action="{{ url('/') }}" method="POST" id="contactUsForm" data-parsley-validate>
@csrf
<div id="contactUsForm_id"></div>
<div class="form-group mt-4">
<input type="text" class="form-control" name="name" id="name" placeholder="Your Name" required>
</div>
<div class="form-group">
<input type="email" class="form-control" name="email" id="email" placeholder="Your Mail" data-parsley-type="email" required>
</div>
<div class="form-group">
<textarea class="form-control" name="message" id="message" rows="3" placeholder="Message" required></textarea>
</div>
<button type="submit" class="btn btn-success btn-block mb-4">Send</button>
</form>
</body>
</html>` |
@fferraro87 If you don't give me enough information about your installation I can't help you.
@IbrahimEzat I've never used wampstack and I can't replicate the same environment. I suggest you remove and reinstall the package. Please either check package discovery is working or register alias and provider in |
@biscolab i've solved, i don't know why when i installed for the first time, composer install 3.0 version. |
@IbrahimEzat please check Laravel reCaptcha version you installed. Make sure you are using the latest |
@fferraro87 Thanks for help , It works now after change composer.json require biscolab/laravel-recaptcha from 3 to 3.4.2 and update the composer. |
Error Exception Call to undefined function htmlScriptTagJsApiV3()
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: