It looks like your $categories
is an empty array. To solve this always check if the array is empty or not.
In line 117 add code to check if array is empty
<?php if( !empty( $categories ) ){ ?>
and in line number 167 replace
<?php } ?>
with
<?php } } ?>
If you want to permanently remove any error or warning message you can use the php code error_reporting(0);
. Pase this in top of your functions.php
file.
Additionally open wp-config.php
file and check for WP_DEBUG
. It must be false;
define( 'WP_DEBUG', false );
Related Posts:
- WP_DEBUG is not set, but I’m still getting warnings
- WordPress Errors in generated by theme check plugin [closed]
- What is causing this error? “Warning: Invalid argument”
- Getting Warnings & Notices from Fresh WordPress 3.1.2 install
- Removing warnings and notices from production servers
- Deprecated: Function get_magic_quotes_gpc() is deprecated in WordPress that causes height change in hoe slider, all Tabs on website
- Warning(unlink) Warning: session_start() Warning: Cannot modify header information
- Error: Warning: strpos() in media.php
- Warning: : DOMDocument::loadHTML(): Empty string supplied as input in functions.php when adding classes to post images
- Getting notices on fresh 3.6.1 install
- Getting php_network_getaddress error : No such host is known?
- class-wp-hook.php on line 288
- wp warning declaration compatible [closed]
- Website Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘Wppr_Public’ does not have a method ‘amp_support’
- Warning on my WordPress site [closed]
- Weird string offset errors when displaying post attachments
- Warning: spl_autoload() [function.spl-autoload] (Term Menu Order)
- How to resolve Warning: Missing argument 2 for ufwp_widget_text ()
- Plugin showing error
- Warning: call_user_func_array() [function.call-user-func-array]
- Error: Attempt to read property “ID” on null
- What’s the warning on line 736?
- Unknown file php5fcgi.core
- A more elegant way to handle notices/warnings
- Cannot modify header information when I try my site with www
- warnings & errors after MAMP to live (hosteurope)
- “Warning: call_user_func_array() [function.call-user-func-array]:” above comments form [closed]
- Attempt to read property “ID” on null”
- Warning when author has no post
- Lots of warnings and errors instead of my WordPress site – Synology NAS – Intranet
- Please Help Me, How to Fix PHP Error Undefined Array Key “srcset”
- Core error when calling remove_menu_page
- Get error messages when $wpdb->insert() returns false?
- Error Warning: Declaration of description_walker::start_el after PHP upgrade [duplicate]
- HTTPS leads to Sorry, you are not allowed to access this page
- Troubleshooting a “You do not have sufficient permissions to access this page” error
- WSOD but WP_DEBUG not giving any errors
- How to log plugin errors to plugin error_log file
- wordpress plugin error handling
- Integrate recaptcha and wp_signon – what is needed?
- Throw 403 in a plugin [duplicate]
- error_log over 70GB. How to stop this? [closed]
- Getting headers already sent error from plugin
- get_the_content if it contains multiple lines it results in SyntaxError
- Enable errors PHP WordPress 5.2
- What do these “Failed to import” errors mean and how do I fix it?
- How to solve: An error occured in the upload
- Weird problems after recovery from security breach
- How to make my plugin code die gracefully
- Error: SELECT SQL_CALC_FOUND_ROWS
- Why wordpress showe “admin is editing…” whoever edits?
- One of my plugins broke when I tried to update it, how do I safely uninstall it?
- Where are WP_Errors Saved
- Page not found error when adding text `2 = 2 ^ 1` to the page
- Search Everything & WP 3.7 update issues [closed]
- WooCommerce Checkout Error [closed]
- Error establishing database connection – high traffic?
- Plugin: Google Analytics for Dashboard error – Timestamp is too far from current time
- Fatal error with a theme
- Classic editor throws 403 error based on post content
- Fatal error: Allowed memory size of 146800640 bytes exhausted (tried to allocate 57 bytes) in public_html/wp-includes/rewrite.php on line 1561
- Display all WP Errors together during form validation
- Console Browser says it cannot find a requested image that does not exist on my Website [closed]
- WordPress suddenly creating theme errors
- Plugin getting Cannot modify header information errors
- Can not login to wordpress site after resolving white screen of death
- I am receiving a pluggable.php warning sign on my only http:// page
- Warning: require_once(/home/onetwo/public_html/wp-config.php): [closed]
- What’s wrong with this piece of code? [closed]
- SELECT SQL_CALC_FOUND_ROWS with wordpress search
- Changing search terms results a 403 – dsIDXpress Pro plugin [closed]
- styles/default.css in markup, where does it come from? [closed]
- Need Help Determining Where Header Error is Happening
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- Link to RSS feed not clickable?
- Strange Behavior on New Theme Points to Idiocy
- Shortcode, Concatenating & Parse error: syntax error, unexpected T_FOREACH
- Functions.php error – when trying to change the theme
- ‘ajaxurl’ is undefined — wp-includes/js/wp-lists.js
- How to fix these PHP Warnings with the “Feed JSON” plug-in?
- Getting no Error Log File saved to my local directory, and no debug info displayed in the web browser
- failed to open stream – wp-includes/blocks/file.php
- wp_insert_user error
- Error regarding invalid file permissions for upgrading WordPress version
- Publication in wrong category
- Getting file errors in a WordPress Multisite ADMIN
- mixed contents admin panel is Unsecured
- Modifying server’s response to API endpoint
- Getting an empty space in up sell items
- Dashboard widget, screen options/help doesn’t work?
- Getting amp; on every single category, post and page title. How to Remove?
- global $post inside plugin query messes up every new post page in wp-admin
- Neverending tag problem
- Seeing “error” as text on white when accessing admin
- Custom Post type plugin breaking the front page shows dashboard?
- Error at time of WordPress Installation
- problem ajaxurl – designthemes-core-features
- Not able to see the error [closed]
- Posts Page in WordPress loading bare HTML of my homepage
- Oxygen plugin wordpress stuck in loading sequence forever when trying to edit a page [closed]