Uncaught Error: Call to undefined function ReactPress\User\escapeshellcmd()
-
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:
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)
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.