This function may only be used against URLs in

  • Author
    Posts
  • #2827017

    rkamarowski
    Member

    I have a sub domain, and the get_headers(‘header.php’); code is returning the following error:

    Warning: get_headers(): This function may only be used against URLs in /home/elepha33/public_html/vehicle/wp-content/themes/EESVehicle/index.php on line 12

    I have the header.php file in the EESVehicle folder. What am I doing wrong?

    The blog I need help with is vehicle.elephantearsoftware.com.

    #2827071

    rkamarowski
    Member

    index.php – partial

    <?php # Script 3.4 - index.php
    /**
     * @package WordPresslink https://codex.wordpress.org/Template_Hierarchy *
     * @subpackage EES Vehicle
     */
    
    get_headers('header.php');
    
    ?>
    
    <div id="widgetsContainer">
         <div id='jqxWidget' style="font-size: 13px; font-family: Verdana; float: left;">
            <!--<div id="jqxgrid"></div>  -->
         </div>
    </div>
    
       <div id="header">
            <h1>ESS Vehicle</h1>
        </div>
    #2827076

    rkamarowski
    Member

    Ugh… get_header() (not headers) is what I needed.

The topic ‘This function may only be used against URLs in’ is closed to new replies.