Title: reactpress plugin error: Fatal error: Uncaught Error: Call to undefined function
Last modified: April 17, 2024

---

# reactpress plugin error: Fatal error: Uncaught Error: Call to undefined function

 *  Resolved [stufflhd](https://wordpress.org/support/users/mouad09/)
 * (@mouad09)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/reactpress-plugin-error-fatal-error-uncaught-error-call-to-undefined-function-3/)
 * I’m encountering an error on a specific page within my WordPress website that
   uses the ReactPress plugin. I have two react projects on my site, and this error
   only occurs on the page associated with one project. nd for other whne i try 
   to access to page i see this error in page, when i enable wp_debug:
 *     ```wp-block-code
       Fatal error: Uncaught Error: Call to undefined function ReactPress\Admin\repr_log() in /home/sites/23b/e/ecae83e2ed/public_html/wp-content/plugins/reactpress/public/User.php:209 Stack trace: #0 /home/sites/23b/e/ecae83e2ed/public_html/wp-content/plugins/reactpress/public/User.php(93): ReactPress\User\User->repr_load_react_app() #1 /home/sites/23b/e/ecae83e2ed/public_html/wp-includes/class-wp-hook.php(324): ReactPress\User\User->enqueue_scripts('') #2 /home/sites/23b/e/ecae83e2ed/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #3 /home/sites/23b/e/ecae83e2ed/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /home/sites/23b/e/ecae83e2ed/public_html/wp-includes/script-loader.php(2262): do_action('wp_enqueue_scri...') #5 /home/sites/23b/e/ecae83e2ed/public_html/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts('') #6 /home/sites/23b/e/ecae83e2ed/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #7 /home/sites/23b/e/ecae83e2ed/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /home/sites/23b/e/ecae83e2ed/public_html/wp-includes/general-template.php(3052): do_action('wp_head') #9 /home/sites/23b/e/ecae83e2ed/public_html/wp-content/themes/hello-elementor/header.php(31): wp_head() #10 /home/sites/23b/e/ecae83e2ed/public_html/wp-includes/template.php(790): require_once('/home/sites/23b...') #11 /home/sites/23b/e/ecae83e2ed/public_html/wp-includes/template.php(725): load_template('/home/sites/23b...', true, Array) #12 /home/sites/23b/e/ecae83e2ed/public_html/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #13 /home/sites/23b/e/ecae83e2ed/public_html/wp-content/plugins/reactpress/templates/react-page-template.php(4): get_header() #14 /home/sites/23b/e/ecae83e2ed/public_html/wp-includes/template-loader.php(106): include('/home/sites/23b...') #15 /home/sites/23b/e/ecae83e2ed/public_html/wp-blog-header.php(19): require_once('/home/sites/23b...') #16 /home/sites/23b/e/ecae83e2ed/public_html/index.php(17): require('/home/sites/23b...') #17 {main} thrown in /home/sites/23b/e/ecae83e2ed/public_html/wp-content/plugins/reactpress/public/User.php on line 209
       Il y a eu une erreur critique sur ce site.
   
       En apprendre plus sur le débogage de WordPress.
       ```
   
 * ![](https://i0.wp.com/mddevoi.sirv.com/Images/Screenshot%202024-03-25%20102011.
   png?ssl=1)

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

 *  Plugin Author [rockiger](https://wordpress.org/support/users/rockiger/)
 * (@rockiger)
 * [2 years ago](https://wordpress.org/support/topic/reactpress-plugin-error-fatal-error-uncaught-error-call-to-undefined-function-3/#post-17763019)
 * Thank you for your post.
   It seems your hosting the PHP function `file_get_contents`.
   Without it, ReactPress doesn’t work. The error message is misleading because 
   of a namespace issue, I will fix that error in future version.
 *  Thread Starter [stufflhd](https://wordpress.org/support/users/mouad09/)
 * (@mouad09)
 * [2 years ago](https://wordpress.org/support/topic/reactpress-plugin-error-fatal-error-uncaught-error-call-to-undefined-function-3/#post-17773145)
 * [@rockiger](https://wordpress.org/support/users/rockiger/)
 * Thank you for your reply and for addressing the issue. I appreciate your efforts
   in improving ReactPress.
 * I’d like to know what steps I can take right now to solve this problem.
 *  Plugin Author [rockiger](https://wordpress.org/support/users/rockiger/)
 * (@rockiger)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/reactpress-plugin-error-fatal-error-uncaught-error-call-to-undefined-function-3/#post-17800155)
 * As I said you need hosting where the `file_get_contents` function of PHP is not
   deactivated. I can’t work around that.
 *  Thread Starter [stufflhd](https://wordpress.org/support/users/mouad09/)
 * (@mouad09)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/reactpress-plugin-error-fatal-error-uncaught-error-call-to-undefined-function-3/#post-17806977)
 * [@rockiger](https://wordpress.org/support/users/rockiger/)
 * thank you it’s working

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

The topic ‘reactpress plugin error: Fatal error: Uncaught Error: Call to undefined
function’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [stufflhd](https://wordpress.org/support/users/mouad09/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/reactpress-plugin-error-fatal-error-uncaught-error-call-to-undefined-function-3/#post-17806977)
 * Status: resolved