Replies: 1 comment
-
I am having the exact issue of cookie bar not appearing on live sever with Kernel.php version. Works fine on localhost. On server, it appears briefly for split second and then hides. I have inspected the js and can't see any reason why its happening. Can you share what issue did you find and/or how did you fix it? edit: turns out it was the ad block extension. it was automatically hiding it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I tried the laravel-cookie-consent with version ^2.12. I installed and configured it and it works properly at my localhost (my laptop).
I copied it to the server where I only have SFTP access.
The normal Laravel folder structure is:
project_folder (includes everything, including the public folder)
|_public
In my case, on the server, the folder structure is as follows:
private (includes everything without the public folder)
public_html (includes original publica folder content)
(In this case I had to modify the index.php file, for example: from: require DIR.'/../vendor/autoload.php'; to require DIR.'/../private/vendor/autoload.php';)
I also tried the Kernel.php and the @include version too, locally both worked. But on the server none works.
In the case of the @include version I got the No hint path defined for [cookieConsent].
In the case of the Kernel.php version I did not get error, but the cookie bar did not appear.
Would you have any suggestions as to why it doesn't work? Thank you very much!
EDIT
I solved it differently with the help of js. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions