Undefined array key | WordPress.org

[ad_1]

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 ) {

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!

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.

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

a nice review is always welcome

Thanks very much – reviewed and very happy!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer