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

TypeError: (r.render) is not a function in Yoast SEO Classic Editor Integration #21923

Open
2 tasks done
izzygld opened this issue Dec 16, 2024 · 3 comments
Open
2 tasks done

Comments

@izzygld
Copy link

izzygld commented Dec 16, 2024

Description of what happened:

While attempting to edit a post in WordPress using the Classic Editor, a JavaScript error occurs that prevents proper rendering of certain Yoast SEO functionalities. The error appears to stem from an undefined reference in the r.render() function.


To Reproduce:

Step-by-step reproduction instructions:

  1. Log in to the WordPress admin panel.
  2. Navigate to the Posts section and attempt to edit an existing post using the Classic Editor.
  3. Observe the console error in developer tools or monitor Sentry logs.

Expected Results:

  • No JavaScript errors, and all Yoast SEO functionalities work correctly in the Classic Editor.

Actual Results:

  • A TypeError: (r.render) is not a function occurs in the Yoast SEO plugin file /content/plugins/wordpress-seo/js/dist/classic-editor.

Screenshots, screen recording, or code snippet:

screencapture-sentry-oustatic-organizations-orthodox-union-issues-131842-2024-12-16-12_02_36

Additional Details (from Sentry):

  • URL: /wp-admin/post.php
  • Environment: Production
  • WordPress Version: 6.7.1
  • Yoast SEO Version: Latest (24.0)
  • Browser: Chrome 131.0.0
  • OS: Mac OS X 10.15.7

Technical Info:

  • If relevant, which editor is affected (or editors):
  • Classic Editor
  • Which browser is affected (or browsers):
  • Chrome

Used versions:

  • Device you are using: MacBook Pro
  • Operating system: Mac OS X 10.15.7
  • PHP version: 8.1
  • WordPress version: 6.7.1
  • Yoast SEO version: 24.0
  • Classic Editor plugin version: 1.6.7

@josevarghese
Copy link
Contributor

Hi @izzygld

Thanks for creating the issue. I tried to reproduce it using WordPress Playground, with Classic Editor and Yoast SEO plugin (24.0). However, I couldn't reproduce the error TypeError: (r.render) is not a function you mentioned on the browser console. Are you noticing it only with Yoast SEO and Classic editor with the default theme? In case I have missed any steps while reproducing, kindly let us know.

We look forward to hearing from you and are happy to help you.

@izzygld
Copy link
Author

izzygld commented Dec 16, 2024

I'll send a reproduce link.

(We replicated with same browser version and the classic editor activated

Using the default Wordpress theme)

@josevarghese
Copy link
Contributor

Hi @izzygld

Thanks for getting back to us. I again tried it using Yoast SEO 24.0, Classic Editor (1.6.7) on WordPress (6.7.1) using the theme Twenty Twenty-Four (1.3), but the error is not showing on the Chrome browser console. The other details of the website are mentioned below:

Permalink structure /%postname%/
Chrome: 131.0.6778.140
Web server Apache/2.4.43 (Win32)
PHP version 8.1.29 (Supports 64bit values)
Database Extension mysqli
Server version 8.0.16

If the issue persists on a website created using the WordPress Playground (URL set with PHP version and to install both Yoast SEO and Classic Editor plugins), can you please share the playground zip file to check this further?

download as zip

Also, are you noticing any missing Yoast SEO plugin features on the website? If yes, which features are missing in that case?

Looking forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants