Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rockiger opened this issue Apr 30, 2024 · 0 comments · May be fixed by #58
Open

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

rockiger opened this issue Apr 30, 2024 · 0 comments · May be fixed by #58

Comments

@rockiger
Copy link
Owner

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:

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.

BlairCooper added a commit to BlairCooper/reactpress that referenced this issue May 27, 2024
Fixes rockiger#57
With the "Fix security issues" change, repr_log() was moved from
Admin.php to reactpress.php but the namespace reference in User.php was
not updated, or added to Controller.php.
@BlairCooper BlairCooper linked a pull request May 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant