bobbingwide / oik-a2z

Letter taxonomy pagination
http://www.oik-plugins.com/oik-plugins/oik-a2z-letter-taxonomy-pagination/
GNU General Public License v3.0
0 stars 0 forks source link

Notice: Trying to get property ‘count’ of non-object #9

Open bobbingwide opened 3 years ago

bobbingwide commented 3 years ago

Notice: Trying to get property ‘count’ of non-object in C:\apache\htdocs\wordpress\wp-content\plugins\oik-a2z\includes\class-oik-a2z-display.php on line 131

Having changed the a2z pagination template part for the archive-block.html template, in s.b/wp56 the custom taxonomy block-letters is not defined so the above messages are produced for the following fields: Format: field name ( line ): count (131), name (59) , term_id (59).

Workaround

Install and activate oik-shortcodes-a2z

bobbingwide commented 9 months ago

Noted again in oik-plugins.co.uk

[04-Dec-2023 07:51:01 UTC] PHP Notice:  Trying to get property 'count' of non-object in /home/customer/www/oik-plugins.co.uk/public_html/wp-content/plugins/oik-a2z/includes/class-oik-a2z-display.php on line 131
[04-Dec-2023 07:51:01 UTC] PHP Notice:  Trying to get property 'name' of non-object in /home/customer/www/oik-plugins.co.uk/public_html/wp-content/plugins/oik-a2z/includes/class-oik-a2z-display.php on line 137
[04-Dec-2023 07:51:01 UTC] PHP Notice:  Trying to get property 'term_id' of non-object in /home/customer/www/oik-plugins.co.uk/public_html/wp-content/plugins/oik-a2z/includes/class-oik-a2z-display.php on line 59