Yes, thats a confirmed bug, will include it into 1.1.0 which will come out today.
Problem is not solved yet? 1.1.2 has same error.
Thread Starter
gsanto
(@gsanto)
Yeah, this still seems to be happening (I am using wp 3.2). Let me know if there is anything I can do to help test.
ok, please go to my plugin then pages/show_search.php
and add following code
if ($_GET['stefan'] == '1') {
echo "get_site_url(): ".get_site_url()."<br/>";
echo "\$_SERVER[REQUEST_URI]: ".$_SERVER[REQUEST_URI]."<br/>";
echo "basename(): ".basename($_SERVER[REQUEST_URI])."<br/><br/>";
}
after the <?php
then open your page like http://yourpage.com/page_with_search and add ?stefan=1 as http://yourpage.com/page_with_search?stefan=1
then debug code is displayed. please send me this Debugcode. Otherise, create me an FTP acc to the plugin dir, that I can add it and debug it directly. Should be fixed within minutes.
Regards
Arg, please remove the ` at the start and the end by the code above!
It starts with if and ends with }
dont need to do that above. I hade a massive error in the code, agin in 1.1.3. Update to 1.1.4 and if error is not fixed, send me the link of your page (Debugcode is included in 1.1.4).
= 1.1.4 =
* Many fixes in generating URLs for Permalink, multisite and normal installations
* Fixes broken 1.1.3 installations
Unfortunately, it is not working. Please, see http://farm-ext.ru/?page_id=163
I cant see anything on the page, except the search.
where is the table?
Including the debug text is not shown up. Please make sure you have the latest version and http://farm-ext.ru/?page_id=163&wct_debug=stefan
Is printing the debug text.
Table is at the bottom :-). I don’t know why, but the plugin inserts
on each record.
get_site_url(): http://farm-ext.ru
$_SERVER[REQUEST_URI]: /?page_id=163&stefan=1
basename(): ?page_id=163&stefan=1
Ahh, now I did understand the problem.
open pages/show_search.php and delete complet content, after that, enter following code:
<?php
$url = $this->generate_pagelink(array(“/[&?]+wct(s|sf)=.*/”,”/[&?]+wctstart=[0-9]*/”),array(“”,””));
/* cache hack because of issue, see trac http://core.trac.wordpress.org/ticket/16541 */
ob_start();
get_search_form();
$out = ob_get_clean();
if ($text == ‘sss’) { $text = __(‘Search’, ‘wct’); }
if ($text != ”) { $text = “<b>”.$text.”:</b> “; }
// Change the Form for our functionality
if ($_GET[‘page_id’] != ”) {
$zusatz = “<input type=\”hidden\” name=\”page_id\” value=\””.$_GET[‘page_id’].”\” />”;
}
$out = str_replace(
array(“</form>”,”name=\”s\””,”value=\”\””,”<div class=\”search\”>”),
array(“<input type=\”hidden\” value=\””.$felder.”\” name=\”wctsf\” />”.$zusatz.”</form>”,”name=\”wcts\” class=\”wct-search\””,”value=\””.$_GET[‘wcts’].”\””,”<div class=\”search\”>”.$text),
preg_replace(“/action=\”(.*?)\”/”,”action=\””.$url.”\””,$out)
);
?>
save it and try.