8.3.1 Symphony error1 user found helpful
I've an issue when duplicating a form in the Formidable Addon. The addon give the following error: Call to a member function isActive() on null
After some searching I found this on Git:https://github.com/symfony/symfony/issues/24934...
I had the same issue, you can find a fix here :https://github.com/symfony/symfony/pull/24952/files...
You can replace /vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php with the file you'll find in the link I provided.
Hope it helps!
I had the same error, though not for the Formidable Addon. I have some code in my page templates (which checks whether a user is logged in) that triggers this error.
Have you flagged this up with the C5 dev team on Github? I think it’s important that they update to the latest version of Symfony for the next release.
When a page is loaded the block sets a cookie value using $session->set. The cookie value is based upon a custom page attribute.
It worked fine before I updated to 8.3.2
Unfortunately the symphony fix didn't work for me however.
See if the combination causes the issue.
I had updated the file in the root concrete folder but the way I do updated the 8.3.2 update is in the updates folder. I'm therefore thinking it should be the file in 8.3.2 concrete folder I should be updating for it to have an effect?
Probably a rookie error. I'll give it a go as soon as I can and report back.
Which symphony branch should I be using? The Master or a specific branch.
Thanks for helping.
This is the version I used:
I could start adding files but wondering if I shouldn't try changing a line or two first?
I assume the C5 documentation is out of date as symfony version 2.5 stopped getting security updates in July 2015
"Symfony components updated to version 3"
Way over my head here!
The symfony version required in composer.json file is 3.* which I think means the latest version 3 available.
Composer file is here
I didn't use the file you had found though as it uses the library PHPUnit which isn't part of C5 as far as I can tell.
Copying files from the symfony 3.4 branch I replaced the following file in the updates/concrete5-8.3.2/concrete/vendor/symfony/http-foundation/Session/Storage folder
in the folder updates/concrete5-8.3.2/concrete/vendor/symfony/http-foundation/Session/Storage/Handler I created the file
and in the same folder I also created the file
Ensuring the files were all owned by www-data this seemed to do the trick.
I hope this is caught in a C5 update as I really have no place messing about in the C5 core and cannot recommend anyone else do this.
Like you, I'm not comfortable hacking the core files. I have done what I can to get this sorted - just hope someone takes notice.
If everyone on this thread could add a confirmation, hopefully it will help get it fixed in the next update.
Good luck with rewriting your block.
Everything I have read on the submission guidelines says that it should be a Bug Report, not a GitHub issue, so I hope you're right :-)
Andrew Embler has closed my GitHub issue - Symfony will be updated in the next release (8.3.3).