Note that there are some explanatory texts on larger screens.

plurals
  1. POWordpress PHP Include
    primarykey
    data
    text
    <p><em>EDIT SOLVED</em> The code <code>&lt;?php ob_start(); ?&gt;</code> put before any other output seemed to solve the problem.</p> <p>I have a problem with errors appearing on a page on my site.</p> <p>I am including 3 php files before any HTML output which is.</p> <pre><code>&lt;?php include_once("rpw_includes/dtd_site_root.php"); include_once("rpw_includes/dtd_remote_module_classes.php"); include_once("rpw_includes/rpw_remote_module_classes.php"); ?&gt; &lt;!DOCTYPE html&gt; &lt;head&gt; </code></pre> <p>That code is in my header.php file and all works fine on my index file but when i go onto another page which also calls the same header file i get these errors.</p> <pre><code>Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\barnet\wp-content\themes\barnet\search-results.php:7) in C:\xampp\htdocs\barnet\wp-content\themes\barnet\rpw_includes\dtd_remote_module_classes.php on line 15 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\barnet\wp-content\themes\barnet\search-results.php:7) in C:\xampp\htdocs\barnet\wp-content\themes\barnet\rpw_includes\dtd_remote_module_classes.php on line 16 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\barnet\wp-content\themes\barnet\search-results.php:7) in C:\xampp\htdocs\barnet\wp-content\themes\barnet\rpw_includes\dtd_remote_module_classes.php on line 17 </code></pre> <p>Any ideas?</p> <p>EDIT*</p> <p>search-results.php</p> <pre><code>&lt;?php /* Template Name: Search Results */ ?&gt; &lt;?php ob_start(); ?&gt; &lt;?php get_header(); ?&gt; &lt;div id="page-search-hold"&gt; &lt;Div id="page-search"&gt;&lt;/div&gt; &lt;/div&gt; &lt;?php $module_obj= new RPW_results_obj(); $module_obj-&gt;write_html(); ?&gt; &lt;?php get_footer(); ?&gt; </code></pre> <p>With the ob_start(); added the errors dissapear but i get about a 20px margin before my body starts like there should be erros but they are just not showing?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload