bacbos / bolt-menu-editor

a visual menu-editor extension for the awesome bolt cms
Other
21 stars 23 forks source link

Calling compat() function to define BOLT_CONFIG_DIR #6

Closed drmikecrowe closed 9 years ago

bacbos commented 9 years ago

Thanks for reporting @drmikecrowe Can you tell me what bolt version you have installed that causes this?

drmikecrowe commented 9 years ago

I think it's the latest. I just found bolt about 1w ago and installed it via:

composer create-project bolt/composer-install bolt.dev --prefer-dist

(I have .dev domains pointed to my local apache install for development, that's not indicating the dev version of Bolt).

I was getting to this function:

public function MenuEditor()
{
    /**
     * check if menu.yml is writable
     */
    $file = BOLT_CONFIG_DIR . '/menu.yml';

and BOLT_CONFIG_DIR was undefined.

On Thu, Feb 5, 2015 at 3:37 AM, Steven Wüthrich notifications@github.com wrote:

Thanks for reporting @drmikecrowe https://github.com/drmikecrowe Can you tell me what bolt version you have installed that causes this?

— Reply to this email directly or view it on GitHub https://github.com/bacbos/bolt-menu-editor/pull/6#issuecomment-73011759.

bacbos commented 9 years ago

I can't reproduce this on the latest codebase of bolt (dev-branch)

bolt/composer-install installs the latest release which currently is 2.0.5 from around 15 days ago https://github.com/bolt/bolt/releases Can't tell what is causing the error on your end but if BOLT_CONFIG_DIR isn't defined when an extension is loaded, then it's an issue that concerns bolt, not the menu-editor. Maybe it was a known bug and someone fixed it the current dev-branch?