Hello David,
I have followed your wordpress integration thread and included this in the index.php of my theme in wordpress:
<?php
$common_baseHREF = "http://www.mysite.co.uk/compare/";
$common_path = "/home/mysite/public_html/compare/";
$_GET["q"] = "keyword";
require($common_path."searchExternal.php");
?>
You can see the problem here, {link saved}. The page cuts off immediately before the start of the above code.
The real code for the page is below and if you view the source on my website you can see how it cuts off. Thanks in advance for your help. Steven
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header(); ?>
<div class="grid_12">
<h2 id="page-heading">test</h2>
</div>
<div class="clear"></div>
<div class="grid_8">
<div class="box">
<h2 class="map">test</h2>
<div class="block" id="paragraphs">
<p><?php
$common_baseHREF = "http://www.mysite.co.uk/compare/";
$common_path = "/home/mysite/public_html/compare/";
$_GET["q"] = "keyword";
require($common_path."searchExternal.php");
?></p>
</div>
</div>
<div class="box">
<h2 class="featured">test</h2>
<div class="block" id="paragraphs">
<p>test</p>
</div>
</div>
<div class="box">
<h2 class="unis">test</h2>
<div class="block" id="paragraphs">
<p>test</p>
</div>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Thanks for the quick reply. Yep I tried that and that works fine. :-?
Thanks, Steve.
Ok, next test - could you add error_reporting() to the calling code as follows;
<?php
error_reporting(E_ALL);
$common_baseHREF = "http://www.mysite.co.uk/compare/";
$common_path = "/home/mysite/public_html/compare/";
$_GET["q"] = "keyword";
require($common_path."searchExternal.php");
?>
That may provide more information about the problem, however it may be necessary to view source to view the error output...
Cheers,
David.
Thank you,
No error appears and nothing appears in the source either as it cuts off like before. I have left that for you to double check if you need.
Are there any more tests, hope one finds out what this strange problem is :-)
That's strange.
Would you be able to let me have temporary FTP access so that I can do a binary chop debug exercise (the fastest way to home in the code that is causing the silent abort)
If that's possible, if you could email me the details I'll login straight away and check it out...
Cheers,
David.
Hi Steven,
We first need to eliminate it being a problem with inline PHP full stop rather than the external scripts.
In place of the calling code, could you please try simply:
<?php
print "Test";
?>
...and see if the word "Test" appears in the output without any other problems...
Cheers,
David.