Support

Home Forums Event Espresso Premium How to remove File, Function, and Line from error messages

How to remove File, Function, and Line from error messages

Posted: April 6, 2023 at 5:50 am

Viewing 3 reply threads


mbeede@tracom.com

April 6, 2023 at 5:50 am

Greetings – When the “Submit” button is selected on the Event page with a ticket quantity of 0 the error message that displays contains the File, Function, and Line number in small print after the error message. How can I remove this from not only this error, but all errors that might display? Is there an easy way to do this?

Thanks in advance – Mark


Tony

  • Support Staff

April 6, 2023 at 7:22 am

Hi there,

Disable WP_DEBUG on the site and those will be removed.

In your wp-config.php file you’ll have:

define( 'WP_DEBUG', true );

Set that to false:

define( 'WP_DEBUG', false );


mbeede@tracom.com

April 6, 2023 at 7:26 am

Easy, peasey – I didn’t think of that – THANKS!


Tony

  • Support Staff

April 6, 2023 at 7:30 am

You’re most welcome 🙂

Those are useful for troubleshooting so we including them with WP_DEBUG enabled.

Viewing 3 reply threads

The support post ‘How to remove File, Function, and Line from 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