Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Forum: Plugins
    In reply to: [AMP] Critical error
    Thread Starter MyWorldMyDream

    (@motonewsbrasil)

    Thanks for replying

    I don’t know what happens, but it seems to be temporary, because after some minutes, everything is working again.

    When this happens, I receive an email from WordPress telling me there is a critical error with AMP plugin… when i try to access the AMP pages, i can’t, and i receive the same critical error message on my internet browser.

    The plugin also generated all the technical information when I click on Support, generating the UUID above that you should be able to see.

    I don’t know how to attach a screenshot here so, the error that comes in the email from WordPress is:

    error details
    ================
    An error of type E_ERROR was caused on line 147 of the /var/www/wp-content/plugins/amp/includes/options/class-amp-options-manager.php file. Error message: Uncaught TypeError: array_merge(): Argument #3 must be of type array, string given in /var/www/wp-content/plugins/amp/includes/options/class-amp-options-manager.php: 147
    Stack trace:
    #0 /var/www/wp-content/plugins/amp/includes/options/class-amp-options-manager.php(147): array_merge(Array, Array, '+OK')
    #1 /var/www/wp-content/plugins/amp/includes/options/class-amp-options-manager.php(260): AMP_Options_Manager::get_options()
    #2 /var/www/wp-content/plugins/amp/includes/amp-helper-functions.php(349): AMP_Options_Manager::get_option('theme_support')
    #3 /var/www/wp-content/plugins/amp/src/PairedRouting.php(472): amp_is_canonical()
    #4 /var/www/wp-includes/class-wp-hook.php(307): AmpProject\AmpWP\PairedRouting->initialize_paired_request('')
    #5 /var/www/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #7 /var/www/wp-settings.php(461): do_action('plugins_loaded')
    #8 /var/www/wp-config.php(97): require_once('/var/www/wp-set...')
    #9 /var/www/wp-load.php(50): require_once('/var/www/wp-con...')
    #10 /var/www/wp-admin/admin-ajax.php(22): require_once('/var/www/wp-loa...')
    #11 {main}
      thrown

    So, please investigate because, although everything is working now, from time to time I experience this error and my visitors can’t access my content, even if it is just for a few minutes, the search engines don’t like it.

    Thanks

    Thread Starter MyWorldMyDream

    (@motonewsbrasil)

    @sakarrr I think you understand the opposite. In my opinion, the correct one for smartphones is just one column, four lines, as shown in one of the screenshots.
    What’s wrong: two columns with two rows … two columns on smartphones don’t work.
    I hope that I have managed to express myself. Sorry for my not so good English.

    Thread Starter MyWorldMyDream

    (@motonewsbrasil)

    @sakarrr nope, nothing changed here on my smartphone. Hope you find a solution for future updates. Thanks

    Thread Starter MyWorldMyDream

    (@motonewsbrasil)

    @sakarrr yes, one post per row, just one column. I dont know how to attach screenshot here, so find it in this link Screenshot MotoNews World

    Thread Starter MyWorldMyDream

    (@motonewsbrasil)

    @sakarrr Thanks man, it worked. But now I dont have lazy load… lol… Anyway, for now, problem solved. Thanks again.

    Thread Starter MyWorldMyDream

    (@motonewsbrasil)

    @westonruter Thanks man

    Now I understand how it works.

    I’ll also check other themes for AMP pages.

    Thanks again

    Thread Starter MyWorldMyDream

    (@motonewsbrasil)

    @westonruter Thanks for the reply

    I discovered what is wrong: I can’t use same image as ‘featured image’ and insert it in ‘body’ of the post.

    when I removed the ‘duplicated’ image from ‘body’, the AMP version of the posts shows the Featured Image, as the non AMP.

    Hope this is it. From now on, I will have to upload 2 images every single post: one for ‘featured image’, and another (of course, if I want) for the body/content.

    Thanks anyway

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