• Hi,
    There’s an error in wp-product-review/includes/public/class-wppr-public.php on line 167 where you call the filter ‘wppr_global_style’ with 1 argument instead of the 2 arguments required (see error below).

    I think the fix is to add $review as the second argument like so:
    $style = apply_filters( ‘wppr_global_style’, $style, $review );

    At least that fixes this fatal error :

    Fatal error (E_ERROR): “Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed in /var/www/wp/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /var/www/content/plugins/wp-product-review/includes/functions.php:166 Stack trace: #0 /var/www/wp/wp-includes/class-wp-hook.php(287): {closure}(' ...') #1 /var/www/wp/wp-includes/plugin.php(206): WP_Hook->apply_filters(' ...', Array) #2 /var/www/content/plugins/wp-product-review/includes/public/class-wppr-public.php(167): apply_filters('wppr_global_sty...', ' ...') #3 /var/www/content/plugins/wp-product-review/includes/public/class-wppr-public.php(132): Wppr_Public->load_template_css(Object(WPPR_Review_Model)) #4 /var/www/wp/wp-includes/class-wp-hook.php(287): Wppr_Public->load_review_assets(Ob“ at './/var/www/content/plugins/wp-product-review/includes/functions.php:166'.

    Best regards

  • The topic ‘Error 500 on AMP page’ is closed to new replies.