Support

Home Forums Event Espresso Premium PHP error message

PHP error message

Posted: March 18, 2022 at 11:16 am

Viewing 3 reply threads


make_webmaster

March 18, 2022 at 11:16 am

I am seeing this error in my PHP error log:
[18-Mar-2022 17:13:28 UTC] PHP Warning: Use of undefined constant EE_FRONT_AJAX – assumed ‘EE_FRONT_AJAX’ (this will throw an Error in a future version of PHP) in /****/****/****/*****/wp-content/plugins/eea-wp-user-integration/EED_WP_Users_SPCO.module.php on line 121


Tony

  • Support Staff

March 21, 2022 at 4:46 am

Hi there,

Thanks for the heads up.

The next update for the WP user integration add-on will have a fix for this.


make_webmaster

March 21, 2022 at 8:46 am

Is there a fix I can apply to the code before this happens? This is filling up my error log and is making it difficult to find valid errors.


Tony

  • Support Staff

March 21, 2022 at 9:23 am

Sure, in /eea-wp-user-integration/EED_WP_Users_SPCO.module.php

Line 121 will be something like:

if( EE_FRONT_AJAX) {

Change that to be:

if (defined('EE_FRONT_AJAX') && EE_FRONT_AJAX) {

That should prevent the warning.

Viewing 3 reply threads

The support post ‘PHP error message’ 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