Project:Case Tracker
Version:5.x-1.1
Component:User interface
Category:support request
Priority:normal
Assigned:zero2one
Status:closed (fixed)

Issue Summary

I am getting a blank / empty page when clicking on Case Tracker, under Site Configuration.

Also, I can add a new Project without any problems, but the moment I want to add a Case, I get a blank screen again.

I have Views 5.x-1.5 installed & I checked in the logs and don't find any errors.

Comments

#1

Also getting a blank page when I go to the Manage Fields tab in Cases under Content Management -> Content Types.

I've tried increasing the memory as this link suggests, http://drupal.org/node/31819, but still get a Blank screen.

Help! Pleeeeeeeeeeease!!!!

#2

I've looked at my Apache log files and get the following:

  • When going Content Management -> Content Types -> Cases ->Manage Fields
  • [Fri Feb 09 07:44:34 2007] [error] [client 127.0.0.1] PHP Fatal error: Only variables can be passed by reference in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\Exacct\\modules\\casetracker\\casetracker.module on line 393, referer: http://localhost/Exacct/?q=admin/content/types/casetracker-basic-case

  • When going Case Tracker -> Projects -> Add Case
  • [Fri Feb 09 07:45:25 2007] [error] [client 127.0.0.1] PHP Fatal error: Only variables can be passed by reference in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\Exacct\\modules\\casetracker\\casetracker.module on line 393, referer: http://localhost/Exacct/?q=casetracker/projects

  • When going Administer -> Site Configuration-> Case Tracker
  • [Fri Feb 09 07:45:57 2007] [error] [client 127.0.0.1] PHP Fatal error: Only variables can be passed by reference in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\Exacct\\modules\\casetracker\\casetracker.module on line 1142, referer: http://localhost/Exacct/?q=admin/settings

#3

Assigned to:Anonymous» oneighty
Status:active» needs review

For the error on ine 393, I made the following changes (after reading up "variables can be passed by reference") :

$form['casetracker_case_information']['case_status_id'] = array(
...
: variable_get('casetracker_default_case_status', array_shift(array_keys($case_status_options))),

to

$temp_akeys = array_keys($case_status_options);
$form['casetracker_case_information']['case_status_id'] = array(
...
: variable_get('casetracker_default_case_status', array_shift($temp_akeys)),

Did the same for case_priority_options and case_type_options.

For the error on ine 1141, I made the following changes:

foreach (array('priority', 'status', 'type') as $state) {
...
'#default_value' => variable_get('casetracker_default_case_'.$state, array_shift(array_keys($options))),
...

to

foreach (array('priority', 'status', 'type') as $state) {
$temp_akeys = array_keys($options);
...
'#default_value' => variable_get('casetracker_default_case_'.$state, array_shift($temp_akeys)),
...

Hope this all makes sense, 'cause for someone who have never written anything in PHP, it's quite confusing.

AttachmentSize
casetracker.module.txt 64.89 KB

#4

Thanks oneighty, I was having the same issue and that worked for me.

#5

Assigned to:oneighty» zero2one
Status:needs review» fixed

Is fixed in http://drupal.org/node/116842

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.