Title: Uncaught Error: Call to undefined function ReactPress\User\escapeshellcmd()
Last modified: April 2, 2024

---

# Uncaught Error: Call to undefined function ReactPress\User\escapeshellcmd()

 *  Resolved [khanhnq1406](https://wordpress.org/support/users/khanhnq1406/)
 * (@khanhnq1406)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-reactpressuserescapeshellcmd/)
 * I’m using the ReactPress plugin to integrate a React app into my WordPress site.
   After installing the React app and adding target pages, I am unable to access
   the pages and am receiving an error message in the WordPress log:
 *     ```wp-block-code
       PHP Fatal error: Uncaught Error: Call to undefined function ReactPress\User\escapeshellcmd() in httpdocs/wp-content/plugins/reactpress/public/User.php:170
   
       Stack trace:
       #0 httpdocs/wp-content/plugins/reactpress/public/User.php(93): ReactPress\User\User->repr_load_react_app()
       #1 httpdocs/wp-includes/class-wp-hook.php(324): ReactPress\User\User->enqueue_scripts()
       #2 httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
       #3 httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
       #4 httpdocs/wp-includes/script-loader.php(2262): do_action()
       #5 httpdocs/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts()
       #6 httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
       #7 httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
       #8 httpdocs/wp-includes/general-template.php(3052): do_action()
       #9 httpdocs/wp-content/themes/astra/header.php(26): wp_head()
       #10 httpdocs/wp-includes/template.php(790): require_once('...')
       #11 httpdocs/wp-includes/template.php(725): load_template()
       #12 httpdocs/wp-includes/general-template.php(48): locate_template()
       #13 httpdocs/wp-content/plugins/reactpress/templates/react-page-template.php(4): get_header()
       #14 httpdocs/wp-includes/template-loader.php(106): include('...')
       #15 httpdocs/wp-blog-header.php(19): require_once('...')
       #16 httpdocs/index.php(17): require('...')
       #17 {main}
        thrown in httpdocs/wp-content/plugins/reactpress/public/User.php on line 170
       ```
   
 * How to resolve this issue? It functions perfectly in the **LOCAL** environment.
   However, when deployed to the **PROD** environment, it encounters faults.

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

 *  Plugin Author [rockiger](https://wordpress.org/support/users/rockiger/)
 * (@rockiger)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-reactpressuserescapeshellcmd/#post-17554193)
 * It seems the function `escapeshellcmd` is deactivated by your hosting provider.
   ReactPress needs this function to properly escape the URL to the React app folder.
   
   To resolve your problem, ask your hosting provider to activate `escapeshellcmd`
   or change your hosting provider to one where it is not blocked.
 *  Thread Starter [khanhnq1406](https://wordpress.org/support/users/khanhnq1406/)
 * (@khanhnq1406)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-reactpressuserescapeshellcmd/#post-17557003)
 * Thank you so much for your support! Your suggestion was exactly what I needed
   to get it working.

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

The topic ‘Uncaught Error: Call to undefined function ReactPress\User\escapeshellcmd()’
is closed to new replies.

 * ![](https://ps.w.org/reactpress/assets/icon-256x256.png?rev=2471443)
 * [ReactPress - Create React App for Wordpress](https://wordpress.org/plugins/reactpress/)
 * [Support Threads](https://wordpress.org/support/plugin/reactpress/)
 * [Active Topics](https://wordpress.org/support/plugin/reactpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/reactpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/reactpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [khanhnq1406](https://wordpress.org/support/users/khanhnq1406/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-reactpressuserescapeshellcmd/#post-17557003)
 * Status: resolved