Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Can't get Addressable to work with Silverstripe 2.4.7


2 Posts   865 Views


22 April 2012 at 9:32am Community Member, 1 Post


I have downloaded addressable module from

I have unzipped files into ss_root/addressable/

I have tried running /dev/build?flush=1 but nothing happens.

I have then uncommented following lines in ss_root/addressable/_config.php:

Object::add_extension('class', 'Addressable');
Object::add_extension('class', 'Geocodable');

When I do another /dev/build I get the following errors:

Warning: Unknown class passed as parameter in /home/x/y/sapphire/core/Object.php on line 568

Fatal error: Uncaught exception 'ReflectionException' with message 'Class class does not exist' in /home/x/y/sapphire/core/Object.php:385 Stack trace: #0 /home/x/y/sapphire/core/Object.php(385): ReflectionClass->__construct('class') #1 /home/x/y/sapphire/core/Object.php(543): Object::uninherited_static('class', 'extensions') #2 /home/x/y/addressable/_config.php(7): Object::add_extension('class', 'Addressable') #3 /tmp/silverstripe-cache-home-x-y/manifest-main(6695): require_once('/home/x...') #4 /home/x/y/sapphire/core/ManifestBuilder.php(74): require_once('/tmp/silverstri...') #5 /home/x/y/sapphire/core/Core.php(232): ManifestBuilder::include_manifest() #6 /home/x/y/sapphire/main.php(61): require_once('/home/x...') #7 {main} thrown in /home/x/y/sapphire/core/Object.php on line 385

Is addressable compatible with Silverstripe 2.4.7?

I am doing something wrong?

Thanks, Vladimir


22 April 2012 at 1:32pm Community Member, 244 Posts

You need to replace "class" with the actual class name you want to apply the addressable behaviour to - it's just place holder text. ALso you shouldn't modify addressable/_config.php - this should go in mysite/_config.php