I am in the screen at: /admin/content/publicbookings/booking/add
I fill out all the info and click save and come to a blank screen with just this error:
Fatal error: __clone method called on non-object in /includes/common.inc on line 1732
It appears to be PHP related, the chuck of code from common.inc is:
* Provide a substitute clone() function for PHP4.
*/
function drupal_clone($object) {
return version_compare(phpversion(), '5.0') < 0 ? $object : clone($object);
}
My PHP version is 5.2.11
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | bookingsapi.808788-d6.patch | 1.09 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedThis is strange .. I'll look into it, thanks.
Which OS and webserver are you using?
Comment #2
Anonymous (not verified) commentedCould you alter your drupal_clone-method and send me the output by adding something like
right before the return statement?
Comment #3
danny englander- Mac OS X (10.6.3 and MAMP Pro 1.84)
Comment #4
danny englander-- What is the best spot to insert the code you mention? thanks.
Comment #5
Anonymous (not verified) commentedSimply change
into
and look into the wachtdog-report ( admin/reports/dblog ) after visiting the failing page :)
Comment #6
danny englanderI am getting a syntax error on the added code, I am not a PHP expert, your syntax looks good though.
Comment #7
Anonymous (not verified) commentedI actually made a mistake .. it did contain a ) too much :/
Comment #8
danny englanderI am not sure if this is what you are looking for?
Comment #9
Anonymous (not verified) commentedCould you test the attached fix?
Comment #10
Anonymous (not verified) commentedApologies, forgot to change the status..
Comment #11
danny englanderThe patch worked, I was now able to get beyond that error. I think the issue I am facing now is just wrapping my arms around the entire way this works. for example I created a bookable resource but when I go the page it says "The public booking system is currently disabled. Try again later." so I guess for that I will have to read some of the documentation or open another ticket.
Comment #12
Anonymous (not verified) commentedSimply go to admin/content/publicbookings/settings and check 'Enable the public bookings form' :)
Comment #13
danny englanderThanks I see that, I think I am at a point where I can play around with it now.
Comment #14
Anonymous (not verified) commentedCommitted
Comment #16
asb commentedSame issue with publicbookings-6.x-3.x-dev from 2011-Apr-14:
Saving a "Public bookings" at
./admin/content/publicbookings/booking/addresults in the error message: "Fatal error: __clone method called on non-object in /var/www/drupal/includes/common.inc on line 1733" (not line 1732 as above).Installed version of 'Bookings API': bookingsapi -6.x-3.x-dev from 2011-Apr-14
This is probably caused by a broken handling of some validation routine, because - depending on what I fill out - I also get this message (in red):
Obviously this message is useless since it doesn't say which fields are supposed to be filled.
And yes, I filled all four fields marked as required (red *): Resource, Name, Start, End.
If I try to make the booking not recurring (by leaving the dropdown menu at "--Frequency" and "--Period", I'm getting just another nonsense error message:
As it seems it is impossible to save anything at
./admin/content/publicbookings/booking/add. Setting severity to 'major' as this seems not to work at all.Comment #17
Anonymous (not verified) commentedWhich version of PHP are you using?
Comment #18
asb commented# php -version
PHP 5.2.6-1+lenny10 with Suhosin-Patch 0.9.6.2 (cli) (built: Mar 19 2011 02:57:53)