Page 1 of 1

[solved] Pageblock erro on local windows server with apache

Posted: Mon Aug 27, 2007 3:26 pm
by israel.cefrin
Hi all,
On my home office I got a development machine running windows XP with apache as webserver and mysql 5.
I´m facing a weird problem with page blocks module. All pageblock content insert is not shown on the main painel of this module.
I can see the page with 'Add Block' button, but the inserted blocks are never shown.

When I test with my host server (with linux + apache) everything works fine.

I saw and compare the rendered source and find out that locally a piece of code is being generated, check this out:

Local code (windows ):

Code: Select all

<__script__ language="JavaScript" type="text/javascript"><!--
function populateHiddenVars() {

return true;
}
//-->
</__script>
remote code (linux):

Code: Select all

<__script__ language="JavaScript" type="text/javascript"><!--
function populateHiddenVars() {
document.getElementById('parent45ListOrder').value = Sortable.serialize('parent45');
return true;
}
//-->
</__script>
The file which outputs this piece is the : modules/PageBlocks/lib/sllists/SLLists.class.php

And this is the piece of code:

Code: Select all

<?php
foreach($this->lists as $list) {
?>
document.getElementById('<?php echo $list['input'];?>').value = Sortable.serialize('<?php echo $list['list'];?>');
<?php
}
?>
I dont´ know is this happens only with me, but if someone had similar problem, could please, post a tip for solution ?

regards

Israel

Re: [solved] Pageblock erro on local windows server with apache

Posted: Thu Aug 30, 2007 3:10 am
by israel.cefrin
I got solve this issue changing apache 1.33 to 2.0 :D on my local machine.