1
wizanda
What file could be edited within Xoops to make random .php files download?
  • 2007/10/25 17:44

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Somewhere I have made an error in the system and it isn’t exactly telling me where….
i know it’s my fault somewhere, yet where (clues needed ), my recent changes are include_once system wide….

Yet bit stuck as to what would cause it, within Firefox to occasional download a blank .php file of the item it should be going too, any ideas?

2
wizanda
Re: What file could be edited within Xoops to make random .php files download?
  • 2007/11/22 11:37

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Ok, found the problem and within it a solution….yet still not solved entirely….

Header + Footer .php
if (!headers_sent()){header('Content-Type:text/html; charset='._CHARSET);}

Basically since I set most includes as include_once….some times it misses this in the header and so presumes the system is PHP and is a fault with Firefox it’s self, that it then sends out a blank PHP file….

So since the common.php is called from the mainfile, I also tried adding it to there directly under neither when the zlib/gzip code is….on doing so it makes the refresh pages load properly….as it seems currently when XOOPS changes pages on submissions etc this is missed…..