• 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 7

    Recoverable 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

Viewing 1 replies (of 1 total)
  • Thread Starter Daniel Kolks

    (@kolks)

    Not a problem anymore. The reason for the error in the first place was an uncommon usage of urls. After changing that the other errors disappeared as well.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning: Use of undefined constant is_post_type_archive’ is closed to new replies.