Support

Home Forums Event Espresso Premium Warning at event registration page.

Warning at event registration page.

Posted: February 17, 2014 at 7:29 pm

Viewing 3 reply threads


tech rana

February 17, 2014 at 7:29 pm

I’m getting error like this
Warning: Illegal string offset ‘member_only_all’ in /wp-content/plugins/event-espresso/templates/event_list_display.php on line 145
you can check it here
http://ranabayarea.org/event-registration/
help me out.


Lorenzo Orlando Caum

  • Support Staff

February 17, 2014 at 8:30 pm

Hello!

Thanks for getting in touch.

Please add the following macro towards the middle of your wp-config.php file.

It should replace any existing WordPress debugging macros.

define('WP_DEBUG_DISPLAY', FALSE);
@ini_set('display_errors', FALSE);

Please let me know if this helps with the PHP warning.


Lorenzo


tech rana

February 26, 2014 at 10:59 pm

Now error is coming like this
Warning: Illegal string offset ‘member_only_all’ in /wp-content/plugins/event-espresso/templates/event_list_display.php on line 145


Tony

  • Support Staff

February 27, 2014 at 3:31 am

Hi tech rana,

To explain a little, the server currently has ‘display_errors’ set to true and is likely running a PHP version > 5.3.

The code Lorenzo posted should have set that to false and disabled the error output.

You could use something like this:

@ini_set( 'log_errors', 'On' );
@ini_set( 'display_errors', 'Off' );
@ini_set( 'error_reporting', 4339 ); // Only log errors you will want to know about.
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', false );
define( 'WP_DEBUG_DISPLAY', false );

That should remove all warnings/notices but should still log any serious issues.

Viewing 3 reply threads

The support post ‘Warning at event registration page.’ 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