Title: wpterm error
Last modified: March 31, 2025

---

# wpterm error

 *  Resolved [willy70](https://wordpress.org/support/users/willy70/)
 * (@willy70)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wpterm-error/)
 * dear all,
 * I’ve a problem with this plugin. When I run php and other commands, for example“
   ls -l”, I always received “Wpterm erorr”
 * My WP is 6.7.2. Any ideas ?
 * Thanks a lot
 * -Willy-

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

 *  Thread Starter [willy70](https://wordpress.org/support/users/willy70/)
 * (@willy70)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wpterm-error/#post-18392605)
 * WpTerm check:
 * -= WPTerm compatibility check version 1.1 =-
 * -PHP version: OK (7.4.33 – LITESPEED).
 * -Operating system: OK (Linux).
 * -safe_mode: OK, disabled.
 * -Testing PHP program execution functions: 1. shell_exec: OK 2. system: OK 3. 
   passthru: OK 4. exec: OK 5. popen: OK Your server meets all the requirements 
   to run WPTerm!
 *  Plugin Author [bruandet](https://wordpress.org/support/users/bruandet/)
 * (@bruandet)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wpterm-error/#post-18394855)
 * It looks like there’s an issue with the AJAX response. The plugin uses the /wp-
   admin/admin-ajax.php endpoint.
   You can try this:1. Go to WPTerm.2. Open your 
   browser dev tools console by pressing `F12`3. Select the “Network” tab.4. Enter
   your command in WPTerm.5. Click on the /wp-admin/admin-ajax.php entry in the 
   dev tools network list, and check the “Response” tab to see what was returned
   by the AJAX endpoint.
 *  Thread Starter [willy70](https://wordpress.org/support/users/willy70/)
 * (@willy70)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wpterm-error/#post-18394954)
 * Dear [@bruandet](https://wordpress.org/support/users/bruandet/)
 * If you can see these screenshots I’m quite sure that you will hunderstand the
   problem:
 * [https://www.dropbox.com/scl/fi/oph7vzjhh8re71ctfei4o/Schermata-2025-04-02-alle-08.26.02.png?rlkey=aymk5rircxnqp7a2lkctva2qe&dl=0](https://www.dropbox.com/scl/fi/oph7vzjhh8re71ctfei4o/Schermata-2025-04-02-alle-08.26.02.png?rlkey=aymk5rircxnqp7a2lkctva2qe&dl=0)
 * [https://www.dropbox.com/scl/fi/74fjt4c1xctc7gz1n7orj/Schermata-2025-04-02-alle-08.26.12.png?rlkey=lfzmkxgtc4lm444osmv60n8px&dl=0](https://www.dropbox.com/scl/fi/74fjt4c1xctc7gz1n7orj/Schermata-2025-04-02-alle-08.26.12.png?rlkey=lfzmkxgtc4lm444osmv60n8px&dl=0)
 * [https://www.dropbox.com/scl/fi/l0slpskgcm4mn2ih6ip73/Schermata-2025-04-02-alle-08.26.18.png?rlkey=x504fnjvswkxfpcxlicm7njkz&dl=0](https://www.dropbox.com/scl/fi/l0slpskgcm4mn2ih6ip73/Schermata-2025-04-02-alle-08.26.18.png?rlkey=x504fnjvswkxfpcxlicm7njkz&dl=0)
 * [https://www.dropbox.com/scl/fi/v8dohtbmmgs4m9nsge6wb/Schermata-2025-04-02-alle-08.26.26.png?rlkey=d74e2hyxaywmzaaxcqpgja5u3&dl=0](https://www.dropbox.com/scl/fi/v8dohtbmmgs4m9nsge6wb/Schermata-2025-04-02-alle-08.26.26.png?rlkey=d74e2hyxaywmzaaxcqpgja5u3&dl=0)
 * [https://www.dropbox.com/scl/fi/y0706k2ng2a078qo0jd3q/Schermata-2025-04-02-alle-08.26.42.png?rlkey=fjqectptuqzv2rphhgffgww08&dl=0](https://www.dropbox.com/scl/fi/y0706k2ng2a078qo0jd3q/Schermata-2025-04-02-alle-08.26.42.png?rlkey=fjqectptuqzv2rphhgffgww08&dl=0)
 * “PHP -v” doesn’t work but some months ago it run without any problem.
 * Thanks a lot for you reply
 * Best Regards
 * -Willy-
 *  Thread Starter [willy70](https://wordpress.org/support/users/willy70/)
 * (@willy70)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wpterm-error/#post-18394960)
 * I make another test with “echo $?” command with the same negative result:
 * [https://www.dropbox.com/scl/fi/02wxcll85yvnxu7fhsvee/Schermata-2025-04-02-alle-08.34.38.png?rlkey=v7bbq1ahsaqp6jybstbe4nol7&dl=0](https://www.dropbox.com/scl/fi/02wxcll85yvnxu7fhsvee/Schermata-2025-04-02-alle-08.34.38.png?rlkey=v7bbq1ahsaqp6jybstbe4nol7&dl=0)
 * [https://www.dropbox.com/scl/fi/8wupm2cm9w849jj0v17gg/Schermata-2025-04-02-alle-08.34.44.png?rlkey=ujil5dzzeamtbrkk8ilkz0d9q&dl=0](https://www.dropbox.com/scl/fi/8wupm2cm9w849jj0v17gg/Schermata-2025-04-02-alle-08.34.44.png?rlkey=ujil5dzzeamtbrkk8ilkz0d9q&dl=0)
 * [https://www.dropbox.com/scl/fi/7ygqvd0077ts72ncqvqmv/Schermata-2025-04-02-alle-08.35.07.png?rlkey=j9k8wfg61kamizwapk5kwxb4n&dl=0](https://www.dropbox.com/scl/fi/7ygqvd0077ts72ncqvqmv/Schermata-2025-04-02-alle-08.35.07.png?rlkey=j9k8wfg61kamizwapk5kwxb4n&dl=0)
 * There are some commands that doesn’t work but other commands works fine, “ls”“
   cd” and so con.
 * Bye
 * -Willy-
 *  Plugin Author [bruandet](https://wordpress.org/support/users/bruandet/)
 * (@bruandet)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wpterm-error/#post-18396780)
 * There’s likely a security application installed either on the server (e.g., ModSecurity
   etc) or on your blog (e.g., a plugin) that blocked the request because it detected
   that you are sending shell commands other AJAX.
 *  Thread Starter [willy70](https://wordpress.org/support/users/willy70/)
 * (@willy70)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wpterm-error/#post-18396947)
 * Hi [@bruandet](https://wordpress.org/support/users/bruandet/)
 * I’ve just one security plugin installed
 * **Limit Login Attempts Reloaded**
 * and I can’t having any others access to server.
 * Thanks for you attention.
 * Regards
 * -Willy-
 *  Plugin Author [bruandet](https://wordpress.org/support/users/bruandet/)
 * (@bruandet)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wpterm-error/#post-18397131)
 * You can try to encode the data in Base64. Some security applications don’t decode
   it. Others like ModSecurity or NinjaFirewall will decode it and block the request.
    1. Open this file : `wpterm/wpterm-terminal.js`
    2. Line 414 you will see: `'cmd'**:** command,`
       Replace it with: `'cmd': btoa( 
       command ),`
    3. Save the file.
    4. Open this file: `wpterm/wpterm.php`
    5. Line 994 you will see: `$cmd **=** stripslashes( trim( $_POST['cmd'] ) );`
       Replace
       it with: `$cmd = stripslashes( base64_decode( trim( $_POST['cmd'] ) ) );`
    6. Save the file.
 * Go to WPTerm, make sure to reload the page to refresh the JS code, then try to
   run a command.
   If it works, I’ll apply the same patch in the next version.
 *  Thread Starter [willy70](https://wordpress.org/support/users/willy70/)
 * (@willy70)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wpterm-error/#post-18397303)
 * dear [@bruandet](https://wordpress.org/support/users/bruandet/)
 * I’ve changed wpterm.php and wpterm-terminal.js
 * after that I make some commands
 * [https://www.dropbox.com/scl/fi/v10o0tj1cfprk9ybsxvx8/Schermata-2025-04-03-alle-12.13.02.png?rlkey=gwlmjiizzg9nmfnxa5ew3jdup&dl=0](https://www.dropbox.com/scl/fi/v10o0tj1cfprk9ybsxvx8/Schermata-2025-04-03-alle-12.13.02.png?rlkey=gwlmjiizzg9nmfnxa5ew3jdup&dl=0)
 * I hope that this output is useful to understand what it happen.
 * Thanks again for your help
 * Bye
 * -Willy-
 * wpterm.php
 *     ```wp-block-code
                   //$cmd = stripslashes( trim( $_POST['cmd'] ) );
                   $cmd = stripslashes( base64_decode( trim( $_POST['cmd'] ) ) );
       ```
   
 * wpterm-terminal.js
 *     ```wp-block-code
                           //'cmd': command,
                           'cmd': btoa( command ),
       ```
   
 *  Plugin Author [bruandet](https://wordpress.org/support/users/bruandet/)
 * (@bruandet)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wpterm-error/#post-18399299)
 * You need to refresh the page (or clear your browser’s cache), because it looks
   like the JS file was cached and not reloaded by your browser since you made the
   change.
    -  This reply was modified 1 year, 1 month ago by [bruandet](https://wordpress.org/support/users/bruandet/).
 *  Thread Starter [willy70](https://wordpress.org/support/users/willy70/)
 * (@willy70)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wpterm-error/#post-18399673)
 * [@bruandet](https://wordpress.org/support/users/bruandet/) you are a genius, 
   your path works!
 * Do you also have skills with CSS ?
   Always for the same non-profit project I would
   like to create a box similar to this:
 * [https://www.dropbox.com/scl/fi/tv1257vt3yoipw981cpjb/image-and-table.png?rlkey=3qs3polxpfmcmjmog2p0klte4&dl=0](https://www.dropbox.com/scl/fi/tv1257vt3yoipw981cpjb/image-and-table.png?rlkey=3qs3polxpfmcmjmog2p0klte4&dl=0)
 * there is an image, a logo and some information inserted in various elements.
 * I can’t realize it with Elementor , what do you suggest?
   is there a software 
   that can help me generate the CSS to create that scheme?
 * Thanks
 * -Willy-
 *  Plugin Author [bruandet](https://wordpress.org/support/users/bruandet/)
 * (@bruandet)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wpterm-error/#post-18400690)
 * Sorry, I have no idea about CSS and Elementor. You may want to ask your question
   in a more general forum: [https://wordpress.org/support/forums/](https://wordpress.org/support/forums/)

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

The topic ‘wpterm error’ is closed to new replies.

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

 * 12 replies
 * 2 participants
 * Last reply from: [bruandet](https://wordpress.org/support/users/bruandet/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/wpterm-error/#post-18400690)
 * Status: resolved