Title: Seeing Script Errors On Homepage!
Last modified: February 15, 2017

---

# Seeing Script Errors On Homepage!

 *  [fizx](https://wordpress.org/support/users/fizx/)
 * (@fizx)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/)
 * Hello,
    I just installed the plugin and it is showing these errors on the homepage:
 * These two on desktop version:
 * Notice: Undefined index: ampforwp-custom-type in plugins/accelerated-mobile-pages/
   templates/features.php on line 120
 * Notice: Undefined index: paged in /plugins/accelerated-mobile-pages/templates/
   features.php on line 136
 * AND THIS ONE ON AMP HOMEPAGE:
 * Notice: Undefined variable: fn_offset in plugins/accelerated-mobile-pages/templates/
   design-manager/design-3/index.php on line 100
 * Please help. DOnt want to remove the plugin.
    -  This topic was modified 9 years, 3 months ago by [fizx](https://wordpress.org/support/users/fizx/).

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

 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-8808142)
 * Hey [@fizx](https://wordpress.org/support/users/fizx/),
 * Can you share the URL?
 * Regards
    MARQAS
 *  Thread Starter [fizx](https://wordpress.org/support/users/fizx/)
 * (@fizx)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-8808173)
 * Sure, fiz-x.com.
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-8808274)
 * Hey [@fizx](https://wordpress.org/support/users/fizx/),
 * It seems that you have enabled WP_Debug, disable it then your problem will get
   resolved.
 * Regards
    MARQAS
 *  Thread Starter [fizx](https://wordpress.org/support/users/fizx/)
 * (@fizx)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-8808324)
 * Oh, can you please tell me how to turn it off?
 *  [lofesa](https://wordpress.org/support/users/lofesa/)
 * (@lofesa)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-8808393)
 * Edit your wp-config.php, seek wp_debug = true; and change true with false.
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-8825800)
 * Hey [@fizx](https://wordpress.org/support/users/fizx/)
 * Yep, that should fix the issue.
 * Thanks [@lofesa](https://wordpress.org/support/users/lofesa/).
 *  [courtb](https://wordpress.org/support/users/courtb/)
 * (@courtb)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-8844656)
 * It would be nice if you would address the real issue, however. There are a great
   number of PHP notices generated by this plugin, which make debugging difficult
   when a developer needs to have wp_debug = true; Please properly handle variables.
 *  Thread Starter [fizx](https://wordpress.org/support/users/fizx/)
 * (@fizx)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-8846979)
 * Hello, That problem is solved by now i am seeing increased number of errors.
 * Not a valid AMP page
    Invalid AMP pages will not have AMP-specific features in
   Google Search results LEARN ABOUT AMP Fix the following issue  Prohibited or
   invalid use of HTML Tag Invalid URL protocol ‘http:’ for attribute ‘action’ in
   tag ‘FORM [method=GET]’.
 * <form role=”search” method=”get” id=”searchform” class=”searchform” target=”_top”
   action=”[http://www.fiz-x.com”&gt](http://www.fiz-x.com”&gt);
 *  [desworks](https://wordpress.org/support/users/desworks/)
 * (@desworks)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-8856343)
 * I’m having the same issue:
 * Undefined index: ampforwp-custom-type
 * Would be great if you can fix this in the next update.
 *  [corbanb](https://wordpress.org/support/users/corbanb/)
 * (@corbanb)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-9305679)
 * Yes this is an issue. WP_DEBUG=true will fix it. But shouldn’t throw the error
   either way IMO.
 *  [Art Project Group](https://wordpress.org/support/users/artprojectgroup/)
 * (@artprojectgroup)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-9325368)
 * Please change:
    `if ( $redux_builder_amp['ampforwp-custom-type'] ) {`
 * with this:
    `if ( isset( $redux_builder_amp['ampforwp-custom-type'] ) ) {`
 * On lines 170 and 1050 from accelerated-mobile-pages/templates/features.php
 * Kind regards.
 *  [Martin Kilarski](https://wordpress.org/support/users/kmarcink/)
 * (@kmarcink)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-9326551)
 * Thanks.
 * Using the above code fixed the issue on my site.
 * All the best.
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-9329193)
 * [@artprojectgroup](https://wordpress.org/support/users/artprojectgroup/) and 
   [@kmarcink](https://wordpress.org/support/users/kmarcink/),
 * Thank you for using our plugin.
    We are already aware of this issue and it will
   be resolved soon. Reference: [https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/970](https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/970)
 * Regards
    Marqas

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

The topic ‘Seeing Script Errors On Homepage!’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 13 replies
 * 9 participants
 * Last reply from: [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/seeing-script-errors-on-homepage/#post-9329193)
 * Status: not resolved