Title: PHP Warning
Last modified: December 16, 2024

---

# PHP Warning

 *  Resolved [Fantou](https://wordpress.org/support/users/fantou/)
 * (@fantou)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/php-warning-518/)
 * Hello
 * Query Monitor informs me about this alert : Translation loading for the ad-inserter
   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.
   Is there a way to solve this ?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/php-warning-518/#post-18201861)
 * Hello,
 * can you please describe steps to reproduce this alert?
 *  Thread Starter [Fantou](https://wordpress.org/support/users/fantou/)
 * (@fantou)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/php-warning-518/#post-18201867)
 * Hello [@spacetime](https://wordpress.org/support/users/spacetime/) , thanks for
   your quick reply
 * It’s just Query Monitor (or if I enable WP_Debug ) that I see this alert. Here
   is more information with Query Monitor if it can help :
   _load_textdomain_just_in_time()
   wp-includes/l10n.php:1378get_translations_for_domain()wp-includes/l10n.php:1408translate_with_gettext_context()
   wp-includes/l10n.php:261_x()wp-includes/l10n.php:409ai_load_settings()wp-content/
   plugins/ad-inserter/ad-inserter.php:7373
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/php-warning-518/#post-18201911)
 * I’m sorry but I can’t reproduce it. Tested with the latest plugin and WP 6.7.1.
   Will do some more tests.
 *  Thread Starter [Fantou](https://wordpress.org/support/users/fantou/)
 * (@fantou)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/php-warning-518/#post-18202255)
 * Ok thanks. Further information : I’m running in french langage
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/php-warning-518/#post-18204521)
 * Fixed:
   [https://downloads.wordpress.org/plugin/ad-inserter.zip](https://downloads.wordpress.org/plugin/ad-inserter.zip)
 * Thanks for reporting this.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/php-warning-518/#post-18204521)
 * Status: resolved