• Resolved Ashish Jangra

    (@ashishjangra-1)


    Warning: Use of undefined constant AMPFORWP_CUSTOM_THEME – assumed ‘AMPFORWP_CUSTOM_THEME’ (this will throw an Error in a future version of PHP) in /wp-content/plugins/accelerated-mobile-pages/components/theme-loader.php on line 18

    Warning: require_once(/functions.php): failed to open stream: No such file or directory in /wp-content/plugins/accelerated-mobile-pages/components/theme-loader.php on line 22

    Fatal error: require_once(): Failed opening required ‘/functions.php’ (include_path=’\php\PEAR’) in /wp-content/plugins/accelerated-mobile-pages/components/theme-loader.php on line 22

    There has been a critical error on your website.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please share your website URL? So we can analyze it and help you fix the issue for you.

    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    Here is the URL

    https://bit.ly/2Uqx6gl

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    AMP is currently disabling on your website. For testing purpose can you please enable that option?

    • This reply was modified 4 years, 9 months ago by Ahmed Kaludi.
    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    This issue is fixed in the latest version of our plugin. Can you please update the plugin to the latest version(1.0.21)?

    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    Hi Thank you for you support.. One last help

    How can we enable on Custom Taxonomy Archive Page .. i.e my custom taxonomies are products so siteurl.com?products=productname&amp=true doesn’t work.

    As we have custom archive for product taxonomy so we already have URL routes defined.

    add_rewrite_rule( ‘^/blogs/category/products/([^/]*)/?’, ‘index.php?products=$matches[1]’,’top’ );

    Now i have set

    add_rewrite_rule( ‘^/blogs/category/products/([^/]*)/amp?’, ‘/blogs/category/products/=$matches[1]/?amp’,’top’ );

    this converts my url
    /blogs/category/products/PRODUCTNAME/amp

    But as i have mentioned we have custom RULES to get the posts accordingly which logic are written under custom archive pages.

    But its always keeps me on default archive page. I have create a my custom file as well but its not working

    Please suggest

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please enable the custom post type option and custom taxonomies in AMP?
    AMP->settings->general
    Like this: https://prnt.sc/r0podp
    And save Permalink in AMP
    AMP->Settings->Permalink
    Like this: https://monosnap.com/file/h4lpLeBB0gAgJCFNb4gd4Pwo8PLS7W

    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    I didn’t see any option for Custom Taxonomy in settings. Refer to the screenshot

    https://we.tl/t-8BoxPZmvYl

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please tell me you have any custom taxonomies in custom post types? If you have custom taxonomies in WordPress, it will be shown automatically. If you don’t have any custom taxonomies it does not show.

    • This reply was modified 4 years, 9 months ago by Ahmed Kaludi.
    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    Yes we have custom taxonomy.

    // Register Custom Taxonomy
    function products_taxonomy() {
    $labels = array(
    ‘name’ => _x( ‘Products’, ‘Taxonomy General Name’, ‘aff’ ),
    ‘menu_name’ => __( ‘Products’, ‘aff’ ),
    ‘all_items’ => __( ‘All Product’, ‘aff’ ),
    ‘parent_item’ => __( ‘Parent Product’, ‘aff’ ),
    ‘parent_item_colon’ => __( ‘Parent Product :’, ‘aff’ ),
    ‘new_item_name’ => __( ‘New Product Name’, ‘aff’ ),
    ‘add_new_item’ => __( ‘Add New Product’, ‘aff’ ),
    ‘edit_item’ => __( ‘Edit Product’, ‘aff’ ),
    ‘update_item’ => __( ‘Update Product’, ‘aff’ ),
    ‘separate_items_with_commas’ => __( ‘Separate Product with commas’, ‘aff’ ),
    ‘search_items’ => __( ‘Search Product’, ‘aff’ ),
    ‘add_or_remove_items’ => __( ‘Add or Remove Product’, ‘aff’ ),
    ‘choose_from_most_used’ => __( ‘Choose from Most Used Product’, ‘aff’ ),
    );

    $args = array(
    ‘labels’ => $labels,
    ‘hierarchical’ => true,
    ‘public’ => false,
    ‘show_ui’ => true,
    ‘show_admin_column’ => true,
    ‘show_in_nav_menus’ => false,
    ‘show_tagcloud’ => false,
    ‘rewrite’ => array(‘slug’ => ‘products’),
    );

    register_taxonomy( ‘products’, array(‘resources’,’post’), $args );
    }

    // Hook into the ‘init’ action
    add_action( ‘init’, ‘products_taxonomy’, 3);

    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    Ohh I see its cause of “Public => false”

    But Taxonomies is not going to be the public

    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    I think I Figure this out. Thanks for your support.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Glad that it’s working now.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Fatal Error With in plugin’ is closed to new replies.