Topic: Installation Error: Undefined index: Qform__FormCallType
Hi,
I've just attempted to install tracmor, and so far, I'm unable to make it work correctly.
OS: Debian Linux 5 (lenny)
PHP: 5.2.6
MySQL: 5.0.51
tracmor: 0.3.0
browser: Firefox 3.6.13, IE8
The login screen comes up, I log in with admin/admin, and then I get the following error:
Error in PHP Script
/inventory/login.php
PHP Version: 5.2.6-1+lenny9; Zend Engine Version: 2.2.0; Qcodo Version: 0.3.32 (Qcodo Beta 3)
Application: Apache/2.2.16; Server Name: x
HTTP User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Undefined index: Qform__FormCallType
Error Type: E_NOTICE
Source File: /var/www/tracmor-0.3.0/includes/qcodo/_core/qform/QFormBase.class.php Line: 158
Line 153:
Line 154: if ($objClass) {
Line 155: global $$strFormId;
Line 156: $$strFormId = $objClass;
Line 157:
Line 158: $objClass->strCallType = $_POST['Qform__FormCallType'];
Line 159: $objClass->intFormStatus = QFormBase::FormStatusUnrendered;
Line 160:
Line 161: if ($objClass->strCallType == QCallType::Ajax)
Line 162: QApplication::$RequestMode = QRequestMode::Ajax;
Line 163:
Call Stack:
#0 /var/www/tracmor-0.3.0/includes/qcodo/_core/qform/QFormBase.class.php(158): QcodoHandleError()
#1 /var/www/tracmor-0.3.0/login.php(128): QFormBase::Run()
Variable Dump: Show/Hide This error is nearly identical to this post from 2008, which makes me believe that I've made a mistake in my __DOCROOT__ and __SUBDIRECTORY__ settings.
I downloaded the pre-packed tarball: http://tracmor.googlecode.com/files/tracmor-0.3.0.tar.gz
and unpacked it to these locations on the server:
/var/www/tracmor-0.3.0 -- location of tracmor files
/var/www/tracmor -- symbolic link to tracmor-0.3.0
On Apache:
Alias /inventory /var/www/tracmor
configuration.inc.php:
__DOCROOT__ = /var/www
__VIRTUAL_DIRECTORY__ = /inventory
__SUBDIRECTORY__ = /tracmor
In this configuration, I can log in with admin/admin and get the previously mentioned error. If I try to view any of the variables from the variable dump, I get the error: "You don't have permission to access /inventory/tracmor/includes/php/_core/error_already_rendered_page.php on this server." (note the extra "tracmor" in the string)
I also tried:
configuration.inc.php:
__DOCROOT__ = /var/www/tracmor
__VIRTUAL_DIRECTORY__ = /inventory
__SUBDIRECTORY__ = ''
In this case, I can log in with admin/admin and get same error as before. However, I can view the variables in the variable dump with this configuration.
/var/www is NOT the DocumentRoot on this server. I also attempted to install tracmor in the DocumentRoot (/home/www) with the same results. Also tried without any symbolic links, same result.
Is this simply a configuration issue on my part? Any help or tips would be greatly appreciated. TIA.