Title: Warnings and errors in log function called incorrectly.
Last modified: December 18, 2025

---

# Warnings and errors in log function called incorrectly.

 *  [lordmatt](https://wordpress.org/support/users/lordmatt/)
 * (@lordmatt)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/warnings-and-errors-in-log-function-called-incorrectly/)
 * I’m getting errors in my log file like this:
 * `[...] [error] [client ``[...]`] AH01071: Got error 'PHP message: PHP Notice:
   Function _load_textdomain_just_in_time was called **incorrectly**. Translation
   loading for the `syndication-links` domain was triggered too early. This is usually
   an indicator for some code in the plugin or theme running too early. Translations
   should be loaded at the `init` action or later. Please see [Debugging in WordPress](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
   for more information. (This message was added in version 6.7.0.) in `[...]`wp-
   includes/functions.php on line 6131; PHP message: PHP Warning: Undefined variable
   $username in /`[...]`/wp-content/plugins/friends/feed-parsers/class-feed-parser-
   activitypub.php on line 3057'
 * I’ve snipped the message in a few places for privacy reasons.

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarnings-and-errors-in-log-function-called-incorrectly%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/friends/assets/icon-256x256.png?rev=3496634)
 * [Friends](https://wordpress.org/plugins/friends/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/friends/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/friends/)
 * [Active Topics](https://wordpress.org/support/plugin/friends/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/friends/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/friends/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [lordmatt](https://wordpress.org/support/users/lordmatt/)
 * Last activity: [5 months, 3 weeks ago](https://wordpress.org/support/topic/warnings-and-errors-in-log-function-called-incorrectly/)
 * Status: not resolved