• Resolved lillylark

    (@lillylark)


    What triggered this warning message in my php_errorlog file and How do I fix this problem (or do I need to):

     [01-Nov-2022 13:52:27 UTC] PHP Warning:  Unknown user in ./public_html/wp-content/plugins/jetpack/sal/class.json-api-post-base.php on line 782
    

    I looked in the file around line 782 and found this:

    		$user = get_user_by( 'id', $this->post->post_author );
    
    		if ( ! $user || is_wp_error( $user ) ) {
    			trigger_error( 'Unknown user', E_USER_WARNING ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
    

    What was the Unknown User doing?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Dan (a11n)

    (@drawmyface)

    Hi there

    That warning is not anything you need to be concerned about, it can happen when the data gets out of sync on your site, which appears to have happened here.

    I have re-synced the data on your site, which should help. Feel free to get in touch again if you keep seeing that warning in your logs.

    Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hey @lillylark,

    Since it’s been more than a week since we’ve heard from you, I’m going to mark this thread as Resolved. If you still need help, please feel free to reach back out here and mark the thread as not resolved.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unknown User in jetpack/sal/class.json-api-post-base.php’ is closed to new replies.