Not working out of the box
-
I try a search and get.
Notice: Trying to get property of non-object in {siteDir}/wp-content/did-you-mean/database.php on line 41
Will see if I can fix this to use the plugin.
A var_dump reveals on $categories.
array(2) { ["errors"]=> array(1) { ["invalid_taxonomy"]=> array(1) { [0]=> string(16) "Invalid taxonomy" } } ["error_data"]=> array(0) { } }
I’ll just add an invalid check and it should be good to go.
Solved the problem by adding error checking around the foreach loops.
ie: line 40 would beif(!isset($categories['errors']))
- The topic ‘Not working out of the box’ is closed to new replies.