Call to a member function getFormID() on null

Permalink Browser Info Environment
We've been using Formidable Lite on one of our sites for quite a long time,
but now, if we want to add a new form, it displays this error on Save:
"Call to a member function getFormID() on null"
All our folder permissions are correct.

Even if we uninstall everything, and delete all our forms, and then install the Pro version, we still get this same error.
What might this be?

Type: Discussion
Status: Resolved
jirosworld
View Replies:
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

Make sure to upgrade the addon!
And clear your c5 cache and your browser cache.

Best,

Corretje
dexterweb replied on at Permalink Reply
dexterweb
Hi Corretje,

Thanks for your quick response.
Unfortunately we're still facing the same issue:
Message:
Error
Call to a member function getFormID() on null


highlight
if($f->getFormID()) $disabled = false;


Full error
/var/www/vhosts/sasma.ability.nl/httpdocs/packages/formidable_full/elements/dashboard/form/nav.php
<?php 
defined('C5_EXECUTE') or die("Access Denied.");
$c = Page::getCurrentPage();
$disabled = true;
if($f->getFormID()) $disabled = false;
$token = Core::make('token')->generate('formidable_preview');
?>
<div class="ccm-dashboard-header-buttons btn-group">
    <?php  if (!$disabled) { ?>    
        <a href="<?php  echo URL::to('/formidable/dialog/dashboard/forms/preview'); ?>?formID=<?php  echo $f->formID; ?>&ccm_token=<?php  echo $token; ?>" class="btn btn-default dialog-launch" dialog-title="<?php  echo t('Preview Form'); ?>" dialog-width="900" dialog-height="600" dialog-modal="true"><i class="fa fa-eye"></i> <?php  echo t('Preview') ?></a>
        <a href="<?php  echo URL::to('/dashboard/formidable/results/'); ?>?formID=<?php  echo $f->formID; ?>" class="btn btn-default" ><i class="fa fa-list"></i> <?php  echo t('Results') ?></a>
    <?php  } ?>
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

Hmmm... Could you send me C5-logindetails and FTP-logindetails?
I need to see what is happening. Please send them to wim@dewebmakers.nl

I'll take a look asap.

Best,

Corretje
jirosworld replied on at Permalink Reply
jirosworld
For others out there reading this: the problem got solved by running automated job "Index Search Engine - All"
DeWebmakers replied on at Permalink Reply
DeWebmakers
Thanx!

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.3
Version Installed - 8.4.3
Database Version - 20180716000000

# concrete5 Packages
Block Designer (2.1.2), Formidable (Lite Version) (1.1.4), Open Graph Tags Lite (2.1.3), Page List+ (2.0.0)

