Title: [Plugin: WordPress SEO by Yoast] Warning: DOMXPath::query()
Last modified: August 20, 2016

---

# [Plugin: WordPress SEO by Yoast] Warning: DOMXPath::query()

 *  [frabe](https://wordpress.org/support/users/frabe/)
 * (@frabe)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-warning-domxpathquery/)
    - **WordPress version:** 3.4
    - **WordPress SEO version:** 1.2.3
 * After import data from “All in one SEO ” when i try to change meta description,
   keywords or title the plugins show this error:
 * Warning: DOMXPath::query() [domxpath.query]: Invalid or inclomplete context in/
   nfs/c04/h02/mnt/64065/domains/francescobenanti.com/html/wp-content/plugins/wordpress-
   seo/admin/class-metabox.php on line 1163
 * Warning: Invalid argument supplied for foreach() in /nfs/c04/h02/mnt/64065/domains/
   francescobenanti.com/html/wp-content/plugins/wordpress-seo/admin/class-metabox.
   php on line 1165
 * Warning: DOMXPath::query() [domxpath.query]: Invalid or inclomplete context in/
   nfs/c04/h02/mnt/64065/domains/francescobenanti.com/html/wp-content/plugins/wordpress-
   seo/admin/class-metabox.php on line 1076
 * Warning: Invalid argument supplied for foreach() in /nfs/c04/h02/mnt/64065/domains/
   francescobenanti.com/html/wp-content/plugins/wordpress-seo/admin/class-metabox.
   php on line 1078
 * Warning: DOMXPath::query() [domxpath.query]: Invalid or inclomplete context in/
   nfs/c04/h02/mnt/64065/domains/francescobenanti.com/html/wp-content/plugins/wordpress-
   seo/admin/class-metabox.php on line 1091
 * Warning: Invalid argument supplied for foreach() in /nfs/c04/h02/mnt/64065/domains/
   francescobenanti.com/html/wp-content/plugins/wordpress-seo/admin/class-metabox.
   php on line 1099
 * Warning: Cannot modify header information – headers already sent by (output started
   at /nfs/c04/h02/mnt/64065/domains/francescobenanti.com/html/wp-content/plugins/
   wordpress-seo/admin/class-metabox.php:1163) in /nfs/c04/h02/mnt/64065/domains/
   francescobenanti.com/html/wp-includes/pluggable.php on line 881
 * Any idea? Thank you.
 * [http://wordpress.org/extend/plugins/wordpress-seo/](http://wordpress.org/extend/plugins/wordpress-seo/)

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

 *  Thread Starter [frabe](https://wordpress.org/support/users/frabe/)
 * (@frabe)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-warning-domxpathquery/#post-2841997)
 * **Update:** i’ve got the same error with a new article too…. 🙁
 *  [Fernanda](https://wordpress.org/support/users/fcthiesen/)
 * (@fcthiesen)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-warning-domxpathquery/#post-2842030)
 * I have the same problem using WP 3.4 and WP SEO 1.2.3 only on posts that have
   no content on the html editor. When I add some content, the errors disappear.
 * Hope this helps.
 *  [Androliyah](https://wordpress.org/support/users/androliyah/)
 * (@androliyah)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-warning-domxpathquery/#post-2842047)
 * SOLVED: Add something to the html editor and problem is solved.

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

The topic ‘[Plugin: WordPress SEO by Yoast] Warning: DOMXPath::query()’ is closed
to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Androliyah](https://wordpress.org/support/users/androliyah/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-warning-domxpathquery/#post-2842047)
 * Status: not resolved