From the provided error, it appears you have added in some custom code to your functions.php file in your theme. Suggest commenting out the last changes you made, but the error is clearly stating that line 50 is the culprit so that would be a good starting point if you’re unsure.
If this has happened since updating to WP v5.5 (or a new PHP version on your server) then the code you’re using is likely deprecated which may explain why this error is just suddenly displaying.
I wouldn’t recommend doing this, but as it’s a warning, you could also just turn off wp_debug
(setting to false) at the end of file wp-config.php
. Doing this will only hide the message, it will not fix the issue, and it’s possible to turn into something more serious over time.
Related Posts:
- Using wp_add_inline_style without a stylesheet
- Does the functions.php file ever get called during an AJAX call? Debug AJAX
- Bestway To Define Theme and Plugin path and url
- Form to Add Posts to Custom Post Type
- How do I add settings to the Background Options Page?
- What is the right way to include a wp-admin file in your theme?
- WordPress twentytwenty theme inline css overriding css body
- What is the problem if I use CDN in my WordPress parent theme(built using bootstrap)?
- Active theme responds to theme change request to alert user
- LOST in WP Template Hireachy
- Theme showing incorrect update
- modify a output of a widget
- Enabling Default Widgets in a Custom Theme
- changing Specific section background image in wordpress
- Which is the simplest theme for WordPress to use it as your base?
- There’s an image named g.gif somewhere in my WordPress site
- How to highlight the current page in the nav menu?
- customizing the_password_form filter
- Whats the safest way to output custom JavaScript and Css code entered by the admin in the Theme Settings?
- Should I use language_attributes() or bloginfo(“language”) in html tag
- What’s the best action to use when you want to do something only once per theme setup?
- How to upload images using Settings API
- WordPress 404 page returning with default in IIS7
- searchform.php override not working
- How do I create a custom partial / template?
- Load child template based on parent
- How to make the_tags title translatable?
- Should I use include or load_template for including shortcodes, plugins and so on?
- Get a setting value conditionally in the Customizer api
- How should I be handling my theme version numbering?
- Set default featured image for terms of a custom taxonomy
- How would you accomplish the following advanced settings page?
- image url relative path not working in css file
- Timber: Get single image from media library with all attributes
- page.php dependent sites are not working in custom woocommerce theme
- Sort wp_query by sum of two meta fields
- How to i style the elements from the TinyMCE
- Why wp_nav_menu() doesnt show the proper meny when invoked two consecutive times?
- Change the “Default Avatar” admin option via functions.php
- ACF Pro make URL Linked in Custom Template [closed]
- How to escape multiple attribute at once in WordPress?
- Override plugin option by with a custom theme
- Can’t use admin_enqueue_scripts or wp_enqueue_script
- How is the `get_sidebar` function meant to be used to call a 2nd sidebar?
- Is WordPress a good option for this…?
- Review site using WordPress
- What happens if a theme is no longer supported?
- Running a function on post update with new post meta
- How to find and remove unnecessary theme scripts? [closed]
- Theme logo metadata into template file
- Is There A WordPress Hook for Accessing Attachments for A Particular Page?
- WP Customazation API doesn’t save the default Value
- Setting conditional background image from meta value
- How to Emulate Default Navigation Menu Behaviour in a Custom Theme?
- Sample Theme Options page for Multisite – what to consider
- How to use shortcode inside of shortcode in theme
- Search Form Not Working
- My contact form – I’ve changed the source code but the changes are not being applied
- Theme calling page.php instead of home.php
- How can I run code in functions.php when switch_theme() is called?
- Why do sticky posts show in this menu?
- Dot “.” in option value foobars save options function
- Strict Folder and File Permissions for WordPress Themes Folder
- WP Gutenberg custom block – generate theme colors from SASS and use them in the inspector and php callback
- How to properly use AWS SES for a contact form?
- No templates for condition page.php Elementor
- How can I set multi archive page template on same time for only one custom post type?
- Exclude categories from wp query not working
- Copying a modified theme from one wordpress site to another wordpress site [closed]
- Show Yoast SEO meta tags in Custom WordPress Templates (Theme)
- Can I set rest API endpoints from within a theme?
- How to show some of category in wordpress
- using themename_the_custom_logo() in template-tags?
- How to make the media library searchable by image title
- WordPress doesn’t load css, image and js files after moving local installation folder
- Custom page template not showing on page creation
- Customizer Image-Picker Preview Not Working
- How to get url image page the right way?
- Mobile view logo background colour in wordpress
- Breaking Categories Up into Individual Divs
- Strip HTML tags on custom code from the_content
- Next/Previous post navigation
- page.php is not called when I load a Page
- wpdb->insert adds too many rows
- Main Menu Theme Different Output Print
- How to reuse parts of WordPress site e.g. header, footer, part of header for multiple WordPress sites?
- WordPress loop not working on blog.php page
- Option to show/hide widget depending on is_home?
- How can I install my custom-made theme on a wordpress.com blog? [closed]
- IS there any reason not to include javascript in my own post’s embeds?
- How to create more templates to the same theme?
- How do I middle-align my header menu items in WordPress [closed]
- A problem in loading index.php
- How to add Dummy content when active wordpress theme without xml import?
- .submenu class missing in output from wp_nav_menu
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- Theme template file for a specific custom taxonomy
- How do I work with responsive images in WordPress? (img srcset/sizes)
- How can I use pre declared blocks in a php file?
- jQuery Snippet Not Working on WordPress Site [closed]