• Resolved mflc

    (@mflc)


    The site is being overwhelmed with the following warning:

    Warning: Undefined array key "title"

    I tracked the source of the problem to line 217 of /wp-content/plugins/geodirectory/vendor/ayecode/wp-super-duper/wp-super-duper.php:

    $param['heading'] = $val['title'];

    The problem is solved by changing this line to:

    $param['heading'] = isset( $val['title'] ) ? $val['title'] : '';

    Using a debugger I discovered that a widget named GD > POST FEATURES (widget_gd_post_features) is the source of the problem – sure enough it doesn’t have a ‘title’ field in the $val variable. Bizarrely, there is NO widget by this name that I could find in the GeoDirectory documentation, and further this widget is not laid out on the page handling the custom post type we set up. I have no clue why this widget is being called (other than it is an internal widget being used internally by GeoDirectory as some kind of helper widget, but not really usable as a conventional widget to be laid out onto a page??), or how to add a title attribute to it (which is a cleaner solution than modifying the plugin code).

    The PROBLEM is that it’s not clear why these warning are being generated in the first place and I don’t feel comfortable applying the code fix to the plugin (which will just be overwritten on the next plugin update anyway) without understanding what is causing the problem in the first place.

    ANY HELP is appreciated in advance

    Michael

    The Site is configured as such:

    • WordPress 6.3
    • Avada 3.11.2
    • GeoDirectory 2.3.18
    • GeoDirectory Advanced Search Filters 2.3.2
    • GeoDirectory Custom Post Types 2.3.2
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stiofan

    (@stiofansisland)

    Hi @mflc,

    Thanks for the report. This seems to be Avada specific, i have added a fix which will be in the next release. You can add your suggested fix to the code for now ??

    Thanks,

    Stiofan

    Thread Starter mflc

    (@mflc)

    Hi Stiofan,

    Thank you for the very quick reply ??

    Do you have an rough guesstimate of when you think the new release will be available?

    Thanks,

    Michael

    Plugin Author Paolo

    (@paoltaia)

    most likely early next week.

    Thanks for your patience,

    Thread Starter mflc

    (@mflc)

    Awesome! Thank you!

    Michael

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Weird Warning Generated By Non-Existent GD Widget’ is closed to new replies.