Jump to:

10848 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Can't get Addressable to work with Silverstripe 2.4.7

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 716 Views
  • vmnbgd
    Avatar
    Community Member
    1 Post

    Can't get Addressable to work with Silverstripe 2.4.7 Link to this post

    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

  • ajshort
    Avatar
    Community Member
    244 Posts

    Re: Can't get Addressable to work with Silverstripe 2.4.7 Link to this post

    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

    716 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.