several warnings and errors
-
Hi,
There are several errors and warnings with the Ultimate Member. I use it with PHP 7.4 versions and saw the warnings with Query Monitor.
The next big problem is: when I upgrade the PHP Version to 8.1 (upper than 7.4) the website will be disabled and errors appears specially when I enable the wp-debug. please help me.
-
Post the content of the
.../wp-content/debug.logfile here in the Forum and we can give you the PHP error explanation. For best formatting use the Forum’sCODEformat.There are no
debug.logfile into.../wp-content/folder.
-
This reply was modified 2 years, 3 months ago by
abozorgi80.
-
This reply was modified 2 years, 3 months ago by
abozorgi80.
Look in the
debug.purge.logfile for the PHP error messages.this is the contents of that file:

It’s old data from 2022.
Have you enabled PHP error logging?
Read this guide: “How to enable debug logging”https://docs.ultimatemember.com/article/1751-enable-debug-logging`
Hi @abozorgi80
This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.
Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂
Regards
i have been enabled the debug logging and this is the result in
debug.log
1. Verify that you have set the “Week Starts On” in WP Settings -> General Settings.
2. Try to deactivate the “Smush” plugin to see if there is a conflict with UM.
I have been checked the Week Starts On and then disabled the Smush plugin and at last enabled Query Monitor to check what happens.
This is the screenshot in Edit With Elementor page:

Try to post your Query Monitor screencopy in the “Elementor” plugin support forum and ask for their response about this issue:
ok! and this is php error shown in Query Monitor

Which version of PHP are you using?
php 7.4
You can try this code snippet which will write some tracing results to
.../wp-content/php-errors.logwhich you can post here in the Forum.Each time you display a page at your site there will be test data written to this file like this and the last two lines will probably not be equal at your site:
Server LiteSpeed PHP 7.4.33 sunday_start 6 start_of_week 1 week_start 5 week_start_day 1707151741 2024-02-05 17:01 time integer 1707091200 2024-02-05 01:00 time string 1707091200 2024-02-05 01:00Code snippet:
add_action( 'init', 'mktime_test_um' ); function mktime_test_um() { file_put_contents( WP_CONTENT_DIR . '/php-errors.log', 'Server ' . $_SERVER['SERVER_SOFTWARE'] . ' PHP ' . PHP_VERSION . chr(13), FILE_APPEND ); $sunday_start = wp_date( 'w' ); file_put_contents( WP_CONTENT_DIR . '/php-errors.log', 'sunday_start ' . $sunday_start . chr(13), FILE_APPEND ); $week_start = $sunday_start - absint( get_option( 'start_of_week' ) ); file_put_contents( WP_CONTENT_DIR . '/php-errors.log', 'start_of_week ' . get_option( 'start_of_week' ) . chr(13), FILE_APPEND ); file_put_contents( WP_CONTENT_DIR . '/php-errors.log', 'week_start ' . $week_start . chr(13), FILE_APPEND ); $week_start_day = strtotime( '-' . $week_start . ' days' ); file_put_contents( WP_CONTENT_DIR . '/php-errors.log', 'week_start_day ' . $week_start_day . ' ' . wp_date( 'Y-m-d H:s', $week_start_day ) . chr(13), FILE_APPEND ); file_put_contents( WP_CONTENT_DIR . '/php-errors.log', 'time integer ', FILE_APPEND ); $time = mktime( 0, 0, 0, intval( wp_date( 'm', $week_start_day )), intval( wp_date( 'd', $week_start_day )), intval( wp_date( 'Y', $week_start_day )) ); file_put_contents( WP_CONTENT_DIR . '/php-errors.log', $time . ' ' . wp_date( 'Y-m-d H:s', $time ) . chr(13), FILE_APPEND ); file_put_contents( WP_CONTENT_DIR . '/php-errors.log', 'time string ', FILE_APPEND ); $time = mktime( 0, 0, 0, wp_date( 'm', $week_start_day ), wp_date( 'd', $week_start_day ), wp_date( 'Y', $week_start_day ) ); file_put_contents( WP_CONTENT_DIR . '/php-errors.log', $time . ' ' . wp_date( 'Y-m-d H:s', $time ) . chr(13), FILE_APPEND ); }Install the code snippet into your active theme’s
functions.phpfile
or use the “Code Snippets” plugin.I don’t have this file in my website
-
This reply was modified 2 years, 3 months ago by
The topic ‘several warnings and errors’ is closed to new replies.