Comments (7)
@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.
@biscolab thanks for help , but i think you should announce somehow in your documentation to be careful with the version ,because most of users copy/past the installation code which is composer require biscolab/laravel-recaptcha:^3.0
from laravel-recaptcha.
@biscolab i've solved, i don't know why when i installed for the first time, composer install 3.0 version.
Now i've done a composer update and now it works with last version
from laravel-recaptcha.
Hi @IbrahimEzat , I tested with a fresh installation and following the documentation everything is working properly.
I'm going to figure out how to fix your installation.
First of all: I'd like to know what is your server or VM OS (not Windows 10).
Then, could you please post some code snippet of your blade file?
from laravel-recaptcha.
i've also that issue that's my snippet of code layout.blade.php:
<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title> {{$page_title}} | {{$basic->sitename}} </title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-113580855-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-113580855-2', { 'anonymize_ip': true });
</script>
<!-- favicon -->
<link rel="shortcut icon" href="{{asset('assets/images/logo/favicon.png')}}" type="image/x-icon">
<!-- recaptcha -->
<script src='https://www.google.com/recaptcha/api.js'></script>
<!-- bootstrap -->
<link rel="stylesheet" href="{{url('/')}}/assets/front/css/bootstrap.min.css">
<!-- fontawesome icon -->
<link rel="stylesheet" href="{{url('/')}}/assets/front/css/fontawesome.min.css">
<!-- flaticon css -->
<link rel="stylesheet" href="{{url('/')}}/assets/front/fonts/flaticon.css">
<!-- animate.css -->
<link rel="stylesheet" href="{{url('/')}}/assets/front/css/animate.css">
<!-- Owl Carousel -->
<link rel="stylesheet" href="{{url('/')}}/assets/front/css/owl.carousel.min.css">
<!-- magnific popup -->
<link rel="stylesheet" href="{{url('/')}}/assets/front/css/magnific-popup.css">
<!-- stylesheet -->
<!-- <link rel="stylesheet" href="{{url('/')}}/assets/front/css/style.css"> -->
<!-- responsive -->
<link rel="stylesheet" href="{{url('/')}}/assets/front/css/responsive.css">
<link href="{{asset('assets/front/css/sweetalert.css')}}" rel="stylesheet" />
<link href="{{asset('assets/front/css/toastr.min.css')}}" rel="stylesheet" />
@yield('css')
<link rel="stylesheet" type="text/css" href="{{asset('assets/front/css/style.php')}}?color={{ $basic->color }}&lang=@Lang('string.caricamento')">
{!! htmlScriptTagJsApiV3([
'action' => 'homepage'
]) !!}
</head>
from laravel-recaptcha.
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>`
from laravel-recaptcha.
@fferraro87 If you don't give me enough information about your installation I can't help you.
- PHP version?
- Laravel version?
- Laravel reCaptcha version?
Your layout.blade.php looks good but I bet the error starts from the installation
@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 config/app.php
from laravel-recaptcha.
@IbrahimEzat please check Laravel reCaptcha version you installed. Make sure you are using the latest
from laravel-recaptcha.
Related Issues (20)
- recatcha v3 setup on laravel 10 HOT 1
- Laravel 11 support HOT 1
- add support for laravel 11 HOT 3
- Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute
- Can't undersand how you example of recaptcha v3 will work HOT 11
- Support for Laravel 9 HOT 1
- Lazy load script (poor lighthouse score) HOT 4
- CSP nonce HOT 1
- Some forms same page
- Documentation Site Returns 404 HOT 2
- How can I disable this momentarily to make some tests and then turn it back on again? HOT 2
- deleted
- Call to undefined function htmlScriptTagJsApiV3() (header.blade.php) HOT 1
- Laravel-recaptcha doesn't support Laravel 10 HOT 1
- upgrade laravel eror HOT 3
- How about Content Security Policy in This Package HOT 1
- Does it work with livewire? HOT 4
- How to integrate with Validation in Backend/Server Side? V3 HOT 2
- ReCaptcha V3 not getting language params from recaptcha.php
- Widget ID?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-recaptcha.