Title: Php script executed twice with get_header()
Last modified: August 21, 2016

---

# Php script executed twice with get_header()

 *  [Miljan001](https://wordpress.org/support/users/miljan001/)
 * (@miljan001)
 * [12 years ago](https://wordpress.org/support/topic/php-script-executed-twice-with-get_header/)
 * Hello,
 * I running wp version 3.9.1 with gamepress theme. When I use get_header() function
   my php script executed twice (all scripts where is involved mentioned func).
   
   For example:
 *     ```
       <?php
       require('./wp-blog-header.php');
       get_header();
       error_log("TEST!", 0);
       ?>
       ```
   
 * output will be:
 *     ```
       [28-May-2014 20:18:57 UTC] TEST!
       [28-May-2014 20:18:57 UTC] TEST!
       ```
   
 * NOTE:
    1. With get_footer() is everything fine… 2. This is only with GamePress
   theme.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Miljan001](https://wordpress.org/support/users/miljan001/)
 * (@miljan001)
 * [12 years ago](https://wordpress.org/support/topic/php-script-executed-twice-with-get_header/#post-4959850)
 * Ok, I found the (temporary?)solution. This is line 8. in header.php in GamePress
   theme:
    `<link rel="shortcut icon" href="<?php echo of_get_option('gamepress_favicon_url');?
   >" type="image/x-icon" />`
 * I put under comment that line and now everything running smooth…

Viewing 1 replies (of 1 total)

The topic ‘Php script executed twice with get_header()’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/gamepress/1.0.5/screenshot.png)
 * GamePress
 * [Support Threads](https://wordpress.org/support/theme/gamepress/)
 * [Active Topics](https://wordpress.org/support/theme/gamepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/gamepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/gamepress/reviews/)

## Tags

 * [get_header](https://wordpress.org/support/topic-tag/get_header/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [wp-blog-header.php](https://wordpress.org/support/topic-tag/wp-blog-header-php/)

 * 1 reply
 * 1 participant
 * Last reply from: [Miljan001](https://wordpress.org/support/users/miljan001/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/php-script-executed-twice-with-get_header/#post-4959850)
 * Status: not resolved