• Notice: is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /var/www/vhosts/domain.com/httpdocs/wp-includes/functions.php on line 4970

    Notice: is_feed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /var/www/vhosts/domain.com/httpdocs/wp-includes/functions.php on line 4970

    Notice: is_amp_endpoint was called incorrectly. is_amp_endpoint() fue llamado antes de llamar al gancho parse_query. Please see Debugging in WordPress for more information. (This message was added in version 0.4.2.) in /var/www/vhosts/domain.com/httpdocs/wp-includes/functions.php on line 4970

    Notice: is_amp_endpoint was called incorrectly. is_amp_endpoint() fue llamado antes de generar la instancia para WP_Query. Please see Debugging in WordPress for more information. (This message was added in version 1.1.) in /var/www/vhosts/domain.com/httpdocs/wp-includes/functions.php on line 4970

Viewing 2 replies - 1 through 2 (of 2 total)
  • Originally: https://github.com/ampproject/amp-wp/issues/3925

    The issue is occurring in \Visual_Portfolio_Images::construct():

        /**
         * Visual_Portfolio_Images constructor.
         */
        public static function construct() {
            // Skip AMP pages.
            if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
                return;
            }

    This is being called too early, as Visual_Portfolio_Images::construct() is being called later in the file.

    A quick fix would be to just replace that call with an action that runs later:

    add_action( 'template_redirect', array( 'Visual_Portfolio_Images', 'construct' ) );

    Plugin Author nK

    (@nko)

    Hi @camilo517, @westonruter

    Thank you for the quick fix.

    It will be fixed in the next plugin update.

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

The topic ‘Notices php 7.4’ is closed to new replies.