storypioneers / kirby-selector

file selector panel field for Kirby CMS
GNU General Public License v3.0
128 stars 23 forks source link

Selector not working at all #45

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi – I'd love to get Selector up and running but having a major issue – I install as required (site/fields/selector/ etc.) and add the correct guff to my blueprint (copy and paste from Selector git page) but when I browse through Panel to an affected page I get this: The localhost page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500

I'm running this locally (obviously) via mamp. Any ideas where to go from here? Thanks.

ghost commented 8 years ago

update – ran it on a remote server and got an error on line 160 – which I promptly commented out to no apparent harm – seems to have resolved things when replicated locally too. Not sure how awesome an idea my solution is though.

156 // Load language files 157 if (file_exists($baseDir . $lang . '.php')) { 158 require $baseDir . $lang . '.php'; 159 } else { 160 require $baseDir . 'en.php'; 161 }

Thiousi commented 8 years ago

Have you copied the languages folder inside your site/fields/selector/ folder?

gera446 commented 7 years ago

Same thing here!

gera446 commented 7 years ago

Seems like the structure in the Kirby update changes the plugin functionality. Add the selector files in site/fields/ without the selector folder. That works for me

gera446 commented 7 years ago

I know how to fix this.

You only need to rename the folder in your plugins directory

It seems that the new Kirby version have a new naming convention

Just name your field directory as the fallowing sample site/plugins/field-selector

This will make it works