• Resolved awilmsmeier

    (@awilmsmeier)


    Hi,
    I came across a few messages in the debug log that would indicate there might be a problem with the plugin code. See below:

    1) When I view a booking calendar, I see a PHP Notice:
    [02-Feb-2018 17:12:52 UTC] PHP Notice: Use of undefined constant TEST – assumed ‘TEST’ in /home/andrea47/www/dev.peoplesfactory.com/wp-includes/class-wp-query.php on line 3724
    (Seems like the “page” parameter is set to an integer value, not as a page object)
    This message show multiple times in the debug.log

    2) When I view a booking form, I see the following additional error:
    [02-Feb-2018 17:06:53 UTC] PHP Notice: Undefined variable: events_interval in /home/andrea47/www/dev.peoplesfactory.com/wp-content/plugins/booking-activities/controller/controller-booking-system.php on line 103

    I am using version 1.3.1 – otherwise it seems to work just fine.

    Best regards,
    Andreas

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Booking Activities Team

    (@bookingactivities)

    Hello Andreas,

    Thank you for this report, I have fixed the second one, but I can’t reproduce the first one.

    It appears when you go to “Bookings” page in the backend?
    Can you also confirm that it appears when only Booking Activities is activated, with Twenty Seventeen theme? (There is no occurence of “TEST” in Booking Activities’ code)

    Regards

    Thread Starter awilmsmeier

    (@awilmsmeier)

    My apologies, I copied the wrong message. The reference to “TEST” was coming from the code I added dump the variable to the error log so please ignore that. Here is the message I intended to copy:

    [02-Feb-2018 18:53:37 UTC] PHP Notice: Trying to get property of non-object in /home/andrea47/www/dev.peoplesfactory.com/wp-includes/class-wp-query.php on line 3728
    Best regards,
    Andreas

    Plugin Author Booking Activities Team

    (@bookingactivities)

    Sorry I can’t reproduce it either.
    Do you confirm you have only Booking Activities and Twenty Seventeen theme activated?
    Booking Activities doesn’t seem to use WP_Query class (directly at least) where the error is triggered.

    Can you give me the steps to reproduce the error?

    Thread Starter awilmsmeier

    (@awilmsmeier)

    I^ll check and come back with more info.

    Thread Starter awilmsmeier

    (@awilmsmeier)

    Not sure if this is relevant or critical, but here is something I found out.

    I checked a few more things and the messages seem to have to do with the extra fields in the product variations.

    – When I edited variations and press save I get a message in the debug log
    – When deactivate “Booking Activities” and try again, the message does not show in the log

    The message I am getting with that:
    [10-Feb-2018 17:01:36 UTC] PHP Notice: Array to string conversion in /home/andrea47/www/dev.peoplesfactory.com/wp-includes/formatting.php on line 1045

    I can also share a backtrace (24MB compresses size if that helps.

    There I find references to Booking Activities:

    [1]=>
    array(4) {
    [“file”]=>
    string(125) “/home/andrea47/www/dev.peoplesfactory.com/wp-content/plugins/booking-activities/controller/controller-woocommerce-backend.php”
    [“line”]=>
    int(888)
    [“function”]=>
    string(8) “esc_attr”
    [“args”]=>
    array(1) {
    [0]=>
    array(1) {
    [0]=>
    int(1)
    }
    }
    }

    Plugin Author Booking Activities Team

    (@bookingactivities)

    Hello Andreas,

    Thank you I could reproduce the error and fix it!
    It will be in the next release. It was a minor issue this time, but thanks for pointing it out!

    Regards,
    Yoan

    Plugin Author Booking Activities Team

    (@bookingactivities)

    Hello,

    Booking Activities 1.4 fixes numerous PHP notices error.
    I will close this thread but if you find another PHP notice / error, please let me know in a new thread.

    Thanks a lot for your contribution,
    Regards,
    Yoan

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Notice / Error Message’ is closed to new replies.