Error when using emailOnApproved plugin with PHP 7.4

3 posts by 2 authors in: Forums > CMS Builder
Last Post: May 26   (RSS)

By Dave - May 25

Hi Jerry, 

Can you try just hiding the warnings and see if everything still works?  Just add @ as follows:

  $wasChecked   = intval(!@$oldRecord[$fieldname] && @$_REQUEST[$fieldname]);
  $wasUnchecked = intval(@$oldRecord[$fieldname]  && !@$_REQUEST[$fieldname]);

Let me know if that works for you.

Dave Edis - Senior Developer
interactivetools.com

By gkornbluth - May 26

Hi Dave,

I really appreciate your looking at this.

When I hid the errors, everything seemed to function correctly and no errors popped up when saving the new record, but there's still an error thrown in the error log.

E_WARNING: A non-numeric value encountered
/home4/zcfzmsmy/public_html/jazzonjstreet/cmsAdmin/lib/menus/default/edit_functions.php (line 382)

Thanks,

Jerry

The first CMS Builder reference book is now available on-line!

Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php