• Hi, I use:
    PHP 8
    – Elementor 3.2.5
    – Elementor Pro 3.3.1
    – Pods – Custom Content Types and Fields 2.7.28

    I create a custom post type with a custom post field (text).
    I create a Loop Template (For Custom Skin) by your plugin:
    Add Heading Text with Dynamic Tags is a “Pods” Field (Text Field).

    I got the Warning:

    PHP Warning: Trying to access array offset on value of type bool in /home/my-domain.com/public_html/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-text.php on line 20

    Please Check. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author dudaster

    (@dudaster)

    Please let me know if it fixed with the latest update!

    Thread Starter datverse

    (@datverse)

    Hi, the bug still have.
    I use:
    – PHP 8.0.9
    – Elementor 3.4.3
    – Elementor Pro 3.4.0
    – Pods – Custom Content Types and Fields 2.7.30

    I use Pods create Custom Post Type
    Use your plugin (latest version) create Loop Tempalate for the new Custom Post Type.
    Use Elementor create Post Widget with new Skin by Loop Template

    ==> I got the Warning:
    PHP Warning: Trying to access array offset on value of type bool in /home/my-domain.com/public_html/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-text.php on line 20

    If I go to source code of Elementor Pro: elementor-pro/modules/dynamic-tags/pods/tags/pods-text.php => Edit (on line 20): $field = $field_data[‘field’]; to $field = $field_data[‘field’] ?? 0;
    ==> The issue is gone.

    Please check. Thanks

    Thread Starter datverse

    (@datverse)

    Hi, the trick I use to hotfix this issue is:

    I go to source code of Elementor Pro: elementor-pro/modules/dynamic-tags/pods/tags/pods-text.php

    => Edit (on line 20): $field = $field_data[‘field’]; to $field = $field_data[‘field’] ?? ”;

    Thanks

    does this mean that your plugin is not yet php 8.0 functioning?

    Hello @dudaster ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP 8 – PHP Warning: Trying to access array offset on value of type bool in’ is closed to new replies.