Call to a member function isActive() on null after upgrade to 8.3.1
Permalink Browser Info Environment
I've upgraded concrete from 8.1 to 8.3.1 and now the page where Form Plus is integrated gives error:
Tested it by creating a new page and adding Form Plus, gives the same error when trying to view it after publication. Can't access the Form Plus details in extension management and it gives the following error:
Call to a member function isActive() on null
Tested it by creating a new page and adding Form Plus, gives the same error when trying to view it after publication. Can't access the Form Plus details in extension management and it gives the following error:
An exception occurred while executing 'SELECT t0.glID AS glID_1, t0.glHandle AS glHandle_2, t0.glName AS glName_3, t0.glDescription AS glDescription_4, t0.glConfiguration AS glConfiguration_5, t0.glActive AS glActive_6, t0.glPackage AS glPackage_7 FROM Geolocators t0 WHERE t0.glPackage = ?' with params [2]: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'wwwdeklu_highfivehealing.Geolocators' doesn't exist
Type: | Ticket |
---|---|
Status: | Archived |
BTW, we've tested with 8.3.2.
So Form Plus DOES NOT work on concrete5 8.3.2.
So Form Plus DOES NOT work on concrete5 8.3.2.
I can verify this. The block dialog opens, but when you try to add it to the page, nothing happens. Using 8.3.2.
Looks like this is currently an issue on 8.3.0, 8.3.1 and 8.3.2. See Katz's suggestion above for a quick fix. If you need an updated NativeSessionStorage.php file, I'm happy to send it to you.
They'll be updating Symphony on 8.3.3:https://github.com/concrete5/concrete5/issues/6381...
They'll be updating Symphony on 8.3.3:https://github.com/concrete5/concrete5/issues/6381...
You may want to consider updating your add-on compatibility that it doesn't work with 8.3.1 & 8.3.2. OR come up with the solution.
For some reason, I didn't get any notification for this ticket from Concrete5. Just got a notification email after Katz's reponse. I'll look into it. Thanks Katz for your response.
@BlueFractals Were you able to fix for 8.3.x?
OK, glad that you received the notification.
OK, glad that you received the notification.
Sorry I haven't had a chance to go through this in detail. I thought I'd just leave it as is for now, as this is a Symphony issue that can be corrected by tweaking the core Symphony file (like you've suggested). Anyway this issue will be fixed in the next C5 version with an updated Symphony file.
@BlueFractals
OK.
We found a problem (thanks to @biplobice)
You should not use
Use this instead
Update block's controller's and view.php. It should work.
Can you confirm if you can include this on your next version?
I want to avoid overriding controller.php as much as possible for package updates.
OK.
We found a problem (thanks to @biplobice)
You should not use
$session = new SymfonySession();
Use this instead
$session = Core::make('app')->make('session');
Update block's controller's and view.php. It should work.
Can you confirm if you can include this on your next version?
I want to avoid overriding controller.php as much as possible for package updates.
Sorry couldn't do this earlier. I've just released a new version.
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
This is due to the Symfony error
https://github.com/symfony/symfony/issues/24934...
If you apply the below change to your concrete5 Symphony file, it will be likely to solve the problem.
https://github.com/symfony/symfony/pull/24952/files...
The location of the file is at
/concrete/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php
If you don't know what to do, wait for next version of concrete5 to arrive.
concrete5 on GitHub already merged the changes.