• Resolved daveskim

    (@daveskim)


    Hi there,

    I’m getting this error being displayed on each event listed:

    Warning: Undefined array key “show_end_time” in /wp-content/plugins/widget-for-eventbrite-api/includes/class-utilities.php on line 287

    Debugging is off and nothing in the browser console.

    Can you help?

    The page I need help with: [log in to see the link]

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

    (@alanfuller)

    Hi,

    Sorry you are experiencing this however warnings not errors.

    We will of course look at this, but it is not a critical issue of any consequence.

    A production site should be set to not display warnings and notices.

    Notices and Warnings are to help developers clean up code issues e.g. the Notice might be that a function is deprecated in a future release. Or a Warning may be that a variable has not been set before being used.

    In general – on a production site – you should have Notices and Warning set not to display.

    This is easy to do, you can edit your wp-config.php file and set

    ini_set('display_errors','Off');
    ini_set('error_reporting', E_ALL );
    define('WP_DEBUG', false);
    define('WP_DEBUG_DISPLAY', false);

    Or if that is too technical – just raise a support ticket to your host to ask them to suppress PHP Notices and Warnings.

    If you wish to fix this without setting up your display warnings

    then edit
    /wp-content/plugins/widget-for-eventbrite-api/includes/class-utilities.php on line 287

    replace
    if ( false == $args || $args['show_end_time'] ) {
    with
    if ( false == $args ) {

    Thread Starter daveskim

    (@daveskim)

    Thanks very much for getting back so quickly.

    Oddly I do have debug set to false – not sure why this was showing on page and not in the browser console.

    I have edited the PHP file which works great. Will this be written into the next update or will I need to look out for this if the plugin is updated?

    Thanks again!

    Plugin Author Alan Fuller

    (@alanfuller)

    Yes I have already put that in the development branch, so next release will be fine.

    It is not just debug mode, but possible a PHP setting that displays warniongs
    hence

    ini_set('display_errors','Off');
    ini_set('error_reporting', E_ALL )

    If that doesn’t work, ask your host, because unless it is a test system displaying, rather than logging warnings is not considered a good idea.

    Plugin Author Alan Fuller

    (@alanfuller)

    p.s. I like what you have done with your site.

    a nice review is always welcome https://www.ads-software.com/support/plugin/widget-for-eventbrite-api/reviews/?view=all

    Thread Starter daveskim

    (@daveskim)

    Thanks very much – reviewed and very happy!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Undefined array key’ is closed to new replies.