From the looks of things, some page is trying to load your functions.php
page directly. I’m not sure if it’s another part of your theme, or a plugin, or some other custom code. But the error on line 14 is triggered with a second <?php
opening tag in your functions.php
file.
This headers already sent
error is triggered when you send any additional whitespace, line returns, or text when you’re not supposed to. A short-term fix is to remove the extra markup:
<?php // sidebar functions
if(function_exists('register_sidebar')) {
register_sidebar();
}
// portfolio functions
add_action('init', 'create_portfolio');
See how much more compact that is? No extra white space between ?>
and <?php
either.
For the long-term, though, you need to narrow down exactly what you’re doing. Where are you uploading the image from? Why is it trying to redirect to your functions.php
file? Answer those questions and fix whatever problems are causing the issues for a more durable fix.
Related Posts:
- How does WordPress resolve permalinks internally?
- How to Override A Function in ms-functions.php
- Nonce generated 0-12 hours ago
- unable to change default URL at “General Settings” page
- Overriding a plugin’s pluggable function in theme’s function
- Bug in pluggable.php? [closed]
- How can I insert code into the pluggable.php file without it getting deleted after a wordpress update
- Pluggable Function wp_new_user_notification exists too early
- numpy division with RuntimeWarning: invalid value encountered in double_scalars
- “Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP
- What does “control reaches end of non-void function” mean?
- libpng warning: iCCP: known incorrect sRGB profile
- libpng warning: iCCP: known incorrect sRGB profile
- Warning: Found conflicts between different versions of the same dependent assembly
- ERROR: Control may reach end of non-void function /
- Warning : overflow in implicit constant conversion
- Remove warning messages in PHP
- Best collection of code for your 'functions.php' file [closed]
- Where can I find a list of WordPress hooks?
- How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
- How to override pluggable function in theme?
- How to override a function when isn’t at functions.php
- turn off new user registration emails
- Removing custom background and header feature in child theme
- WordPress 4.9.5 PHP intermittent warning trim() expects parameter 1 to be string, array given
- why plugins are loaded prior to pluggables
- Do all files in child theme override the parent?
- syntax for remove_filter in parent theme with class
- Editor access to plugin settings
- Removing custom meta box added in parent theme
- How to prevent deleting of comments when deleting a post
- Stackoverflow type of badge plugin giving warnings in WordPress 3.5
- Problems with removing admin bar
- WordPress Errors in generated by theme check plugin [closed]
- Overriding a function in wordpress
- Extract & Display the REAL first image attached to a post – extend the_post_thumbnail()
- WordPress how to override function adjacent_posts_rel_link_wp_head() in link-template.php the correct way
- Do I have to override the wp_mail() pluggable function with writing a plugin?
- Current user in plugin returns NULL
- the file placed in the child theme is not included
- How to fix Warning: call_user_func_array()?
- Deprecated: Function get_magic_quotes_gpc() is deprecated in WordPress that causes height change in hoe slider, all Tabs on website
- Call to undefined function get_userdata in user.php
- Warnings On Updating WordPress
- Change ICL_LANGUAGE_CODE for WPML
- Calling an API to do authentication / user login
- Replace part of a parent-theme customizer in the child-theme
- Getting php_network_getaddress error : No such host is known?
- How to override wp_insert_comment()
- WordPress Child Themes
- class-wp-hook.php on line 288
- 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 message (re. php) on the blog page
- How to target post and pages and not all post types in admin?
- How to fix this warning:call_user_func_array() expects exactly 2 parameters, 1 given in D:\wamp\www\…….\wp-includes\class-wp-hook.php on line 286
- remove_action not removing add_action from constructor
- Filter a pluggable function
- Warning: spl_autoload() [function.spl-autoload] (Term Menu Order)
- Form Submission Warning: Cannot modify header error only when plugin is deactivated
- Error while setting role
- How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?
- Override plugin class which has namespace
- locked out of wordpress site ‘warning: require once’
- Set up functions to be overridden without using function_exists() by short-circuiting them?
- Wp Debug Enabled True Notices and Warning
- Custom meta box in custom post type not working
- Override email_exists function
- WordPress comments – delimiter “/” not found
- How to add custom function to pluggable.php
- Adding tables to dashboard pages programmatically?
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- Error: Attempt to read property “ID” on null
- How to display a warning when an uploaded image is too small?
- PHP warning – Use of undefined constant ‘FORCE_SSL_LOGIN’ ‘FORCE_SSL_ADMIN’ on wp-config.php
- How to apply a function to the value $email of get_user_by to override email_exists?
- Login cookies blocked after customizing hashing method
- I have an fatal error on my funcyions.php
- After updating theme & plugin I am getting an error message
- Admin keeps showing pending translation update
- PHP warning with code for nav menu walker [duplicate]
- PHP Warning adding menu
- How to override get_avatar() function?
- Default and warning messages & no login
- Providing fallback function and allow override by plugin
- A more elegant way to handle notices/warnings
- How do I issue a warning in a wordpress plugin?
- save_post hook – headers already sent?
- pluggable function in theme, to be overridden by plugin
- Cannot modify header information when I try my site with www
- Warning: preg_replace(): Compilation failed: unknown option bit(s) set at offset -1
- First argument is expected to be a valid callback for cp_admin_init and _canonical_charset
- Displaying warning if no featured image has been set – Post Editor
- “Warning: call_user_func_array() [function.call-user-func-array]:” above comments form [closed]
- My wordpress site wont load, it gives header error warnings
- Undefined constant error in pluggable.php
- Marketpress php warning on server, no problem on localhost [closed]
- How to execute init or woocommerce_init only for checkout page
- Attempt to read property “ID” on null”
- Lots of warnings and errors instead of my WordPress site – Synology NAS – Intranet
- How to remove without touching the pluggable.php the wordpress_logged_in cookie to show the username on login?