Title: Make compatible with WP CLI
Last modified: June 5, 2024

---

# Make compatible with WP CLI

 *  Resolved [justin-bigscoots](https://wordpress.org/support/users/justin-bigscoots/)
 * (@justin-bigscoots)
 * [2 years ago](https://wordpress.org/support/topic/make-compatible-with-wp-cli/)
 * You’re breaking all aspects of WP CLI 😑even if we attempt to skip loading the
   plugin
 *     ```wp-block-code
       # wp option get siteurl --skip-plugins=decalog
       PHP Parse error:  syntax error, unexpected '|', expecting variable (T_VARIABLE) in /home/nginx/domains/domain.com/public/wp-content/plugins/decalog/includes/api/class-logger.php on line 60
       Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /home/nginx/domains/domain.com/public/wp-content/plugins/decalog/includes/api/class-logger.php on line 60
       Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [2 years ago](https://wordpress.org/support/topic/make-compatible-with-wp-cli/#post-17804244)
 * First of all, **hello** – it doesn’t cost anything 😉
 * The error you see is due to the fact you’re trying to enforce PHP version… DecaLog
   works only with PHP 8.1 or higher. You’re looking to run it with PHP 7 and that
   can’t work.
 *  [jazir5](https://wordpress.org/support/users/jazir5/)
 * (@jazir5)
 * [2 years ago](https://wordpress.org/support/topic/make-compatible-with-wp-cli/#post-17808196)
 * [@pierrelannoy](https://wordpress.org/support/users/pierrelannoy/)
 * The TasteWP demo site in the plugin description gets the same error. The demo
   site is completely inaccessible. If the plugin is incompatible with PHP 7.x, 
   can you implement a PHP version check to prevent Decalog activation with a notification
   that PHP must be upgraded to PHP 8.1+?
    -  This reply was modified 2 years ago by [jazir5](https://wordpress.org/support/users/jazir5/).
    -  This reply was modified 2 years ago by [jazir5](https://wordpress.org/support/users/jazir5/).
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [2 years ago](https://wordpress.org/support/topic/make-compatible-with-wp-cli/#post-17808380)
 * It is already implemented by WordPress. You can not install/update it via wp 
   admin as the plugin header specify 8.1 as minimal requirement…
 * And it’s displayed wherever possible…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Make compatible with WP CLI’ is closed to new replies.

 * ![](https://ps.w.org/decalog/assets/icon-256x256.png?rev=2168815)
 * [DecaLog](https://wordpress.org/plugins/decalog/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/decalog/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/decalog/)
 * [Active Topics](https://wordpress.org/support/plugin/decalog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/decalog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/decalog/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/make-compatible-with-wp-cli/#post-17808380)
 * Status: resolved