• Resolved dragon18

    (@dragon18)


    If Permalink lite is activated, the AMP plugin compatibility feature doesn’t work. AMP gives error

    AMP could not check your site for compatibility issues.

    Is there the way to get rid of this error?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @dragon18,

    Could you provide me a sample URL and the name of AMP plugin you have installed?

    Best regards,
    Maciej

    Thread Starter dragon18

    (@dragon18)

    I can not give you sample URL, because it is error in WP admin section.
    screenshot of the error is here https://prnt.sc/nJlcPr2w43GA
    This error appears only when Permalink lite is active (I have v. 2.2.19.3 , php 7.4)
    AMP plugin v2.3 from here https://amp-wp.org/

    Plugin Author Maciej Bis

    (@mbis)

    Hi @dragon18,

    Could you try to change “Redirect mode” in Permalink Manager settings (under “Redirect settings”) to “Disable (Permalink Manager redirect functions)” and then rescan the website in AMP settings?

    Thread Starter dragon18

    (@dragon18)

    No, this doesn’t help.
    However, I made new site in this multisite network, and there is no such error even with same network activated plugins.

    I tried to deactivate all the site-specific plugins, and activated only AMP and Permalink Manager, and the error appears. So, does it mean that it has not been caused by other plugins?

    FYI, I have ‘Redirection’ and ‘WP 404 Auto Redirect to Similar Post’ , but their deactivation doesn’t help either.

    Are the redirection features and hooks in your plugin only in Pro version?
    Doesn’t your canonical redirect feature conflict with canonical redirects of SEO plugins (I have RankMath, previously had SEO Ultimate)

    Plugin Author Maciej Bis

    (@mbis)

    Ok, could you try to keep only AMP and PML activated and then run the scan from AMP settings? The AMP plugin can cache the errors.

    If this still does not help, could you open the browser’s console log before the AMP scan is started and check if any error is logged in XHR section?
    https://developer.chrome.com/docs/devtools/console/reference/#xhr

    Did you by any chance try to reach AMP support?

    The canonical redirect function is included also in free version of Permalink Manager, but it does not conflict with RankMath. However I have not tested “WP 404 Auto Redirect to Similar Post” plugin and I would recommend to change “Redirect mode” in Permalink Manager settings to “Disable”.

    Thread Starter dragon18

    (@dragon18)

    If both AMP and Permalink Manager are activated, scan can not be run:
    https://prnt.sc/5zukaMOdM_aC

    Without PM active the scan find no errors.
    https://prnt.sc/r2glUWvDvVp1

    I haven’t reach AMP support yet, cause I think they will direct to PM support (because error occurs only with PM activated)

    Plugin Author Maciej Bis

    (@mbis)

    I see, however AMP have some additional tools included that could allow to figure out what exactly triggers the error.

    Could you also check the browser’s console log for XHR errors? Otherwise I would not be able to help since I cannot reproduce this issue and no one else reported the same problem so far :/

    Thread Starter dragon18

    (@dragon18)

    When I activate PM, there are the following errors

    5Fetch failed loading: GET "<URL>".
    amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1 Fetch failed loading: GET "http://www.solarhome.ru/biblio/biblio-sun/poly-si-production-2021.htm/amp?amp_validate%5Bcache%5D=true&amp_validate%5Bcache_bust%5D=0.5713163586422654&amp_validate%5Bnonce%5D=9a5c47f1f46e8322337abe8eef7bab77&amp_validate%5Bomit_stylesheets%5D=true".
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    Bh @ react-dom.min.js?ver=16.13.1:126
    Dj @ react-dom.min.js?ver=16.13.1:162
    unstable_runWithPriority @ react.min.js?ver=16.13.1:25
    Da @ react-dom.min.js?ver=16.13.1:60
    xb @ react-dom.min.js?ver=16.13.1:162
    (anonymous) @ react-dom.min.js?ver=16.13.1:162
    U @ react.min.js?ver=16.13.1:16
    B.port1.onmessage @ react.min.js?ver=16.13.1:24
    amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1 Fetch failed loading: GET "http://www.solarhome.ru/yandex-search-results?amp=&amp_validate%5Bcache%5D=true&amp_validate%5Bcache_bust%5D=0.3234259789937801&amp_validate%5Bnonce%5D=9a5c47f1f46e8322337abe8eef7bab77&amp_validate%5Bomit_stylesheets%5D=true".
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    Bh @ react-dom.min.js?ver=16.13.1:126
    Dj @ react-dom.min.js?ver=16.13.1:162
    unstable_runWithPriority @ react.min.js?ver=16.13.1:25
    Da @ react-dom.min.js?ver=16.13.1:60
    xb @ react-dom.min.js?ver=16.13.1:162
    (anonymous) @ react-dom.min.js?ver=16.13.1:162
    U @ react.min.js?ver=16.13.1:16
    B.port1.onmessage @ react.min.js?ver=16.13.1:24
    amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1 Fetch failed loading: GET "http://www.solarhome.ru/ep2000pro-2-1?amp=&amp_validate%5Bcache%5D=true&amp_validate%5Bcache_bust%5D=0.1844977064586144&amp_validate%5Bnonce%5D=9a5c47f1f46e8322337abe8eef7bab77&amp_validate%5Bomit_stylesheets%5D=true".
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    Bh @ react-dom.min.js?ver=16.13.1:126
    Dj @ react-dom.min.js?ver=16.13.1:162
    unstable_runWithPriority @ react.min.js?ver=16.13.1:25
    Da @ react-dom.min.js?ver=16.13.1:60
    xb @ react-dom.min.js?ver=16.13.1:162
    (anonymous) @ react-dom.min.js?ver=16.13.1:162
    U @ react.min.js?ver=16.13.1:16
    B.port1.onmessage @ react.min.js?ver=16.13.1:24
    amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1 Fetch failed loading: GET "http://www.solarhome.ru/fmemailverification/email-verification/amp?amp_validate%5Bcache%5D=true&amp_validate%5Bcache_bust%5D=0.4739553949951629&amp_validate%5Bnonce%5D=9a5c47f1f46e8322337abe8eef7bab77&amp_validate%5Bomit_stylesheets%5D=true".
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    Bh @ react-dom.min.js?ver=16.13.1:126
    Dj @ react-dom.min.js?ver=16.13.1:162
    unstable_runWithPriority @ react.min.js?ver=16.13.1:25
    Da @ react-dom.min.js?ver=16.13.1:60
    xb @ react-dom.min.js?ver=16.13.1:162
    (anonymous) @ react-dom.min.js?ver=16.13.1:162
    U @ react.min.js?ver=16.13.1:16
    B.port1.onmessage @ react.min.js?ver=16.13.1:24
    amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1 Fetch failed loading: GET "http://www.solarhome.ru/form-maker/preview/amp?amp_validate%5Bcache%5D=true&amp_validate%5Bcache_bust%5D=0.16528862539854572&amp_validate%5Bnonce%5D=9a5c47f1f46e8322337abe8eef7bab77&amp_validate%5Bomit_stylesheets%5D=true".

    If any other plugin is activated with PM active

    amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1 Fetch failed loading: GET "http://www.solarhome.ru/biblio/biblio-sun/poly-si-production-2021.htm/amp?amp_validate%5Bcache%5D=true&amp_validate%5Bcache_bust%5D=0.6881820697246932&amp_validate%5Bnonce%5D=9a5c47f1f46e8322337abe8eef7bab77&amp_validate%5Bomit_stylesheets%5D=true".
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    Bh @ react-dom.min.js?ver=16.13.1:126
    Dj @ react-dom.min.js?ver=16.13.1:162
    unstable_runWithPriority @ react.min.js?ver=16.13.1:25
    Da @ react-dom.min.js?ver=16.13.1:60
    xb @ react-dom.min.js?ver=16.13.1:162
    (anonymous) @ react-dom.min.js?ver=16.13.1:162
    U @ react.min.js?ver=16.13.1:16
    B.port1.onmessage @ react.min.js?ver=16.13.1:24
    amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1 Fetch failed loading: GET "http://www.solarhome.ru/yandex-search-results?amp=&amp_validate%5Bcache%5D=true&amp_validate%5Bcache_bust%5D=0.6840478538659931&amp_validate%5Bnonce%5D=9a5c47f1f46e8322337abe8eef7bab77&amp_validate%5Bomit_stylesheets%5D=true".
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    Bh @ react-dom.min.js?ver=16.13.1:126
    Dj @ react-dom.min.js?ver=16.13.1:162
    unstable_runWithPriority @ react.min.js?ver=16.13.1:25
    Da @ react-dom.min.js?ver=16.13.1:60
    xb @ react-dom.min.js?ver=16.13.1:162
    (anonymous) @ react-dom.min.js?ver=16.13.1:162
    U @ react.min.js?ver=16.13.1:16
    B.port1.onmessage @ react.min.js?ver=16.13.1:24
    amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1 Fetch failed loading: GET "http://www.solarhome.ru/ep2000pro-2-1?amp=&amp_validate%5Bcache%5D=true&amp_validate%5Bcache_bust%5D=0.4427081860561428&amp_validate%5Bnonce%5D=9a5c47f1f46e8322337abe8eef7bab77&amp_validate%5Bomit_stylesheets%5D=true".
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    Bh @ react-dom.min.js?ver=16.13.1:126
    Dj @ react-dom.min.js?ver=16.13.1:162
    unstable_runWithPriority @ react.min.js?ver=16.13.1:25
    Da @ react-dom.min.js?ver=16.13.1:60
    xb @ react-dom.min.js?ver=16.13.1:162
    (anonymous) @ react-dom.min.js?ver=16.13.1:162
    U @ react.min.js?ver=16.13.1:16
    B.port1.onmessage @ react.min.js?ver=16.13.1:24
    amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1 Fetch failed loading: GET "http://www.solarhome.ru/fmemailverification/email-verification/amp?amp_validate%5Bcache%5D=true&amp_validate%5Bcache_bust%5D=0.7050680416717345&amp_validate%5Bnonce%5D=9a5c47f1f46e8322337abe8eef7bab77&amp_validate%5Bomit_stylesheets%5D=true".
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    (anonymous) @ amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1
    Bh @ react-dom.min.js?ver=16.13.1:126
    Dj @ react-dom.min.js?ver=16.13.1:162
    unstable_runWithPriority @ react.min.js?ver=16.13.1:25
    Da @ react-dom.min.js?ver=16.13.1:60
    xb @ react-dom.min.js?ver=16.13.1:162
    (anonymous) @ react-dom.min.js?ver=16.13.1:162
    U @ react.min.js?ver=16.13.1:16
    B.port1.onmessage @ react.min.js?ver=16.13.1:24
    amp-site-scan-notice.js?ver=408b6af8292bb0a98164:1 Fetch failed loading: GET "http://www.solarhome.ru/form-maker/preview/amp?amp_validate%5Bcache%5D=true&amp_validate%5Bcache_bust%5D=0.32549888942142213&amp_validate%5Bnonce%5D=9a5c47f1f46e8322337abe8eef7bab77&amp_validate%5Bomit_stylesheets%5D=true".

    If PM is not activated, then there are no such error at activating plugins.

    Plugin Author Maciej Bis

    (@mbis)

    Thank you, I will analyze the logs and get back to you in next few hours.

    Plugin Author Maciej Bis

    (@mbis)

    All the logged AMP URLs return a valid response. However, I have noticed that all of them have incorrect HTTP preffix (http:// instead of https://). Could you make sure that both URLs in “Settings -> General settings” start with correct https:// prefix?

    Thread Starter dragon18

    (@dragon18)

    These settings are in Multisite console , but I can not change them for the main (first) site.
    See here https://prnt.sc/OXu8VJizDhu8

    Other sites in the chain have these fields editable
    https://prnt.sc/h3MdS59tvA6P

    Do you know how to change these settings for the main site directly in the DB or config file?

    The problem is minor, because I have redirect from http to https in .htaccess, so all the links are https, no matter what is in the wordpress settings.

    Plugin Author Maciej Bis

    (@mbis)

    Hi @dragon18,

    Yes, it does not matter in most of the cases, however if there is a redirect (301) instead of “ok” (200) status code, the AMP scan will fail. As you have stated, the issue did not arise when you created a fresh dev installation in the same environment, therefore an HTTP/HTTPS mismatch might be the only difference.

    As far as I know, you can change the primary domain URL only directly via database. Please also make sure that neither WP_HOME nor WP_SITEURL are defined in wp-config.php file.

    Thread Starter dragon18

    (@dragon18)

    Thank you for the tip and your support!

    I changed http to https in wp_options table through phpmyadmin, and the error is gone!

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

The topic ‘Permalink Lite and AMP plugin compatibility’ is closed to new replies.