include errors on advanced report

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
adam.jimenez
Posts: 1
Joined: 10 Jun 2007, 09:21

include errors on advanced report

Post by adam.jimenez »

Latest version: 1.1.0a3

found an issue and a fix.

I was getting include errors on the advanced report page.

errors caused by include paths in projax.php

my fix was to change them to:

include(dirname(__FILE__)."/classes/JavaScript.php");
include(dirname(__FILE__)."/classes/Prototype.php");
include(dirname(__FILE__)."/classes/Scriptaculous.php");
mburgoon
Posts: 11
Joined: 15 Dec 2006, 18:37

Re: include errors on advanced report

Post by mburgoon »

Same issue here on 1.1.0rc3 and 1.1.0rc1.

I did pretty much the same thing you suggested, which resolved the issue. I change the projax.php file to:

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
include($t_core_dir . "classes/JavaScript.php");
include($t_core_dir . "classes/Prototype.php");
include($t_core_dir . "classes/Scriptaculous.php");

This issue also occurs on the install script. I think it has something to do with relative links on older versions of PHP.

http://www.mantisbt.org/forums/viewtopic.php?f=3&t=3527
Post Reply