Title: Notice Undefined Variable
Last modified: December 2, 2019

---

# Notice Undefined Variable

 *  Resolved [Meg Phillips](https://wordpress.org/support/users/megphillips91/)
 * (@megphillips91)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/notice-undefined-variable-28/)
 * Notice: Undefined variable: hide in /plugins/easy-pricing-tables/includes/table-
   generation/table-generator.php on line 67
 * Just thought you may want to address this one. It is usually an easy fix. Thanks.
   
   Meg

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

 *  [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/notice-undefined-variable-28/#post-12208880)
 * I’m seeing this as well.
 * The problem is this line
 *     ```
       $return .= dh_ptp_generate_simple_flat_pricing_table_html( $id, $hide );
       ```
   
 * A little searching and `dh_ptp_generate_simple_flat_pricing_table_html()` is 
   defined in two places? Presumably both files are not being loaded or there’d 
   be a fatal error.
 * in `simple-flat-table.php` the version of the function only accepts 1 parameter,
   so I’m guessing that’s some legacy stuff? but the version in the `design1.php`
   file accepts 2 parameters, but the second one `$hide` defaults to `false`.
 * For now, I’ve updated the line to
 *     ```
       $return .= dh_ptp_generate_simple_flat_pricing_table_html( $id );
       ```
   
 * to make the notice go away.
    -  This reply was modified 6 years, 4 months ago by [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/).
 *  Plugin Author [Ryan Novotny](https://wordpress.org/support/users/ryannovotny/)
 * (@ryannovotny)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/notice-undefined-variable-28/#post-12225897)
 * Hi,
 * We released a patch to fix that, thanks for the report.
 * Regards

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

The topic ‘Notice Undefined Variable’ is closed to new replies.

 * ![](https://ps.w.org/easy-pricing-tables/assets/icon-256x256.gif?rev=2922075)
 * [Pricing Table WordPress Plugin - Easy Pricing Tables](https://wordpress.org/plugins/easy-pricing-tables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-pricing-tables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-pricing-tables/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-pricing-tables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-pricing-tables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-pricing-tables/reviews/)

## Tags

 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 2 replies
 * 3 participants
 * Last reply from: [Ryan Novotny](https://wordpress.org/support/users/ryannovotny/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/notice-undefined-variable-28/#post-12225897)
 * Status: resolved