Title: Undefined variable $post
Last modified: May 20, 2021

---

# Undefined variable $post

 *  [Nguyễn Hiếu](https://wordpress.org/support/users/batboyboy/)
 * (@batboyboy)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-post-5/)
 * Undefined variable $post in <b>\wp-content\plugins\salon-booking-system\src\SLB_Discount\
   Plugin.php</b> on line <b>239</b><br />
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-variable-post-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Nguyễn Hiếu](https://wordpress.org/support/users/batboyboy/)
 * (@batboyboy)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-post-5/#post-14463695)
 * in Email a hahe a error
 *     ```
       Warning: compact(): Undefined variable $updated_message in \wp-content\plugins\salon-booking-system\views\mail\template.php on line 183
   
       Warning: compact(): Undefined variable $customer in a\wp-content\plugins\salon-booking-system\views\mail\template.php on line 183
   
       Warning: compact(): Undefined variable $updated in \wp-content\plugins\salon-booking-system\views\mail\template.php on line 183
   
       Warning: compact(): Undefined variable $remind in \wp-content\plugins\salon-booking-system\views\mail\template.php on line 183
       ```
   
 *  Plugin Author [Dimitri Grassi](https://wordpress.org/support/users/wordpresschef/)
 * (@wordpresschef)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-post-5/#post-14480772)
 * Hi,
 * having the WordPress debug disabled those notices will not be displayed, we’ll
   try to fix them in the upcoming version of our plugin.
 *  Thread Starter [Nguyễn Hiếu](https://wordpress.org/support/users/batboyboy/)
 * (@batboyboy)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-post-5/#post-14532725)
 * i have so more Error
 * Warning: Undefined property: SLN_CheckoutField::$isDefault in \wp-content\plugins\
   salon-booking-system\views\shortcode\salon_details.php on line 168
    and line 
   168 if(!$field->isDefault) { on ?sln_step_page=secondary in php 8
    -  This reply was modified 4 years, 10 months ago by [Nguyễn Hiếu](https://wordpress.org/support/users/batboyboy/).
 *  Thread Starter [Nguyễn Hiếu](https://wordpress.org/support/users/batboyboy/)
 * (@batboyboy)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-post-5/#post-14532748)
 * and on EMAIL
 * Warning: compact(): Undefined variable $remind in \wp-content\plugins\salon-booking-
   system\views\mail\template.php on line 183
 * line 183 <?php echo $plugin->loadView(‘mail/’ . $contentTemplate, compact(‘booking’,‘
   plugin’, ‘updated_message’, ‘customer’, ‘forAdmin’, ‘updated’, ‘remind’)) ?>

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

The topic ‘Undefined variable $post’ is closed to new replies.

 * ![](https://ps.w.org/salon-booking-system/assets/icon-256x256.gif?rev=3214950)
 * [Salon Booking System - Free Version](https://wordpress.org/plugins/salon-booking-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/salon-booking-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/salon-booking-system/)
 * [Active Topics](https://wordpress.org/support/plugin/salon-booking-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/salon-booking-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/salon-booking-system/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Nguyễn Hiếu](https://wordpress.org/support/users/batboyboy/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-post-5/#post-14532748)
 * Status: not resolved