same problem here. when trying to
activate the ajax refresh through the link, i get an
error message
OK, it seems a few people at
least have this problem, though I am still unable to
reproduce it. I suspect that browser differences are why
some see the error and others don't, but I'm not
sure.
As a first check to see if this is an error
with my code or something else, have you tried clicking
the "Turn Off Page Refresh" link to see if that
generates the same error?
Whether or not that
does create an error, I think I know how to fix this.
Below are some directions for modifying your
indexAjax.php file (I can't seem to post files anymore).
It's basically the same except I moved the includes for
the new files to below the lines that are generating the
error.
Move the following 2 lines:
require("Sajax.php");
include_once("functionsAjax.php");
to
below the following lines [I also changed
require("Sajax.php") to
include_once("Sajax.php")]:
if($_GET["ajaxrefresh"] ==
"true")
{
$_SESSION["use_ajax"] = true;
header("location:
".$_SERVER['PHP_SELF']);
exit();
}
}
So, now the
top of your indexAjax.php file should look like
this:
You should have received a
copy of the GNU General Public License
along with TorrentFlux; if not, write to the Free
Software
Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307
USA
Modified by Cameron Dale for
Ajax,
v2
*/
include_once("config.php");
include_once("functions.php");
$messages
= "";
// set refresh option into the session
cookie
if(array_key_exists("pagerefresh",
$_GET))
{
if($_GET["pagerefresh"] ==
"false")
{
$_SESSION['prefresh'] = false;
header("location:
".$_SERVER['PHP_SELF']);
exit();
}
if($_GET["pagerefresh"] == "true")
{
$_SESSION["prefresh"] =
true;
header("location:
".$_SERVER['PHP_SELF']);
exit();
}
}
// set ajax refresh
option into the session
cookie
if(array_key_exists("ajaxrefresh",
$_GET))
{
if($_GET["ajaxrefresh"] ==
"false")
{
$_SESSION['use_ajax'] = false;
header("location:
".$_SERVER['PHP_SELF']);
exit();
}
if($_GET["ajaxrefresh"] == "true")
{
$_SESSION["use_ajax"] =
true;
header("location:
".$_SERVER['PHP_SELF']);
exit();
}
}
include_once("Sajax.php");
include_once("functionsAjax.php");
//
Check to see if QManager is running if not Start
it.
if (checkQManager() == 0 )
{
if ($cfg["AllowQueing"])
{
Let me know if this helps, and thanks for
reporting the problems.