'; } $msg = '' . __( 'WP Rocket: ', 'rocket' ) . ''; $msg .= sprintf( /* translators: %1$s = missing tags; */ esc_html( _n( 'Failed to detect the following requirement in your theme: closing %1$s.', 'Failed to detect the following requirements in your theme: closing %1$s.', count( $notice ), 'rocket' ) ), // translators: Documentation exists in EN, FR. wp_sprintf_l( '%l', $notice ) ); $msg .= ' ' . sprintf( /* translators: %1$s = opening link; %2$s = closing link */ __( 'Read the %1$sdocumentation%2$s for further guidance.', 'rocket' ), // translators: Documentation exists in EN, FR; use localized URL if applicable. '', '' ); \rocket_notice_html( [ 'status' => 'info', 'dismissible' => '', 'message' => $msg, 'dismiss_button' => __FUNCTION__, ] ); } /** * Get the request URI. * * @since 3.4.2 * @author Soponar Cristina * * @return string */ public function get_raw_request_uri() { if ( ! isset( $_SERVER['REQUEST_URI'] ) ) { return ''; } if ( '' === $_SERVER['REQUEST_URI'] ) { return ''; } return '/' . esc_html( ltrim( wp_unslash( $_SERVER['REQUEST_URI'] ), '/' ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized } /** * Deletes the transient storing the missing tags when updating the plugin * * @since 3.4.2.2 * @author Soponar Cristina */ public function delete_transient_after_upgrade() { delete_transient( 'rocket_notice_missing_tags' ); } }
Fatal error: Uncaught TypeError: Argument 1 passed to WP_Rocket\Event_Management\Event_Manager::add_subscriber() must implement interface WP_Rocket\Event_Management\Subscriber_Interface, string given, called in /home/payon/public_html/wp-content/plugins/wp-rocket/inc/classes/class-plugin.php on line 186 and defined in /home/payon/public_html/wp-content/plugins/wp-rocket/inc/classes/event-management/class-event-manager.php:33 Stack trace: #0 /home/payon/public_html/wp-content/plugins/wp-rocket/inc/classes/class-plugin.php(186): WP_Rocket\Event_Management\Event_Manager->add_subscriber('WP_Rocket\\Subsc...') #1 /home/payon/public_html/wp-content/plugins/wp-rocket/inc/main.php(40): WP_Rocket\Plugin->load() #2 /home/payon/public_html/wp-includes/class-wp-hook.php(308): rocket_init('') #3 /home/payon/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #4 /home/payon/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /home/payon/public_html/wp-settings.php(486): do_action('plugi in /home/payon/public_html/wp-content/plugins/wp-rocket/inc/classes/event-management/class-event-manager.php on line 33