• Resolved baldursson

    (@baldursson)


    Hi,

    This issue is not really your fault, but I was wondering if you maybe know how to solve it. I have a site where the WordPress core and wp-contents are separated into their own folders to enable installaton with Composer.
    I’m trying to get the cli command working, but with no luck. Just getting Error: 'ai1wm' is not a registered wp command. However, it works fine on sites with a traditional setup. Is there anything I have to require in the wp statement?

    • This topic was modified 8 years, 7 months ago by baldursson.
Viewing 1 replies (of 1 total)
  • Thread Starter baldursson

    (@baldursson)

    Ok, I finally cracked it myself. I was using $_SERVER['DOCUMENT_ROOT'] in wp-config.php to set path to wp-content. That apparently doesn’t work so good with wp-cli, so I just replaced it with dirname(__FILE__)

Viewing 1 replies (of 1 total)

The topic ‘WP-Cli’ is closed to new replies.