CF6 and php8

Resolve a null parameter error when upgrading ChronoForms to PHP 8.

Overview

The issue occurs because the plugin attempts to fetch a parameter from a null object during the upgrade process.
Ensure the parameter object is properly initialized before calling get methods to prevent the null reference error.

Answered
hc hchc 12 Aug, 2022
I have a form in CF6. I have to switch to php8 soon. I have followed the instructions https://www.chronoengine.com/faqs/76-chronoforms/5335-greyhead.
but now I get the following error message:
0 Call to a member function get() on null
What can I do?
hc hchc 26 Aug, 2022
Answer
The problem was the plugin was fetching $this->_params->get('...', default) but _params was actually null for whatever reason. 
This topic is locked and no more replies can be posted.