Front-end: PHP notice on a post
-
After activation (no settings were changed or saved) I have opened a post on my site, and added
?amp
to get the AMP version. Above a post content I see these notices:Notice: AMP_Post_Template::verify_and_include was called incorrectly. Path validation for template (...\wp-content\plugins\accelerated-mobile-pages/includes/vendor/amp//templates/bread-crumbs.php) failed. Path cannot traverse and must be located in <code>WP_CONTENT_DIR</code>. Please see Debugging in WordPress for more information. (This message was added in version 0.1.) in ...\wp-includes\functions.php on line 4139 Homepage Notice: Only variables should be passed by reference in ...\wp-content\plugins\accelerated-mobile-pages\templates\design-manager\design-2\elements\bread-crumbs.php on line 71 Notice: Trying to get property of non-object in ...\wp-content\plugins\accelerated-mobile-pages\templates\design-manager\design-2\elements\bread-crumbs.php on line 82 Notice: Trying to get property of non-object in ...\wp-content\plugins\accelerated-mobile-pages\templates\design-manager\design-2\elements\bread-crumbs.php on line 82
Also, note a double-slashes problem:
/amp//templates/
.Developers, please, PLEASE use
WP_Debug
while developing your plugin.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Front-end: PHP notice on a post’ is closed to new replies.