# concrete5 Overrides
blocks/autonav/templates/breadcrumb.php, blocks/autonav/templates/footer_nav.php, blocks/autonav/templates/footer_nav_mobile.php, blocks/autonav/templates/main_nav.php, blocks/autonav/templates/main_nav_mobiel.php, blocks/autonav/templates/secondary_nav.php, blocks/autonav/templates, blocks/autonav, blocks/form/templates/fancy-2.php, blocks/form/templates/fancy-3.php, blocks/form/templates/fancy.php, blocks/form/templates, blocks/form, blocks/formidable/templates/inline/view.php, blocks/formidable/templates/inline, blocks/formidable/templates, blocks/formidable/view.php, blocks/formidable, blocks/home_block/add.php, blocks/home_block/composer.php, blocks/home_block/config.json, blocks/home_block/controller.php, blocks/home_block/db.xml, blocks/home_block/edit.php, blocks/home_block/form.php, blocks/home_block/icon.png, blocks/home_block/view.php, blocks/home_block, blocks/inquiry/add.php, blocks/inquiry/composer.php, blocks/inquiry/config.json, blocks/inquiry/controller.php, blocks/inquiry/db.xml, blocks/inquiry/edit.php, blocks/inquiry/form.php, blocks/inquiry/icon.png, blocks/inquiry/view.php, blocks/inquiry, blocks/packaging_option/add.php, blocks/packaging_option/controller.php, blocks/packaging_option/db.xml, blocks/packaging_option/edit.php, blocks/packaging_option/icon.png, blocks/packaging_option/view.php, blocks/packaging_option, blocks/page_list/templates/blog_list.php, blocks/page_list/templates/events_block_rows.php, blocks/page_list/templates/news_block.php, blocks/page_list/templates/news_block_rows.php, blocks/page_list/templates, blocks/page_list/view.css, blocks/page_list, blocks/page_list_plus/templates/col-1.php, blocks/page_list_plus/templates/col-2.php, blocks/page_list_plus/templates/col-3.php, blocks/page_list_plus/templates/related-blogs.php, blocks/page_list_plus/templates, blocks/page_list_plus, blocks/problog_list/templates/sasma.php, blocks/problog_list/templates, blocks/problog_list, blocks/search/templates/blog_search.php, blocks/search/templates, blocks/search/view.php, blocks/search, blocks/stats_sasma/add.php, blocks/stats_sasma/controller.php, blocks/stats_sasma/db.xml, blocks/stats_sasma/edit.php, blocks/stats_sasma/icon.png, blocks/stats_sasma/view.php, blocks/stats_sasma, blocks/switch_language/templates/flags/view.css, blocks/switch_language/templates/flags/view.php, blocks/switch_language/templates/flags, blocks/switch_language/templates/flags_set_default/view.php, blocks/switch_language/templates/flags_set_default, blocks/switch_language/templates, blocks/switch_language/view.php, blocks/switch_language, blocks/video/view.php, blocks/video, themes/sasma/css/Decompressed main.css, themes/sasma/css/edit.css, themes/sasma/css/main.css, themes/sasma/css/user.css, themes/sasma/css, themes/sasma/default.php, themes/sasma/elements/footer.php, themes/sasma/elements/header.php, themes/sasma/elements, themes/sasma/follow.php, themes/sasma/follow_3.php, themes/sasma/follow_3_9.php, themes/sasma/fonts/ionicons.eot, themes/sasma/fonts/ionicons.svg, themes/sasma/fonts/ionicons.ttf, themes/sasma/fonts/ionicons.woff, themes/sasma/fonts/ProximaNova-Bold.eot, themes/sasma/fonts/ProximaNova-Bold.svg, themes/sasma/fonts/ProximaNova-Bold.ttf, themes/sasma/fonts/ProximaNova-Bold.woff, themes/sasma/fonts/ProximaNova-Light.eot, themes/sasma/fonts/ProximaNova-Light.otf, themes/sasma/fonts/ProximaNova-Light.svg, themes/sasma/fonts/ProximaNova-Light.ttf, themes/sasma/fonts/ProximaNova-Light.woff, themes/sasma/fonts/ProximaNova-Regular.eot, themes/sasma/fonts/ProximaNova-Regular.otf, themes/sasma/fonts/ProximaNova-Regular.svg, themes/sasma/fonts/ProximaNova-Regular.ttf, themes/sasma/fonts/ProximaNova-Regular.woff, themes/sasma/fonts/ProximaNova-Semibold.eot, themes/sasma/fonts/ProximaNova-Semibold.otf, themes/sasma/fonts/ProximaNova-Semibold.svg, themes/sasma/fonts/ProximaNova-Semibold.ttf, themes/sasma/fonts/ProximaNova-Semibold.woff, themes/sasma/fonts, themes/sasma/home.php, themes/sasma/img/bg-overlay.jpg, themes/sasma/img/bg-sidebar.jpg, themes/sasma/img/close.ico, themes/sasma/img/close_white.png, themes/sasma/img/close_white.svg, themes/sasma/img/close_white_small.png, themes/sasma/img/header-img-1.jpg, themes/sasma/img/header-img.jpg, themes/sasma/img/img-craft.jpg, themes/sasma/img/img-food.jpg, themes/sasma/img/img-fragrance.jpg, themes/sasma/img/img-liquor.jpg, themes/sasma/img/img-medical.jpg, themes/sasma/img/img-misc.jpg, themes/sasma/img/img-ready-to-bottle.jpg, themes/sasma/img/img-whiskey.jpg, themes/sasma/img/movie.mp4, themes/sasma/img/packaging-Cans.png, themes/sasma/img/packaging-Drums-steel-coated.png, themes/sasma/img/packaging-Drums.png, themes/sasma/img/packaging-IBC.png, themes/sasma/img/packaging-icons.psd, themes/sasma/img/packaging-ISO-Tanks.png, themes/sasma/img/Sasma-logo-blue.png, themes/sasma/img/Sasma-logo-blue.svg, themes/sasma/img/Sasma-logo-white.png, themes/sasma/img/Sasma-logo-white.svg, themes/sasma/img, themes/sasma/js/bootstrap.min.js, themes/sasma/js/Decompressed main.js, themes/sasma/js/main.js, themes/sasma/js/notEdit.js, themes/sasma/js/vendor/jquery-1.11.0.min.js, themes/sasma/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js, themes/sasma/js/vendor/pluggies.js, themes/sasma/js/vendor/popup.js, themes/sasma/js/vendor, themes/sasma/js, themes/sasma/page_theme.php, themes/sasma/post.php, themes/sasma/product.php, themes/sasma/product_1.php, themes/sasma/right_sidebar.php, themes/sasma/right_sidebar_list.php, themes/sasma/thumbnail.png, themes/sasma/view.php, themes/sasma

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - In all cases.
Full Page Cache Lifetime - Only when manually removed or the cache is cleared.

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
7.0.32

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, mysqli, mysqlnd, odbc, openssl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, redis, Reflection, session, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, 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 - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
ldap.max_links - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 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 have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.