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:

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
View Replies:
katz515 replied on at Permalink Reply
katz515
We were testing on my client's site, and got the same error.

Exception Occurred: /var/www/html/XXXXXXXX/concrete/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:290 Call to a member function isActive() on null (1)


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.
katz515 replied on at Permalink Reply
katz515
BTW, we've tested with 8.3.2.
So Form Plus DOES NOT work on concrete5 8.3.2.
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
I can verify this. The block dialog opens, but when you try to add it to the page, nothing happens. Using 8.3.2.
BlueFractals replied on at Permalink Reply
BlueFractals
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...
katz515 replied on at Permalink Reply
katz515
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.
BlueFractals replied on at Permalink Reply
BlueFractals
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.
katz515 replied on at Permalink Reply
katz515
@BlueFractals Were you able to fix for 8.3.x?

OK, glad that you received the notification.
BlueFractals replied on at Permalink Reply
BlueFractals
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.
katz515 replied on at Permalink Reply
katz515
@BlueFractals

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.
BlueFractals replied on at Permalink Reply
BlueFractals
Sorry couldn't do this earlier. I've just released a new version.
admin replied on at Permalink Reply
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.
admin replied on at Permalink Reply
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.
admin replied on at Permalink Reply
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.
admin replied on at Permalink Reply
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.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.1
Version Installed - 8.3.1
Database Version - 20171218000000

# concrete5 Packages
Form Plus (2.3.6), SSL Redirect Configuration (0.9.2)

# concrete5 Overrides
blocks/form_plus/templates/custom_form/view.php, blocks/form_plus/templates/custom_form/view.css, blocks/form_plus/templates/custom_form/controller.php, blocks/form_plus/templates/custom_form, blocks/form_plus/templates, blocks/form_plus, blocks/autonav/templates/breadcrumb_self_scroll/view.php, blocks/autonav/templates/breadcrumb_self_scroll, blocks/autonav/templates/with_icons/view.php, blocks/autonav/templates/with_icons/view.css, blocks/autonav/templates/with_icons, blocks/autonav/templates/with_icons_mobile/view.php, blocks/autonav/templates/with_icons_mobile/view.css, blocks/autonav/templates/with_icons_mobile, blocks/autonav/templates, blocks/autonav, mail/form_plus_notify_sender_template.php, themes/pnb_basic/thumbnail.png, themes/pnb_basic/css/less/media-queries.less, themes/pnb_basic/css/less/media-queries.css, themes/pnb_basic/css/less/main.less, themes/pnb_basic/css/less/import.less, themes/pnb_basic/css/less/reset.less, themes/pnb_basic/css/less, themes/pnb_basic/css/bootstrap-modified.css, themes/pnb_basic/css/import.css, themes/pnb_basic/css, themes/pnb_basic/images/mens-dier.jpeg, themes/pnb_basic/images/logo_white.png, themes/pnb_basic/images/logo_purple.png, themes/pnb_basic/images/mens.jpeg, themes/pnb_basic/images/hond.jpg, themes/pnb_basic/images/favicon.png, themes/pnb_basic/images/mens-dier.jpg, themes/pnb_basic/images/bismarck.jpeg, themes/pnb_basic/images/bismarck.jpg, themes/pnb_basic/images/background.jpg, themes/pnb_basic/images/karin-scotty.JPG, themes/pnb_basic/images/logo-white.png, themes/pnb_basic/images/mens.jpg, themes/pnb_basic/images, themes/pnb_basic/default.php, themes/pnb_basic/fonts/helvetica-neue.ttf, themes/pnb_basic/fonts, themes/pnb_basic/elements/footer.php, themes/pnb_basic/elements/header.php, themes/pnb_basic/elements/header_index.php, themes/pnb_basic/elements/footer_bottom.php, themes/pnb_basic/elements/header_top.php, themes/pnb_basic/elements/footer_index.php, themes/pnb_basic/elements, themes/pnb_basic/index.php, themes/pnb_basic/js/main.js, themes/pnb_basic/js/jquery.backstretch.js, themes/pnb_basic/js, themes/pnb_basic/page_theme.php, themes/pnb_basic

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
litespeed

# PHP Version
7.0.26

# PHP Extensions
bcmath, bz2, calendar, Core, ctype, curl, date, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, ionCube Loader, json, libxml, litespeed, mbstring, mcrypt, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.