Closed fw2 closed 8 years ago
Which Contao Version are you using?
In this case version 3.5.4.
Hm. I am not able to reproduce this. Which version do you have installed? What are the steps to reproduce? Any further thirdparty extension installed?
I have now updated to Contao 3.5.6. I cannot tell you the steps to reproduce the error as I only had them occur on one specific installation of Contao. On that installation they occur as soon as I log in as a member in the frontend. I have many third party extensions installed, but I disabled them all and the error still occured. That's about all the information I can give you, I guess.
Ah perfect. There it is: Logged in FE Member. fixed in abb7dda
Great! Thanks!
I just installed sb-admin on a couple of Contao installations. On one it works fine on the other it causes error messages like this:
I found that this is caused by the instantiation of the Backend User on line 58 of the SbTemplate class:
As soon as I wrap these lines in an if clause to check TL_MODE to only execute this when working in the backend the errors disappear. I don't know if this is the best solution and I also haven't found out what exactly causes the error messages to appear on the one Contao installation only. Could be any combination of extensions I guess, but I disabled all extensions (including core extension, but excluding sb-admin of course) on the problematic installation but that made no difference.
By the way: thanks for the awesome new backend theme! It looks great and I look forward to hopefully use it on as many of my Contao installations as possible.
Arno