Title: Error during setup
Last modified: November 9, 2021

---

# Error during setup

 *  Resolved [muskangarg98](https://wordpress.org/support/users/muskangarg98/)
 * (@muskangarg98)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/error-during-setup-3/)
 * Hello,
    It says Something went wrong. Cannot read properties of undefined (reading‘
   query_var’)
 * The error message is
 *     ```
       {
         "message": "Cannot read properties of undefined (reading 'query_var')",
         "stack": "TypeError: Cannot read properties of undefined (reading 'query_var')\n    at u (https://www.remoteflyer.com/wp-content/plugins/amp/assets/js/amp-settings.js?ver=85a69fcacdf37227e3559bda1801a6ba:40:1567)\n    at ni (https://www.remoteflyer.com/wp-content/plugins/amp/assets/js/amp-settings.js?ver=85a69fcacdf37227e3559bda1801a6ba:60:74335)\n    at Bi (https://www.remoteflyer.com/wp-content/plugins/amp/assets/js/amp-settings.js?ver=85a69fcacdf37227e3559bda1801a6ba:60:83853)\n    at Bc (https://www.remoteflyer.com/wp-content/plugins/amp/assets/js/amp-settings.js?ver=85a69fcacdf37227e3559bda1801a6ba:60:127711)\n    at gs (https://www.remoteflyer.com/wp-content/plugins/amp/assets/js/amp-settings.js?ver=85a69fcacdf37227e3559bda1801a6ba:60:113750)\n    at Ls (https://www.remoteflyer.com/wp-content/plugins/amp/assets/js/amp-settings.js?ver=85a69fcacdf37227e3559bda1801a6ba:60:113678)\n    at hs (https://www.remoteflyer.com/wp-content/plugins/amp/assets/js/amp-settings.js?ver=85a69fcacdf37227e3559bda1801a6ba:60:113541)\n    at us (https://www.remoteflyer.com/wp-content/plugins/amp/assets/js/amp-settings.js?ver=85a69fcacdf37227e3559bda1801a6ba:60:110528)\n    at https://www.remoteflyer.com/wp-content/plugins/amp/assets/js/amp-settings.js?ver=85a69fcacdf37227e3559bda1801a6ba:60:60233\n    at t.unstable_runWithPriority (https://www.remoteflyer.com/wp-content/plugins/amp/assets/js/amp-settings.js?ver=85a69fcacdf37227e3559bda1801a6ba:60:137428)"
       }
       ```
   
 * I recently deleted this plugin because no changes made to the site was being 
   updated in amp. I have installed amp for wp and now it’s theme is not going away.
   Please Help.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-during-setup-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/error-during-setup-3/#post-15051704)
 * Hello [@muskangarg98](https://wordpress.org/support/users/muskangarg98/)
 * Thank you for the support topic, Can you please clear your site cache also clear
   OpCache in case you were using a different plugin before.
 * Also, I was not able to check your AMP page as there is some redirect in place
   which was redirects you back to non-AMP pages, please disable/remove it
 * Additionally, please send your site health info using [this form](https://forms.gle/wsVAxY4dghje5WvSA)
   so we can investigate the issue further.
 *  Thread Starter [muskangarg98](https://wordpress.org/support/users/muskangarg98/)
 * (@muskangarg98)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/error-during-setup-3/#post-15053409)
 * Okay I have cleared the cache and removed the redirects. Also I have filled the
   form.
    Thanks.
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/error-during-setup-3/#post-15054034)
 * Hello [@muskangarg98](https://wordpress.org/support/users/muskangarg98/)
 * We are still not able to view your AMP page the redirect is still in place.
 * you can also check your redirect on [Redirect Checker](https://www.redirect-checker.org/)
   by entering your AMP page URL
    which will be [https://www.remoteflyer.com/?amp](https://www.remoteflyer.com/?amp)
   and it should return `200 ok` and not `301 permanently moved`
 * As we checked the header `X-Redirect-By: Yoast SEO Premium` the redirect may 
   be added in the Yoast SEO Premium plugins Redirect feature, the errors you posted
   in the topic might be related to redirect.
 *  Thread Starter [muskangarg98](https://wordpress.org/support/users/muskangarg98/)
 * (@muskangarg98)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-during-setup-3/#post-15057349)
 * Hello,
    I already removed the redirect from Yoast SEO Premium. If you go on and
   check for [https://www.remoteflyer.com/amp/](https://www.remoteflyer.com/amp/)
   it will return 200 ok. Is there a difference between [https://www.remoteflyer.com/amp](https://www.remoteflyer.com/amp)
   and [https://www.remoteflyer.com/amp/](https://www.remoteflyer.com/amp/) .
 * The error I posted is gone now but any changes made in the site is not reflected
   in the amp site. I have cleared the cache and browsing history but my amp site
   in mobile still shows the previous theme. Can you please help me with it?
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-during-setup-3/#post-15057921)
 * Hello [@muskangarg98](https://wordpress.org/support/users/muskangarg98/)
 * When you search on mobile and click on Google search results it shows you [AMP cache](https://developers.google.com/amp/cache).
 * The AMP Cache will be updated when Googlebot re-crawl your page, which sometimes
   can take more than 2 weeks, this is something we can’t control using the AMP 
   plugin, [Search Console support](https://search.google.com/search-console/about)
   may provide better guidance on AMP cache.
 *  Thread Starter [muskangarg98](https://wordpress.org/support/users/muskangarg98/)
 * (@muskangarg98)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-during-setup-3/#post-15058037)
 * Ok but there are some posts in updated theme some are not. Also some posts just
   keeps reloading again and again. I don’t know what is happening and why?
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-during-setup-3/#post-15058186)
 * [@muskangarg98](https://wordpress.org/support/users/muskangarg98/)
 * As I said in my previous reply, we can’t control AMP cache or Googlebots it will
   be best to wait for sometime for them to re-crawl your page, which usally taks
   2-3 weeks, you can also manually request re-indexing
 * > Also some posts just keeps reloading again and again. I don’t know what is 
   > happening and why?
 * It will best to approach Search Console support if there are some issues in your
   google cache.
 *  Thread Starter [muskangarg98](https://wordpress.org/support/users/muskangarg98/)
 * (@muskangarg98)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-during-setup-3/#post-15059223)
 * Ok. Thank You for your help.

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

The topic ‘Error during setup’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [muskangarg98](https://wordpress.org/support/users/muskangarg98/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/error-during-setup-3/#post-15059223)
 * Status: resolved