• Hello,

    when I run wp cli info I get the following:

    Shell:  /bin/bash
    PHP binary:     /usr/bin/php
    PHP version:    7.2.9
    php.ini used:   /etc/php.ini
    WP-CLI root dir:        phar://wp-cli.phar/vendor/wp-cli/wp-cli
    WP-CLI vendor dir:      phar://wp-cli.phar/vendor
    WP_CLI phar path:       /var/www/example.com
    WP-CLI packages dir:
    WP-CLI global config:
    WP-CLI project config:
    WP-CLI version: 2.4.0

    And it seems to be working fine.

    However when I run other commands such as wp media regenerate 123 or wp media image-size I get a bunch of information such as:

    PHP Warning:  require_once(//includes/getLanguageDict.php): failed to open stream: No such file or directory in /var/www/example.com/wp-content/mods/motopress-content-editor/includes/ce/templates/landing.php on line 3
    Warning: require_once(//includes/getLanguageDict.php): failed to open stream: No such file or directory in /var/www/example.com/wp-content/mods/motopress-content-editor/includes/ce/templates/landing.php on line 3
    PHP Fatal error:  require_once(): Failed opening required '//includes/getLanguageDict.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/example.com/wp-content/mods/motopress-content-editor/includes/ce/templates/landing.php on line 3
    Fatal error: require_once(): Failed opening required '//includes/getLanguageDict.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/example.com/wp-content/mods/motopress-content-editor/includes/ce/templates/landing.php on line 3
    <div class="alert"><span class="object">id: mp_row, name: Row, icon: , closeType: enclosed, resize: none, position: 0, show: 1</span><ul class="property"><li>icon:<ul class="errors"><li>File //images/ce/object/no-object.png does not exist</li></ul> 
    ...
    perty"><li>icon:<ul class="errors"><li>File //images/ce/object/sidebar.png does not exist</li></ul></li></ul></div><div class="alert"><span class="object">id: mp_grid, name: Grid, icon: , position: 0, show: </span><ul class="property"><li>icon:<ul class="errors"><li>File //images/ce/group/no-group.png does not exist</li></ul></li></ul></div><div class="alert"><span class="object">id: mp_text, name: Text, icon: , position: 0, show: 1</span><ul class="property"><li>icon:<ul class="errors"><li>File //images/ce/group/no-group.png does not exist</li><li>File //images/ce/group/text.png does not exist</li></ul></li></ul></div><div class="alert"><span class="object">id: mp_image, name: Image, icon: , position: 10, show: 1</span><ul class="property"><li>icon:<ul class="errors"><li>File //images/ce/group/no-group.png does not exist</li><li>File //images/ce/group/image.png does not exist</li></ul></li></ul></div><div class="alert"><span class="object">id: mp_button, name: Button, icon: , position: 20, show: 1</span><ul class="property"><li>icon:<ul class="errors"><li>File //images/ce/group/no-group.png does not exist</li><li>File //images/ce/group/button.png does not exist</li></ul></li></ul></div><div class="alert"><span class="object">id: mp_media, name: Media, icon: , position: 30, show: 1</span><ul class="property"><li>icon:<ul class="errors"><li>File //images/ce/group/no-group.png does not exist</li><li>File //images/ce/group/media.png does not exist</li></ul></li></ul></div><div class="alert"><span class="object">id: mp_other, name: Other, icon: , position: 40, show: 1</span><ul class="property"><li>icon:<ul class="errors"><li>File //images/ce/group/no-group.png does not exist</li><li>File //images/ce/group/other.png does not exist</li></ul></li></ul></div><div class="alert"><span class="object">id: mp_wordpress, name: WordPress, icon: , position: 50, show: 1</span><ul class="property"><li>icon:<ul class="errors"><li>File //images/ce/group/no-group.png does not exist</li><li>File //images/ce/group/wordpress.png does not exist</li></ul></li></ul></div>[

    Can anybody help please?

    P.s. it seems related to this specific site. If I try in the root of other sites, they work well. Only for this specific site there are problems

    • This topic was modified 4 years, 2 months ago by utnalove.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hey there!

    My first question is what are the differences between those sites? Do they all have the same plugins installed and active?

    Not sure if you have tried using the --skip-plugins yet to see if that may work. Just from that message it could be trying to load up something; I’ve seen some redirection plugins do things like that too.

    Thread Starter utnalove

    (@utnalove)

    I found out that there is some problem in the plugin that is made by the theme autor of that specific site.

    This is why --skip-plugins works.

    I wrote to the theme author for help

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Oh awesome, it sounds like you were able to get it running then, correct?

    Thread Starter utnalove

    (@utnalove)

    yes with –skip-plugins it works. Without it, not

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP CLI error when running commands’ is closed to new replies.