-
Hi guys
I am getting this annoying notice filling up my logs about a breadcrumb property not being set.
I fixed this issue by just adding an isset check in your getter method in rank-math.php line 97
else if( isset( $this->{$prop} )) {
public function __get( $prop ) { if ( array_key_exists( $prop, $this->container ) ) { return $this->container[ $prop ]; } else if( isset( $this->{$prop} )) { return $this->{$prop}; } return false; }
Without the added isset check, I keep getting this message on pages without breadcrumbs on them, like my shopping cart page.
Notice: Undefined property: RankMath::$breadcrumbs in D:\xampp_php7\htdocs\thepodking\wp-content\plugins\seo-by-rank-math\rank-math.php on line 103
I use the schema theme also.
If you could, please add this in 🙂
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The ticket ‘Please add this check to stop php notices’ is closed to new replies.