Closed (won't fix)
Project:
Book access
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2009 at 13:44 UTC
Updated:
25 Jan 2009 at 23:34 UTC
Hi.,
I recently I did an upgrade from PHP 4.2 TO PHP 5.2.8 I was running Drupal 6.6 after my upgrade drupal works fine with no error everything seems to work fine I check most of my pages I add few book contents browse fine.
After I upgrade Drupal 6.6 to 6.9 is when it started my book content is not opening at all any page in the book content is working at all please help this is the error:
Fatal error: __clone method called on non-object common.inc on line 1685
thanks
David
Comments
Comment #1
avpadernoDo you see any error messages in Drupal log, or other logs that point to a line in the book_access.module file?
Comment #2
pirulo commentedI did not see any log regarding to this issue but the line pointing to the common.inc is this.
/**
* Provide a substitute clone() function for PHP4.
*/
function drupal_clone($object) {
return version_compare(phpversion(), '5.0') < 0 ? $object : clone($object); ## common.inc on line 1685
}
/**
thanks for you help
David
Comment #3
avpadernoThat function is not called directly from the project code; maybe the module calls a Drupal function, which calls
drupal_clone().To know if this is a Book Access bug, it's needed to trace back where the module is causing such error; otherwise it could be an issue caused by something else, and we are looking in the wrong direction.
I would try by disabling all the third party modules but Book Access.
Comment #4
harry slaughterthis does not sound like a book_access bug.
you can install the devel module and in its settings, set error handling to 'backtrace' and then when this error occurs, you should see the order in which functions were called that led up to this error.
with that info, you can pretty well determine the actual source of the problem. find out what function is calling drupal_clone() and you will likely have the module responsible for the error.