Title: PHP errors
Last modified: March 26, 2021

---

# PHP errors

 *  [wpconvert](https://wordpress.org/support/users/wpconvert/)
 * (@wpconvert)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-errors-231/)
 * Hi
 * Just thought I’d report a persistent php error I’m seeing whilst testing the 
   plugin – hopefully this will help with development…and clean things up a bit?
 * PHP Warning: The use statement with non-compound name ‘SLN_Plugin’ has no effect
   in /home/mydomain/public_html/wp-content/plugins/salon-booking-system/src/SLN/
   Admin/Customers/List.php on line 7
 * I am getting others here and there – I’ll continue to check and take note of 
   what’s happening at the time and report back if necessary.
 * Thanks

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

 *  Plugin Author [Dimitri Grassi](https://wordpress.org/support/users/wordpresschef/)
 * (@wordpresschef)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-errors-231/#post-14248123)
 * Hi,
 * thank you for reporting it to us.
 *  Thread Starter [wpconvert](https://wordpress.org/support/users/wpconvert/)
 * (@wpconvert)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-errors-231/#post-14258986)
 * No problem. You might also wish to look into this…
    When someone makes a booking,
   it seems to be successful but this appears in the php error log:
 * [29-Mar-2021 19:09:29 UTC] PHP Warning: array_map(): Expected parameter 2 to 
   be an array, null given in /home/mydomain/public_html/wp-content/plugins/salon-
   booking-system/src/SLN/Action/Ajax/CalcBookingTotal.php on line 79
    [29-Mar-2021
   19:09:29 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/mydomain/
   public_html/wp-content/plugins/salon-booking-system/src/SLN/Action/Ajax/CalcBookingTotal.
   php on line 81 [29-Mar-2021 19:17:05 UTC] SLN booking date/time: 2021-04-14 16:
   00 [29-Mar-2021 19:17:05 UTC] SLN booking services: Array ( [1263] => 1286 )
 * [29-Mar-2021 19:17:05 UTC] SLN booking settings: Array
    ( [attendant_enabled]
   => 1 )
 * [29-Mar-2021 19:17:05 UTC] SLN booking service id: 1263
    [29-Mar-2021 19:17:05
   UTC] SLN booking service attendant enabled: 1 [29-Mar-2021 19:17:05 UTC] SLN 
   booking service attendant id: 1286 [29-Mar-2021 19:17:08 UTC] SLN booking date/
   time: 2021-04-14 16:00 [29-Mar-2021 19:17:08 UTC] SLN booking services: Array([
   1263] => 1288 )
 * [29-Mar-2021 19:17:08 UTC] SLN booking settings: Array
    ( [attendant_enabled]
   => 1 )
 * [29-Mar-2021 19:17:08 UTC] SLN booking service id: 1263
    [29-Mar-2021 19:17:08
   UTC] SLN booking service attendant enabled: 1 [29-Mar-2021 19:17:08 UTC] SLN 
   booking service attendant id: 1288 [29-Mar-2021 19:22:54 UTC] PHP Warning: The
   use statement with non-compound name ‘SLN_Plugin’ has no effect in /home/mydomain/
   public_html/wp-content/plugins/salon-booking-system/src/SLN/Admin/Customers/List.
   php on line 7 [29-Mar-2021 19:52:36 UTC] PHP Warning: The use statement with 
   non-compound name ‘SLN_Plugin’ has no effect in /home/mydomain/public_html/wp-
   content/plugins/salon-booking-system/src/SLN/Admin/Customers/List.php on line
   7 [30-Mar-2021 12:20:53 UTC] SLN booking date/time: 2021-04-14 13:00 [30-Mar-
   2021 12:20:53 UTC] SLN booking services: Array ( [1267] => 1284 )
 * [30-Mar-2021 12:20:53 UTC] SLN booking settings: Array
    ( [attendant_enabled]
   => 1 )
 * [30-Mar-2021 12:20:53 UTC] SLN booking service id: 1267
    [30-Mar-2021 12:20:53
   UTC] SLN booking service attendant enabled: 1 [30-Mar-2021 12:20:53 UTC] SLN 
   booking service attendant id: 1284 [30-Mar-2021 12:22:19 UTC] SLN booking date/
   time: 2021-04-16 12:30 [30-Mar-2021 12:22:19 UTC] SLN booking services: Array([
   1267] => 1284 )
 * [30-Mar-2021 12:22:19 UTC] SLN booking settings: Array
    ( [attendant_enabled]
   => 1 )
 * [30-Mar-2021 12:22:19 UTC] SLN booking service id: 1267
    [30-Mar-2021 12:22:19
   UTC] SLN booking service attendant enabled: 1 [30-Mar-2021 12:22:19 UTC] SLN 
   booking service attendant id: 1284 [31-Mar-2021 11:09:26 UTC] SLN booking date/
   time: 2021-04-12 10:00 [31-Mar-2021 11:09:26 UTC] SLN booking services: Array([
   1248] => 1276 )
 * [31-Mar-2021 11:09:26 UTC] SLN booking settings: Array
    ( [attendant_enabled]
   => 1 )
 * [31-Mar-2021 11:09:26 UTC] SLN booking service id: 1248
    [31-Mar-2021 11:09:26
   UTC] SLN booking service attendant enabled: 1 [31-Mar-2021 11:09:26 UTC] SLN 
   booking service attendant id: 1276 [31-Mar-2021 11:41:41 UTC] PHP Warning: The
   use statement with non-compound name ‘SLN_Plugin’ has no effect in /home/mydomain/
   public_html/wp-content/plugins/salon-booking-system/src/SLN/Admin/Customers/List.
   php on line 7`
 * ————————————————–
 * Hope it means something to you
    Thanks again
 *  Thread Starter [wpconvert](https://wordpress.org/support/users/wpconvert/)
 * (@wpconvert)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-231/#post-14320164)
 * Any update on this? Thanks

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

The topic ‘PHP errors’ 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

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

 * 3 replies
 * 2 participants
 * Last reply from: [wpconvert](https://wordpress.org/support/users/wpconvert/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/php-errors-231/#post-14320164)
 * Status: not resolved