Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jas Saran

    (@moonheart)

    Hello,

    Please edit your wp-config.php file set define(‘WP_DEBUG’, false);

    Thanks
    Team G Web Pro

    Thread Starter Corey Salzano

    (@salzano)

    No thanks! While debugging, I want the WP_DEBUG constant to be true, so I can debug things. Someday, I may also debug your plugin and write a patch to avoid throwing this notice.

    Plugin Author Jas Saran

    (@moonheart)

    Hello,

    Please open this page gwebpro-store-locator.php under Gwebpro Store Locator Plugin and search for below line –


    <?php if (($_GET[‘post_type’] == ‘store’) || ($post_type == ‘store’)) : ?>

    Please try to replace with this –

    <?php if (($_GET[‘post_type’] == ‘store’) || (isset($post_type) && ($post_type == ‘store’))) : ?>

    Thanks
    Team G Web Pro

    Thread Starter Corey Salzano

    (@salzano)

    It seems like the fix should instead be…

    <?php if ((isset( $_GET['post_type'] ) && $_GET['post_type'] == 'store') || (isset($post_type) && ($post_type == 'store'))) : ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Notice: Undefined index: post_type in gwebpro-store-locator.php on line 229’ is closed to new replies.