briceburg/silverstripe-pickerfield

installation question

stevevu opened this issue · 5 comments

Hi @briceburg,

Great module, exactly what I'm looking for. Unfortunately, I get a:

Class PickerField not found error

I tried to install the module under my server's document root in both the following folders:

  1. [docroot]/silverstripe-pickerfield
  2. [docroot]/pickerfield

(I also installed Andrew Short's GridFieldExtensions under [docroot]/silverstripe-gridfieldextensions)

and also ran /dev/build/?flush=all. I also reloaded the CMS with ?flush=all, but stil get the error.

I am using SS 3.0.x.

thanks for any suggestions.

stevevu,

Strange. It shouldn't much matter what the directory is providing it's relative to the SilverStripe doc root and contains the _config folder, and that the manifest has been flushed via ?flush=all.

Are you calling new Pickerfield(...) inside a getCMSFields method? This module is tested under SS 3.1 although it should work under 3.0 [if not, I'll fix it for you!]. Regardless of the version; you should be getting a different error other than Class PickerField not found error.

Perhaps you can try manually clearing the manifest to make sure it's being rebuilt (look in /tmp/silverstripe-* to see if your site's file cache folder is there).

Yikes! I needed fhe _config/ folder. I piston imported the module and for some reason, the _config/ folder in your repo didn't get pulled. I just manually created the folder locally and it works now! Still getting some errors but will look into it first before pinging you again. Thanks again for the speedy support!

it looks like the _config folder has a .gitignore in it so folks using git for deployment are missing this folder

@botheredbybees hey -- interesting. I explicitly placed a .gitignore file in the _config file so that it would be checked into git (as git ignored empty directories). Is the directory missing when you clone/checkout the repo?

Yes, the directory is missing. I suspect it has something to do with my own .gitignore file now.

Cheers,
Peter
0402 525 482

On 1 Jul 2014, at 3:14 pm, Brice Burgess notifications@github.com wrote:

@botheredbybees hey -- interesting. I explicitly placed a .gitignore file in the _config file so that it would be checked into git (as git ignored empty directories). Is the directory missing when you clone/checkout the repo?


Reply to this email directly or view it on GitHub.