daniellowtw / PicoCMS-Images

An image plugin for PicoCMS
3 stars 1 forks source link

Use of undefined constant #1

Open ghost opened 4 years ago

ghost commented 4 years ago

When adding pico_images.php to the plugin directory following error is thrown when loading the website:

Warning: Use of undefined constant CONTENT_DIR - assumed 'CONTENT_DIR' (this will throw an Error in a future version of PHP) in \pico\plugins\pico_images.php on line 22

Warning: Use of undefined constant ROOT_DIR - assumed 'ROOT_DIR' (this will throw an Error in a future version of PHP) in \pico\plugins\pico_images.php on line 23

mhzawadi commented 3 years ago

Hey @RandomRouter

I have forked this repo and have a working plugin - https://github.com/mhzawadi/PicoCMS-Images