Critical error on AMP version of site

Support UUID: ampwp-e47d1632-7da8-5d9b-962a-04647f09b762

The AMP plugin was working fine for me until now; I’m now getting a critical error on the whole AMP site.

This is the error info from the ‘Validated URLs’ tab:

Uncaught DivisionByZeroError: Division by zero in /customers/e/5/c/studio91media.co.uk/httpd.www/wp-content/plugins/amp/includes/sanitizers/class-amp-core-theme-sanitizer.php:878
Stack trace:
#0 /customers/e/5/c/studio91media.co.uk/httpd.www/wp-content/plugins/amp/includes/validation/class-amp-validation-callback-wrapper.php(144): AMP_Core_Theme_Sanitizer::{closure}('<a href="https:...')
#1 /customers/e/5/c/studio91media.co.uk/httpd.www/wp-includes/class-wp-hook.php(310): AMP_Validation_Callback_Wrapper->__invoke('<a href="https:...')
#2 /customers/e/5/c/studio91media.co.uk/httpd.www/wp-includes/plugin.php(205): WP_Hook->apply_filters('<a href="https:...', Array)
#3 /customers/e/5/c/studio91media.co.uk/httpd.www/wp-includes/general-template.php(1132): apply_filters('get_custom_logo', '<a href="https:...', 0)
#4 /customers/e/5/c/studio91media.co.uk/httpd.www/wp-content/themes/twentytwenty/inc/template-tags.php(35): get_custom_logo()
#5 /customers/e/5/c/studio91media.co.uk/httpd.www/wp-content/themes/twentytwenty/header.php(63): twentytwenty_site_logo()
#6 /customers/e/5/c/studio91media.co.uk/httpd.www/wp-includes/template.php(783): require_once('/customers/e/5/...')
#7 /customers/e/5/c/studio91media.co.uk/httpd.www/wp-includes/template.php(718): load_template('/customers/e/5/...', true, Array)
#8 /customers/e/5/c/studio91media.co.uk/httpd.www/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
#9 /customers/e/5/c/studio91media.co.uk/httpd.www/wp-content/themes/twentytwenty/singular.php(12): get_header()
#10 /customers/e/5/c/studio91media.co.uk/httpd.www/wp-includes/template-loader.php(106): include('/customers/e/5/...')
#11 /customers/e/5/c/studio91media.co.uk/httpd.www/wp-blog-header.php(19): require_once('/customers/e/5/...')
#12 /customers/e/5/c/studio91media.co.uk/httpd.www/index.php(17): require('/customers/e/5/...')
#13 {main}
  thrown

Location: /customers/e/5/c/studio91media.co.uk/httpd.www/wp-content/plugins/amp/includes/sanitizers/class-amp-core-theme-sanitizer.php:878

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer