I installed sgalinski-cookie-optin with composer on my local docker machine. If no Extension configuration is done after install, the Arrey key
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['sg_cookie_optin']
does not exists. I use TYPO3 11.5.24 and PHP 8.1. I configuration set once then is ok.
For the moment I patched line 62 in sg_cookie_optin/Classes/Service/ExtensionSettingsService.php
$configuration = $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['sg_cookie_optin'] ?? '';
That helps.
Sorry closing was unmeant
We are using the setting set_cookie_for_domain
(main domain) in backend. There are 3 another pages with a subdomain and all have the same cookie domain (main domain) set. If I set the cookie in frontend (cookieoptin opens and I confirm essential cookies) on the main page (with the main domain set in set_cookie_for_domain) then I expect that the cookieoptin window is not shown if I go to one of the other pages with a subdomain from that main domain. But this doesn't working. I have to check the cookieoptin stuff again. On every other page.
The domain value in the cookie (set on those another pages) is correctly set to the main domain with a leading .
.
You can test this live here: https://dgvn.de/
The subdomain pages are:
We are using sg-cookie-optin in version 4.2.9 on TYPO3 10.4.21
Issue occurs after an update from sg-cookie-optin version 3.2.8 and TYPO3 8.7. Before the update everything was working with the extra cookie domain set for all pages.
We are using the setting set_cookie_for_domain
(main domain) in backend. There are 3 another pages with a subdomain and all have the same cookie domain (main domain) set. If I set the cookie in frontend (cookieoptin opens and I confirm essential cookies) on the main page (with the main domain set in set_cookie_for_domain) then I expect that the cookieoptin window is not shown if I go to one of the other pages with a subdomain from that main domain. But this doesn't working. I have to check the cookieoptin stuff again. On every other page.
The domain value in the cookie (set on those another pages) is correctly set to the main domain with a leading .
.
You can test this live here: https://dgvn.de/
The subdomain pages are:
We are using sg-cookie-optin in version 4.2.9 on TYPO3 10.4.21
Issue occurs after an update from sg-cookie-optin version 3.2.8 and TYPO3 8.7. Before the update everything was working with the extra cookie domain set for all pages.
Uh, that was fast answer. Sorry for posting in wrong project.
Thx.
We are using the setting set_cookie_for_domain
(main domain) in backend. There are 3 another pages with a subdomain and all have the same cookie domain (main domain) set. If I set the cookie in frontend (cookieoptin opens and I confirm essential cookies) on the main page (with the main domain set in set_cookie_for_domain) then I expect that the cookieoptin window is not shown if I go to one of the other pages with a subdomain from that main domain. But this doesn't working. I have to check the cookieoptin stuff again. On every other page.
The domain value in the cookie (set on those another pages) is correctly set to the main domain with a leading .
.
You can test this live here: https://dgvn.de/
The subdomain pages are:
We are using sg-cookie-optin in version 4.2.9 on TYPO3 10.4.21
Issue occurs after an update from sg-cookie-optin version 3.2.8 and TYPO3 8.7. Before the update everything was working with the extra cookie domain set for all pages.
Yes, that will work for me. Thx.
I execute the console command in my terminal to create the needed files:
typo3cms sg_cookie_optin:generate_static_files 12345
The files will be generated but in console is an error shown: Error: Undefined class constant 'SUCCESS' in /app/private/typo3conf/ext/sg_cookie_optin/Classes/Command/GenerateStaticFilesCommand.php on line 84
Used version TYPO3 10.4.16 sg_cookie_optin 4.2.3
Hi,
yes you are right ;-) I'm running on 2.10.4 of dbal. I will do the update and I guess this will most likely be done. Thank you.
That solves the issue for me:
Update helhum/typo3-console -> 6.5.0
New Error: PHP Error: Call to undefined method Doctrine\DBAL\Driver\Mysqli\MysqliStatement::fetchOne() in /app/private/typo3conf/ext/sg_cookie_optin/Classes/Command/GenerateStaticFilesCommand.php on line 103
Fix this in method getOriginalRecord
$row = $queryBuilder->select('uid')
->from(StaticFileGenerationService::TABLE_NAME)
->where($queryBuilder->expr()->eq('pid', $siteRootId))
->andWhere($queryBuilder->expr()->eq('l10n_parent', 0))
->setMaxResults(1)
->execute()
->fetch();
$uid = $row['uid'];
Old error with undefined constants is back. Symfony documentation helps https://symfony.com/doc/current/console.html
New in version 5.1:The Command::SUCCESS and Command::FAILURE constants were introduced in Symfony 5.1.
Then I update symfony/console to > 5.1. Now it's working fine.
There was something wrong with my code. Now changed. I had to getting the uid from the fetched array. Maybe there is a better solution to replace that undefined fetchOne() Method.
I execute the console command in my terminal to create the needed files:
typo3cms sg_cookie_optin:generate_static_files 12345
The files will be generated but in console is an error shown: Error: Undefined class constant 'SUCCESS' in /app/private/typo3conf/ext/sg_cookie_optin/Classes/Command/GenerateStaticFilesCommand.php on line 84
Used version TYPO3 10.4.16 sg_cookie_optin 4.2.3