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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Can't get Addressable to work with Silverstripe 2.4.7


Go to End


2 Posts   1651 Views

Avatar
vmnbgd

Community Member, 1 Post

22 April 2012 at 9:32am

Hi

I have downloaded addressable module from http://www.silverstripe.org/addressable-module/.

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

Avatar
ajshort

Community Member, 244 Posts

22 April 2012 at 1:32pm

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