Fix: Non-numeric value in class-cron.php
-
Hello,
After updating to the latest version (2.6.7 -> 2.8.4), I got the following warnings:
Warning: A non-numeric value encountered in /.../ultimate-member/includes/core/class-cron.php on line 83 Warning: mktime() expects parameter 4 to be int, string given in /.../ultimate-member/includes/core/class-cron.php on line 85
Now this is due to the fact that the wp_date() function was returning a Persian number (? (5) for example) and wasn’t recognized as an integer, but rather as a string. This can be fixed by mapping the wp_date() outputs to English numbers.
Thanks.
- The topic ‘Fix: Non-numeric value in class-cron.php’ is closed to new replies.