• 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

    (@wordpresschef)

    Hi,

    thank you for reporting it to us.

    Thread Starter wpconvert

    (@wpconvert)

    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

    (@wpconvert)

    Any update on this? Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP errors’ is closed to new replies.