Topic: PHP Error

Hello,

I just installed the open source version of tracmor and while I can log into the system, I get the following error directly afterwards:

Indirect modification of overloaded property QDataGrid::$ColumnArray has no effect


Error Type:   E_NOTICE

Rendered Page:   Click here to view contents able to be rendered

Source File:   /var/www/includes/qcodo/qform/QDataGridColumnToggle.class.php     Line:   40


Line 35:            public function GetControlHtml() {
Line 36:               
Line 37:                // Create the Column Labels. They cannot be created when creating the datagrid because columns can be added after instantiation.
Line 38:                $this->arrColumnLabels = array();
Line 39:                if ($this->objParentControl->ColumnArray) {
Line 40:                    foreach ($this->objParentControl->ColumnArray as $objColumn) {
Line 41:                        $lblColumn = new QLabel($this->pnlColumnToggleMenu);
Line 42:                        // If it is an image, and only an image, and it has an alt attribute, then use that value for the menu
Line 43:                        if (substr($objColumn->Name, 0, 4) == '<img') {
Line 44:                            if ($intMatch = stripos($objColumn->Name, "alt=")) {
Line 45:                                $intStart = $intMatch+4;


If I choose to show the contents that can be rendered, nothing is clickable.

Thanks for your help.

Re: PHP Error

Hi there,

I haven't seen that error before. Can you give us some more information about your setup? See here for a list of things we need to help you troubleshoot. I just posted it, so don't feel bad for not including them in your first post. smile

Justin Sinclair

Got Inventory? Get Tracmor.

Re: PHP Error

Hello,

Thanks for getting back to me.

The error message is above, but please find the rest of the requested information below.


•Platform (Windows, Mac, Linux, BSD) Debian

•PHP and MySQL version
MYSQL 5.0.32-7etch11
PHP 5.2.0+dfsg-8+etch16

•tracmor version:  0.2.0 and 0.1.0

•Browser & version: IE8

•Error messages (be sure to check your web server error log for errors that may not appear in your browser)

•If you are having problems installing tracmor, include your __DOCROOT__ and __SUBDIRECTORY__ settings from configuration.inc.php (do NOT post your database login details)

define ('__DOCROOT__', '/var/www/');
define ('__VIRTUAL_DIRECTORY__', '');
define ('__SUBDIRECTORY__', '/tracmor');

Thank you!