PHP Fatal error: Call to a member function getCollectionID() on a non-object in /www/webdev/c5/concrete/models/area.php on line 120
PHP Fatal error: Call to a member function getCollectionID() on a non-object in /www/c5/concrete/models/area.php on line 120
It seems like the sitemap / file manager work but now I am also getting some weird popup Ajax box with "More" in it and if you click on it it just takes you to some broken page.
Any thoughts, C5'ers?
Exact line and file though.
This leads me to believe that this is somehow database related.
if(!$c || !method_exists($c,'getCollectionID')) return;
does that fix it, or does it just make another error show up?
$cID = $c->getCollectionID();
obviously something is calling this method without someone passing the collection id to it properly...but where is that happening?
If you use the same idea there, the errors continue on down to line 325
$blocksToDisplay = ($alternateBlockArray) ? $alternateBlockArray : $ourArea->getAreaBlocksArray($c, $ap);
I just replaced the area.php file with a copy from a fresh install, works now.
"PHP Fatal error: method_exists() [<a href='function.method-exists'>function.method-exists</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "MyOwnBlockController" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /*/*/public_html/concrete/libraries/database_indexed_search.php on line 96"
Tried replacing area.php - no change
I've compared my block to the example block in the developer section and the core blocks and am not finding any monumental differences in how I'm doing stuff.
Is it possible that these errors are related?
Tried replacing with new version and tried replacing with area.php from a successful fresh install...no joy.
Any fix on this yet?
Any tipps? It's rather urgent...