Title: Error in mails
Last modified: July 15, 2022

---

# Error in mails

 *  Resolved [WhiteMoon](https://wordpress.org/support/users/lunablanco/)
 * (@lunablanco)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-in-mails-2/)
 * Hello,
 * The issue is that in the mails that are sent to the costumers (and the copy the
   admin gets) present the following error:
 *     ```
       Warning: compact(): Undefined variable $updated in /home/lunatmsj/public_html/wp-content/plugins/salon-booking-system/views/mail/summary.php on line 67
   
       Warning: compact(): Undefined variable $rescheduled in /home/lunatmsj/public_html/wp-content/plugins/salon-booking-system/views/mail/summary.php on line 67
   
       Warning: Undefined array key 0 in /home/lunatmsj/public_html/wp-content/plugins/salon-booking-system/views/mail/template.php on line 133
   
       Warning: Undefined array key 1 in /home/lunatmsj/public_html/wp-content/plugins/salon-booking-system/views/mail/template.php on line 133
   
       Warning: Undefined array key 2 in /home/lunatmsj/public_html/wp-content/plugins/salon-booking-system/views/mail/template.php on line 133
   
       Warning: Undefined array key 3 in /home/lunatmsj/public_html/wp-content/plugins/salon-booking-system/views/mail/template.php on line 133
   
       Warning: Undefined array key 4 in /home/lunatmsj/public_html/wp-content/plugins/salon-booking-system/views/mail/template.php on line 133
   
       Warning: Undefined array key 5 in /home/lunatmsj/public_html/wp-content/plugins/salon-booking-system/views/mail/template.php on line 133
       ```
   
 *     ```
       Warning: compact(): Undefined variable $updated_message in /home/lunatmsj/public_html/wp-content/plugins/salon-booking-system/views/mail/template.php on line 201
   
       Warning: compact(): Undefined variable $customer in /home/lunatmsj/public_html/wp-content/plugins/salon-booking-system/views/mail/template.php on line 201
   
       Warning: compact(): Undefined variable $updated in /home/lunatmsj/public_html/wp-content/plugins/salon-booking-system/views/mail/template.php on line 201
       ```
   
 * It only happens when the mail is for: Appointment update, manually set appointment(
   form the backend), date change.
 * when the date is set from the front end, nothing happens.
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-mails-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [WhiteMoon](https://wordpress.org/support/users/lunablanco/)
 * (@lunablanco)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-in-mails-2/#post-15835867)
 * I already managed to solve the problem.
 * The error occurred because I had php 8.0 and I think some functions are not compatible
   with this version. Downgraded to php 7.4 and it works great

Viewing 1 replies (of 1 total)

The topic ‘Error in mails’ 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/)

## Tags

 * [mail](https://wordpress.org/support/topic-tag/mail/)

 * 1 reply
 * 1 participant
 * Last reply from: [WhiteMoon](https://wordpress.org/support/users/lunablanco/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/error-in-mails-2/#post-15835867)
 * Status: resolved