Support

Home Forums Event Espresso Premium Help with Error Messages

Help with Error Messages

Posted: February 24, 2015 at 2:42 am


BecsMcNeill

February 24, 2015 at 2:42 am

Hi all

I am completely new to event espresso (which I think is great btw), but having some issues with error messages coming up on the WordPress site (4.1.1) on which I have installed EE3 (3.1.36.6.P Version 4.1.1). I’m not a programmer or do I know any complicated code so please talk to be like I’m a clever 12yr old!

I have the following error messages – does anyone have any advice on getting them sorted?

Notice: Use of undefined constant WPLANG – assumed ‘WPLANG’ in /home/activeb1/public_html/wp-content/plugins/event-espresso/espresso.php on line 285

Notice: Use of undefined constant WPLANG – assumed ‘WPLANG’ in /home/activeb1/public_html/wp-content/plugins/event-espresso/espresso.php on line 308

Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home/activeb1/public_html/wp-content/plugins/event-espresso/espresso.php:285) in /home/activeb1/public_html/wp-content/plugins/event-espresso/espresso.php on line 55

Notice: wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.) in /home/activeb1/public_html/wp-includes/functions.php on line 3547

Notice: wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.) in /home/activeb1/public_html/wp-includes/functions.php on line 3547

The site is http://www.activebabycompany.com

Thanks in advance
Becs


Tony

  • Support Staff

February 24, 2015 at 3:03 am

Hi Becs,

All of those messages can be removed from the site by disabling WP_Debug which is a constant within your wp-config.php file that tells your site to display error messages.

Great for debugging, not so great in a live environment.

To explain the errors a little:

Notice: Use of undefined constant WPLANG

Is another constant within wp-config.php that is no longer used (it is for setting the language of your site)

Warning: session_start(): Cannot send session cache limiter

Is because the errors are being sent before the page.

Notice: wpdb::prepare was called incorrectly.

Is a notice advising a function within WP is being used incorrectly (the function changed so any plugins using that function display the error unless doing it a certain way)

So to fix, you’ll need FTP accesss to your site, or access to cPanel file manager. Do you hae either of those for your site?


BecsMcNeill

February 25, 2015 at 5:37 am

Hi Tony

Thanks for your help. We have used the debug feature to stop the errors from displaying, but I’m concerned that there is something going on that needs rectifying. Also the following error is showing in the booking box and doesn’t hide when using the debug feature:

Warning: Illegal string offset ‘member_only_all’ in /home/activeb1/public_html/wp-content/plugins/event-espresso/templates/event_list_display.php on line 145

I do have acces to the FTP and control panel of the site, but have no idea what to do to sort out the errors. Is it a problem with EE3 or conflicts with other plugins that are likely to be the cause?

Becs


Dean

February 25, 2015 at 6:05 am

Hi Becs,

The notices are just information, they will not stop the plugin from working or cause any problems so long as debug is off.

We have a ticket to fix the Illegal string offset message.

In the short term you could use this in your wp-config.php file:

define(‘WP_DEBUG’, false);
@ini_set(‘display_errors’, 0);
if (WP_DEBUG) {
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, false);
}

The support post ‘Help with Error Messages’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso