AttributeKey::getList('Collection') now erroring

Permalink
Weirdest thing, I created a package and, on an identical installation it is not working.

Trying to figure the problem, the code starting the error is this

$keyslist = AttributeKey::getList('Collection');


this is supposed to return a list of the attributes of the type collection

but it is now throwing this error (with part of the path removed for this post):

Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'CollectionAttributeKey' not found in /server/www/(~removed~)/concrete/models/attribute/key.php on line 107.


Any ideas? Im stumped why this would work on one site but not another, and noting I can see is different in the db. =/

adavis
 
adavis replied on at Permalink Reply
adavis
Ok, heres a twist to this one:

It works fine when in SITEWIDE SETTINGS basic cache is disabled, but throws that error when cache is enabled.

Is this a bug in the system?
adavis replied on at Permalink Reply
adavis
but of course this is not being consistent across other installs of c5. maddening. Anyone have any idea why this is occurring??

Catchable fatal error: Object of class Page could not be converted to string in /server/www/(~site~)/concrete/models/collection_version.php on line 36
adavis replied on at Permalink Reply
adavis
More info:

If I disable cache, pace my block as expected, then enable the cache, when I visit the page that block is on I get THIS error:

Catchable fatal error: Object of class Page could not be converted to string in /server/www/(~site~)/concrete/models/collection_version.php on line 36