I'm experiencing the same error (but I'm using version 1.04 :-)). I get:
General PHP error:
Undefined variable: fastlinks2
on the front page. I found the variable in this code here in index.php:
104 // Build fastlinks. We need all of the project names.
105 if (true) {
106 $rs = $db->query("select project_id, project_name from " . TBL_PROJECT);
107 while (list($iProject_id, $sProject_name) = $rs->fetchRow(DB_FETCHMODE_ORDERED)) {
108 $fastlinks1 .= "<a href=\"bug.php?op=add&project=$iProject_id\">$sProject_name</a> | &nb sp;";
109 $fastlinks2 .= "<a href=\"query.php?op=doquery&projects=$iProject_id&open=1&order=priority_name& amp;sort=desc\">$sProject_name</a> | ";
110 }
111 $t->assign('fastlinks1',$fastlinks1);
112 $t->assign('fastlinks2',$fastlinks2);
113 }
Is the error happening in line 112 above? What exactly is "$t" (I assume it's an object but I don't see where it is defined). Do you have to have "fastlinks2" defined in this object somewhere?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ah, now I see. I'm running PHP5 and it looks like you have to predefine variables. After line 105 above, I put in the following:
$fastlinks1 = "";
$fastlinks2 = "":
and it stopped reporting that error. Now I get:
General PHP error:
Non-static method DB::isError() should not be called statically
I saw this in include.php:
57 /*
58 ** Note confusing php5 E_STRICT error, which affects JPGraph use:
59 ** "Non-static method DB::isError() should not be called statically "
60 ** It's unclear what solution works for both php4 and php5.
61 ** the documentation recommends PEAR::isError($db) which is also non-static
62 */
I tried turning off E_STRICT in my php.ini but to no avail. Same error and no JPGraph. :(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1) It helps to read the fine docs that the PHPBT guys wrote. Specifically, in the INSTALL file in the distribution tarball. :-) On line 40 it says:
If you get error "Non-static method DB::isError() should not be called statically",
then edit the JpGraph configuration to set "CATCH_PHPERRMSG" to false.
2) Not a problem, but for the life of me I could not find the JpGraph configuration file! I'm running Ubuntu Feisty, and I discovered that the libphp-jpgraph package is *seriously* out of date (1.5.2, considering the latest JPGraph release is 1.22!). Once I uninstalled the debian package and installed JPGraph version 1.22, I discovered a nifty file called jpg-config.inc in the distribution, and in it the variable "CATCH_PHPERRMSG" is set to true. Setting this to false caused JPGraph to work! SUCCESS!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
on front page, error states "JpGraph Error General PHP error : Undefined variable: fastlinks2"
I have everything else set up correctly(?), the jpgimages folder is writeable. Running Linux and php 4.3.9 Looks like I'm close here, but...
If you find a solution, please post it. Version numbers of all components may help also.
Sorry but where can I find the version 1.0.6? On the website is only version 1.0.3 for download.
???
I'm experiencing the same error (but I'm using version 1.04 :-)). I get:
General PHP error:
Undefined variable: fastlinks2
on the front page. I found the variable in this code here in index.php:
104 // Build fastlinks. We need all of the project names.
105 if (true) {
106 $rs = $db->query("select project_id, project_name from " . TBL_PROJECT);
107 while (list($iProject_id, $sProject_name) = $rs->fetchRow(DB_FETCHMODE_ORDERED)) {
108 $fastlinks1 .= "<a href=\"bug.php?op=add&project=$iProject_id\">$sProject_name</a> | &nb sp;";
109 $fastlinks2 .= "<a href=\"query.php?op=doquery&projects=$iProject_id&open=1&order=priority_name& amp;sort=desc\">$sProject_name</a> | ";
110 }
111 $t->assign('fastlinks1',$fastlinks1);
112 $t->assign('fastlinks2',$fastlinks2);
113 }
Is the error happening in line 112 above? What exactly is "$t" (I assume it's an object but I don't see where it is defined). Do you have to have "fastlinks2" defined in this object somewhere?
Ah, now I see. I'm running PHP5 and it looks like you have to predefine variables. After line 105 above, I put in the following:
$fastlinks1 = "";
$fastlinks2 = "":
and it stopped reporting that error. Now I get:
General PHP error:
Non-static method DB::isError() should not be called statically
I saw this in include.php:
57 /*
58 ** Note confusing php5 E_STRICT error, which affects JPGraph use:
59 ** "Non-static method DB::isError() should not be called statically "
60 ** It's unclear what solution works for both php4 and php5.
61 ** the documentation recommends PEAR::isError($db) which is also non-static
62 */
I tried turning off E_STRICT in my php.ini but to no avail. Same error and no JPGraph. :(
And yet I discover more as I dig...
My problem was two fold.
1) It helps to read the fine docs that the PHPBT guys wrote. Specifically, in the INSTALL file in the distribution tarball. :-) On line 40 it says:
If you get error "Non-static method DB::isError() should not be called statically",
then edit the JpGraph configuration to set "CATCH_PHPERRMSG" to false.
2) Not a problem, but for the life of me I could not find the JpGraph configuration file! I'm running Ubuntu Feisty, and I discovered that the libphp-jpgraph package is *seriously* out of date (1.5.2, considering the latest JPGraph release is 1.22!). Once I uninstalled the debian package and installed JPGraph version 1.22, I discovered a nifty file called jpg-config.inc in the distribution, and in it the variable "CATCH_PHPERRMSG" is set to true. Setting this to false caused JPGraph to work! SUCCESS!