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
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
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?
I^ll check and come back with more info.
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)
}
}
}
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
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