• Resolved Ivan

    (@calvin13)


    Hello,

    Something is happening since the last upgrade. When I try to see some pages in Safari, I see the following error: “Failure to prepare AMP page” with the following error log in Apache:

    `mod_fcgid: stderr: Ha ocurrido un error PHP al tratar de preparar la respuesta AMP. Esto no puede haberlo provocado el plugin AMP sino alg\xc3\xban otro plugin activo o el tema actual. Tendr\xc3\xa1s que revisar los detalles del error para determinar el origen del error. – Maximum allowed CSS byte count exceeded for inline style ‘font-size: smaller’: <small></small> (0) [AmpProject\\Exception\\MaxCssByteCountExceeded]
    mod_fcgid: stderr: #0 /wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Dom/Element.php(82): AmpProject\\Exception\\MaxCssByteCountExceeded::forInlineStyle()
    mod_fcgid: stderr: #1 /wp-content/plugins/amp/includes/validation/class-amp-validation-manager.php(1686): AmpProject\\Dom\\Element->setAttribute()
    mod_fcgid: stderr: #2 /wp-content/plugins/amp/includes/validation/class-amp-validation-manager.php(1534): AMP_Validation_Manager::update_admin_bar_item()
    mod_fcgid: stderr: #3 /wp-content/plugins/amp/includes/class-amp-theme-support.php(2072): AMP_Validation_Manager::finalize_validation()
    mod_fcgid: stderr: #4 /wp-content/plugins/amp/includes/class-amp-theme-support.php(1668): AMP_Theme_Support::prepare_response()
    mod_fcgid: stderr: #5 [internal function]: AMP_Theme_Support::finish_output_buffering()
    mod_fcgid: stderr: #6 /wp-includes/functions.php(4757): ob_end_flush()
    mod_fcgid: stderr: #7 /wp-includes/class-wp-hook.php(292): wp_ob_end_flush_all()
    mod_fcgid: stderr: #8 /wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
    mod_fcgid: stderr: #9 /wp-includes/plugin.php(484): WP_Hook->do_action()
    mod_fcgid: stderr: #10 /wp-includes/load.php(1072): do_action()
    mod_fcgid: stderr: #11 [internal function]: shutdown_action_hook()
    mod_fcgid: stderr: #12 {main}`

    Only happens in Safari (MacOS… not in Safari at iOS). Not in Google Chrome or Firefox… Not happens in the Safari incognito mode… It only happens in webpages with no traffic (I think…)

    After I visit the page in Firefox o Chrome, suddenly, if I try to visit the page again in Safari… I can see the webpage correctly… the error is gone!

    I use the last version of the plugin and WordPress. Theme: Genesis Sample theme last version. I not see any error in the WordPress Health.

    Any clue? Thank you very much.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @calvin13

    I am able to view your site on MacOS Safari Version 14.0.3 (15610.4.3.1.6, 15610) without issues.

    The error may be occurred due to CSS is exceeding the limit on an AMP Page. You can quickly check which plugin or theme has a file that is adding excessive CSS by click Admin Toolbar’s AMP option and selecting the CSS usages option (screenshot)

    You will find details on the CSS details page, ie source of CSS and remove CSS, etc.

    Thread Starter Ivan

    (@calvin13)

    Thank you for guiding me to solve the problem.

    I think the problem is the following:

    When I see the page when I logged in to the site, the WordPress bar appear with some info about several plugins, and the AMP page is not generated because the extra CSS. This problem not happen in incognito mode.

    I have removed the WordPress bar and the problem is resolved.

    Thanks!

    • This reply was modified 3 years, 4 months ago by Ivan.
    Plugin Support Milind More

    (@milindmore22)

    Glad that worked out, the Admin bar also adds some CSS removing it should fix the issue, but please keep eye on the CSS budget as it may exceed in the future in case plugins or themes add more CSS with updates or you decided to add another plugin to your site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Failure to prepare AMP page’ is closed to new replies.