Title: php warning
Last modified: September 23, 2025

---

# php warning

 *  Resolved [andreaferracani](https://wordpress.org/support/users/andreaferracani/)
 * (@andreaferracani)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-550/)
 * Hi,
   I get these warnings on every page load with the **Mission News** theme:
 *     ```wp-block-code
       PHP Warning:  Undefined array key "source" in /wp-content/themes/mission-news/logo.php on line 9
       PHP Warning:  Undefined array key "source" in /wp-content/themes/mission-news/logo.php on line 14
       PHP Warning:  Undefined array key "source" in /wp-content/themes/mission-news/logo.php on line 16
       ```
   
 * WordPress (latest version), PHP 8.1.
   Looks like the code tries to access `['source']`
   without checking if it exists. I suggest to fix this. Thank you
    -  This topic was modified 6 months, 2 weeks ago by [andreaferracani](https://wordpress.org/support/users/andreaferracani/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-550/#post-18654649)
 * Hi there,
 * Thanks for using Mission News!
 * This can happen if you are using a child theme created with an older version 
   of Mission News. If you have the `header.php` or `footer.php` file in the child
   theme, look for this line:
 *     ```wp-block-code
       get_template_part( 'logo' );
       ```
   
 * And add the location it’s coming from, like this:
 *     ```wp-block-code
       get_template_part( 'logo', '', array('source' => 'header') );
       ```
   
 * That will resolve the error messages and also ensure the logo is displayed properly.
 *  Thread Starter [andreaferracani](https://wordpress.org/support/users/andreaferracani/)
 * (@andreaferracani)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-550/#post-18654745)
 * Hi Ben,
   thanks a lot for the tip! Looks like the issue was on my side after all
   🙈 I really appreciate your help and the clear guidance.
 * All the best
 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-550/#post-18656417)
 * No worries! I’m glad I could help.
 * Stay in touch if you need anything else.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘php warning’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/mission-news/1.65/screenshot.png)
 * Mission News
 * [Support Threads](https://wordpress.org/support/theme/mission-news/)
 * [Active Topics](https://wordpress.org/support/theme/mission-news/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/mission-news/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/mission-news/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * Last activity: [6 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-550/#post-18656417)
 * Status: resolved