• Resolved vr250

    (@vr250)


    Hi,

    Using the plugin on a site with php 7.4 I am getting the following errors. It appears to be related php 7.4. Would it be possible to get the plugin updated to work with php 7.4.

    Trying to access array offset on value of type bool in [.removed.]/wp-content/plugins/cf7-styler-for-divi/cf7-styler.php on line 129

    Trying to access array offset on value of type bool in [.removed.]/wp-content/plugins/cf7-styler-for-divi/cf7-styler.php on line 119

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter vr250

    (@vr250)

    Thank you for creating the plugin, it is very helpful. Digging into this a bit, I believe the issue is in this code on lines 119 & 129:
    if ( 'on' === $options['grid'] ) {

    There are numerous threads about this being an issue when people move to PHP 7.4. Would it possible to get an updated version of the plugin that resolves this notice? It is filling up log files.

    Thanks!

    Thread Starter vr250

    (@vr250)

    After some more research I think this code fixes the issue, can you please validate this is correct:
    if ( isset($options['grid']) && 'on' === $options['grid'] ) {

    @vr250

    We are very sorry for the inconvenience. I will check that issue and fix it.

    Thanks for the reporting bugs and for using our plugin.

    Stay Tuned.

    Team DiviPeople.

    Thread Starter vr250

    (@vr250)

    Several releases have occurred since I submitted this issue and what I believe is the fix. But it has not been changed in the updated versions of the plug-in. Without this update if ( isset($options['grid']) && 'on' === $options['grid'] ) – now on lines 123 & 133 – I continue to get the error “Trying to access array offset on value of type bool in[…]” with PHP 7.4.

    Is this proposed fix not correct/viable? If so could an alternative fix be implemented or if it is an acceptable fix, could it be put in for version 1.1.11?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘access array offset on value of type bool’ is closed to new replies.