Title: PHP Notice after enabling plugin
Last modified: August 31, 2016

---

# PHP Notice after enabling plugin

 *  [leec87](https://wordpress.org/support/users/leec87/)
 * (@leec87)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-notice-after-enabling-plugin/)
 * After installing and activating the plugin on my local copy, and viewing a /amp/
   version of a blog post, I get a blank page outputting this error:
 * `Notice: AMP_Post_Template::verify_and_include was called <strong>incorrectly
   </strong>. Path validation for template (C:\wamp\www\bellavou\wp-content\plugins\
   amp/templates/single.php) failed. Path cannot traverse and must be located in`
   WP_CONTENT_DIR`. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress"
   >Debugging in WordPress</a> for more information. (This message was added in 
   version 0.1.) in C:\wamp\www\bellavou\wp-includes\functions.php on line 3792`
 * [https://wordpress.org/plugins/amp/](https://wordpress.org/plugins/amp/)

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

 *  [Mohammad Jangda](https://wordpress.org/support/users/batmoo/)
 * (@batmoo)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-notice-after-enabling-plugin/#post-7079076)
 * This should be fixed with v0.3. Can you check again and let me know?
 *  [Ba5nanas](https://wordpress.org/support/users/ba5nanas/)
 * (@ba5nanas)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-notice-after-enabling-plugin/#post-7079200)
 * I still have problem wp-content\plugins\amp/templates/single.php) failed. Path
   cannot traverse and must be located in `WP_CONTENT_DIR`.
 * Now I fixed.
 * class-amp-post-template.php line 262 change 0 !== to 0 > or remove code 262 to
   264
 *  [Cyto](https://wordpress.org/support/users/cyto/)
 * (@cyto)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-notice-after-enabling-plugin/#post-7079209)
 * [@ba5nanas](https://wordpress.org/support/users/ba5nanas/), Thx. I can confirm,
   this also fixed for me. In my file, its line 251: `0 !== validate_file( $template)`
   to `0 > validate_file( $template )`

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

The topic ‘PHP Notice after enabling plugin’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Cyto](https://wordpress.org/support/users/cyto/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/php-notice-after-enabling-plugin/#post-7079209)
 * Status: not resolved