-
Notifications
You must be signed in to change notification settings - Fork 0
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
Compatibility contao 3.3.0 ? #2
Comments
Which versions of the mentioned extensions did you use? And could you specify "problems" a bit more in detail? :) |
We installed the newest versions via the extensioncatalog in contao. Firstly it didnt really work out because if we for example hided a part of the website only for germany it was not visible for any country at all, and of course it didnt work the other way around. Secondly it somehow began to cause huge bugs in the backend by logging in with the user, who last changed the geolocation/geoprotection settings. #0 [internal function]: __error(512, 'The deserialize...', '/kunden/88635_7...', 309, Array) Warning: Cannot modify header information - headers already sent by (output started at /kunden/88635_71272/contao2/system/helper/functions.php:70) in system/modules/core/library/Contao/System.php on line 524 #0 [internal function]: __error(2, 'Cannot modify h...', '/kunden/88635_7...', 524, Array) Warning: Cannot modify header information - headers already sent by (output started at /kunden/88635_71272/contao2/system/helper/functions.php:70) in system/modules/core/library/Contao/Template.php on line 261 #0 [internal function]: __error(2, 'Cannot modify h...', '/kunden/88635_7...', 261, Array) Warning: Cannot modify header information - headers already sent by (output started at /kunden/88635_71272/contao2/system/helper/functions.php:70) in system/modules/core/library/Contao/Template.php on line 262 #0 [internal function]: __error(2, 'Cannot modify h...', '/kunden/88635_7...', 262, Array) |
Hi David, |
hi, just took a quick look at it. I can´t reproduce your Problem on my 3.3.5 testinstallation, but I´m pretty sure your problem is not geoprotection, but geolocation. The version available in the ER is a bit outdated and still tries to store the session data as an object - this behaviour is forbidden by the contao core for security reasons and that is exactly the error message you posted. Can you try installing the lates version from github? https://github.com/menatwork/geolocation/ Geolocation also depends on the ajax-extension from terminal42, which is not working for Contao 3.3.X and it´s development is discontinued. So if you need the FE-Modules of this extension you might need to patch the ajax.php... :) |
Do we need composer for the installation or is this done manually? |
You can install the lates version via composer, or just donwload the ZIP-files from github if you want to install it manually. Both ways should work. |
Ok, we installed it manually andinstalled the other extensions with the extension repository. We don't have any failure notices yet. That's good.
Do you have an idea what the problem is? Thank you |
My guess is that the W3C-Localization is not working properly. Geolocation will send the information to the Server unsing AJAX, but the Ajax-Extenion won´t work for Contao 3.3.x. I haven´t tested this yet, but I´m very sure, that this is your Problem. When yo take a look at your browsers console (usually F12 and then klick on "network"), you will see the ajax-request and you will probably get an error as the return value. You should try this: add |
Hmm, interesting. But the website does ask you for tracking your location? This should usually trigger an Ajax-Request to send the gedata to the server... Just add the var_dump() to the file mentioned above and take a look what country is being tracked. |
Huh - I am not really experienced with php. Were exactly shall I add the snippet… Sorry? |
Sry for the late reply, I was out of town fpr the long weekend :). Just add the code snippet This should output the lang-code (stored in $country) which is getting tracked by the geolocation extension. |
We installed Geoprotection+ Geolocation+ Ajax+ httprequestextended+ MultiColumnWizard and everything was looking pretty good, we had the extra settings on every site and article and they were configurable.
But after a short time we were facing problems in the backend, which could be happening because of an incompatibility of Contao 3.3.0 with the current version of Geoprotection. Or could it probably be another extension ,which was already installed by us, blocking the functions of geo-protection/location and causing problems ? Did someone have the same problem and already found the solution ?
thank you for your assistance.
The text was updated successfully, but these errors were encountered: