Notice appears on base page when Yoast SEO is activated

4.59K viewsIssues
0

Undefined variable notice. Can you fix this? (and not just suggest turning WP_DEBUG off)

What is the problem you are having apart the notice. Just a notice. Any problem with your WP site ?

I don’t think it has to do something with YOAST.

0

Running WP in debug more is not good. Because you reveal paths to the world.

ENABLE the LOG at least, so everything in logged in debug.log in wp-content.

0

It’s just the notice, no other problem in the website. Although, this notice does show up in the frontend (not just the wp dashboard).

It is related to yoast seo because

  1. the noticed only shows up if the plugin is activated
  2. the line in question is inside a function that references wpseo titles

Also, there are other notices due to undefined variables: when saving options, in the backend, i get

Notice: Undefined index: name in (…)/wp-content/plugins/anspress-question-answer/admin/views/admin.php on line 33

Notice: Undefined index: name in (…)/wp-content/plugins/anspress-question-answer/admin/views/admin.php on line 46

I guess the code seems to be in need of a cleanup 🙂

 

Thanks!