Warning: Use of undefined constant is_post_type_archive
-
Hey Shea,
first let me say a big thank you for your really very nice plugin.
At the moment I have a problem on my site. On the frontend I get an error message (“The site is experiencing technical difficulties.”) on pages with pagination beginning with the second page. The site is running on PHP 7.2
When I debug the page I get this description:
”
Warning: Use of undefined constant is_post_type_archive – assumed ‘is_post_type_archive’ (this will throw an Error in a future version of PHP) in /html/wordpress/wp-content/plugins/code-snippets/php/snippet-ops.php(361) : eval()’d code on line 7Recoverable fatal error: Object of class WP_Error could not be converted to string in /html/wordpress/wp-includes/pluggable.php on line 1282
The site is experiencing technical difficulties.
”When I deactivate all snippets with “is_post_type_archive” in it nothing changes. The error still remains. Do you have an idea?
Thanks a lot in advance
Daniel
- The topic ‘Warning: Use of undefined constant is_post_type_archive’ is closed to new replies.