Title: several warnings and errors
Last modified: January 31, 2024

---

# several warnings and errors

 *  Resolved [abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * (@abozorgi80)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/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.

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/several-warnings-and-errors/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/several-warnings-and-errors/page/2/?output_format=md)

 *  [missveronica](https://wordpress.org/support/users/missveronicatv/)
 * (@missveronicatv)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17387723)
 * [@abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * Post the content of the `.../wp-content/debug.log` file here in the Forum and
   we can give you the PHP error explanation. For best formatting use the Forum’s`
   CODE` format.
 *  Thread Starter [abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * (@abozorgi80)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17390096)
 * There are no `debug.log ` file into `.../wp-content/` folder.
 * ![](https://i0.wp.com/i.postimg.cc/3x6bRY3m/Screenshot-2024-02-01-135314.png?
   ssl=1)
    -  This reply was modified 2 years, 3 months ago by [abozorgi80](https://wordpress.org/support/users/abozorgi80/).
    -  This reply was modified 2 years, 3 months ago by [abozorgi80](https://wordpress.org/support/users/abozorgi80/).
 *  [missveronica](https://wordpress.org/support/users/missveronicatv/)
 * (@missveronicatv)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17390206)
 * [@abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * Look in the `debug.purge.log` file for the PHP error messages.
 *  Thread Starter [abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * (@abozorgi80)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17390653)
 * this is the contents of that file:
 * ![](https://i0.wp.com/i.postimg.cc/y6J5nN7S/Screenshot-2024-02-01-164544.png?
   ssl=1)
 *  [missveronica](https://wordpress.org/support/users/missveronicatv/)
 * (@missveronicatv)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17390901)
 * [@abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * 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](https://docs.ultimatemember.com/article/1751-enable-debug-logging)`
 *  Plugin Support [andrewshu](https://wordpress.org/support/users/andrewshu/)
 * (@andrewshu)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17401781)
 * Hi [@abozorgi80](https://wordpress.org/support/users/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
 *  Thread Starter [abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * (@abozorgi80)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17408447)
 * i have been enabled the debug logging and this is the result in `debug.log`
 * ![](https://i0.wp.com/i.postimg.cc/WbnsRxPz/Screenshot-2024-02-08-123523.png?
   ssl=1)
 *  [missveronica](https://wordpress.org/support/users/missveronicatv/)
 * (@missveronicatv)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17409092)
 * [@abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * 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.
 *  Thread Starter [abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * (@abozorgi80)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17411895)
 * 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:
 * ![](https://i0.wp.com/i.postimg.cc/y8Rtm19d/Screenshot-2024-02-09-125918.png?
   ssl=1)
 *  [missveronica](https://wordpress.org/support/users/missveronicatv/)
 * (@missveronicatv)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17412302)
 * [@abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * Try to post your Query Monitor screencopy in the “Elementor” plugin support forum
   and ask for their response about this issue:
 * [https://wordpress.org/support/plugin/elementor/](https://wordpress.org/support/plugin/elementor/)
 *  Thread Starter [abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * (@abozorgi80)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17414766)
 * ok! and this is php error shown in Query Monitor
 * ![](https://i0.wp.com/i.postimg.cc/TP3VkDk2/Screenshot-2024-02-10-170800.png?
   ssl=1)
 *  [missveronica](https://wordpress.org/support/users/missveronicatv/)
 * (@missveronicatv)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17414825)
 * [@abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * Which version of PHP are you using?
 *  Thread Starter [abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * (@abozorgi80)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17414843)
 * php 7.4
 *  [missveronica](https://wordpress.org/support/users/missveronicatv/)
 * (@missveronicatv)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/#post-17415017)
 * [@abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * You can try this code snippet which will write some tracing results to
    `.../
   wp-content/php-errors.log` which 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:00
       ```
   
 * Code 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.php` file
    or use
   the “Code Snippets” plugin.
 * [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)
 *  Thread Starter [abozorgi80](https://wordpress.org/support/users/abozorgi80/)
 * (@abozorgi80)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/page/2/#post-17415742)
 * I don’t have this file in my website

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/several-warnings-and-errors/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/several-warnings-and-errors/page/2/?output_format=md)

The topic ‘several warnings and errors’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

## Tags

 * [php 8.1](https://wordpress.org/support/topic-tag/php-8-1/)
 * [php7.4](https://wordpress.org/support/topic-tag/php7-4/)

 * 22 replies
 * 3 participants
 * Last reply from: [missveronica](https://wordpress.org/support/users/missveronicatv/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/several-warnings-and-errors/page/2/#post-17416139)
 * Status: resolved