Topic: [DEFERRED] company creation give error in SeaMonkey - Mozilla

Very excellent code!!!! Thanks

My problem... and I hope  (think) not only my.

Save Action for Creation of Company (fro exemple). Action  works correct and saves company data using  Internet Explore but give error using SeaMonkey  from Mozilla.

from login page of trackmor
PHP Version:    5.2.3
MySql Version:    5.0.37
Qcodo Version:    0.3.32 (Qcodo Beta 3)
Build Date:    Tue Jul 29 13:37:33 PDT 2008

Browser info:
Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.8.1.19) Gecko/20081204 SeaMonkey/1.1.14

Internet explorer: version 6.0.2900.2180.

Other qcodo application works and save data...  but is the first time I encountere the FormStateHandler.

after save pushed this popup arise:
  an error occurred during Ajax Response parsing.
   the error response will appear in a new popup

and this is the error page text rendered:

Error in PHP Script
/tracmor/contacts/company_edit.php     PHP Version: 5.2.3;  Zend Engine Version: 2.2.0;  Qcodo Version: 0.3.32 (Qcodo Beta 3)
Application: Apache/2.2.4 (Win32) PHP/5.2.3;  Server Name: grossinixv
HTTP User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.8.1.19) Gecko/20081204 SeaMonkey/1.1.14

gzuncompress() [<a href='function.gzuncompress'>function.gzuncompress</a>]: data error
Error Type:   E_WARNING

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

Source File:   C:\wamp\www\tracmor\includes\qcodo\_core\qform_state_handlers\QFormStateHandler.class.php     Line:   44

Line 39:                    $strSerializedForm = $objCrypto->Decrypt($strSerializedForm);
Line 40:                }
Line 41:   
Line 42:                // Uncompress (if available)
Line 43:                if (function_exists('gzcompress'))
Line 44:                    $strSerializedForm = gzuncompress($strSerializedForm);
Line 45:   
Line 46:                return $strSerializedForm;
Line 47:            }
Line 48:        }
Line 49:    ?>


Call Stack:

#0 (): QcodoHandleError()
#1 C:\wamp\www\tracmor\includes\qcodo\_core\qform_state_handlers\QFormStateHandler.class.php(44): gzuncompress()
#2 (): QFormStateHandler::Load()
#3 C:\wamp\www\tracmor\includes\qcodo\_core\qform\QFormBase.class.php(507): call_user_func()
#4 C:\wamp\www\tracmor\includes\qcodo\_core\qform\QFormBase.class.php(151): QFormBase::Unserialize()
#5 C:\wamp\www\tracmor\contacts\company_edit.php(1059): QFormBase::Run()


Variable Dump:   Show/Hide

  HTTP_COOKIE_VARS
  HTTP_ENV_VARS
  HTTP_GET_VARS
  HTTP_POST_FILES
  HTTP_POST_VARS
  HTTP_SERVER_VARS
  HTTP_SESSION_VARS
  _COOKIE
  _ENV
  _FILES
  _GET
  _POST
  _REQUEST
  _SERVER


Error Report Generated:  Monday, January 19 2009, 7:09:52 AM

Re: [DEFERRED] company creation give error in SeaMonkey - Mozilla

We currently test with the recent Firefox and IE browsers mainly,  and do not officially support other browsers.  Of course,  we would prefer to work in as many browsers as possible (in fact,  Tracmor does work in most browsers).  We would appreciate any and all help in testing and fixing issues with other browsers.

Justin Sinclair

Got Inventory? Get Tracmor.

Re: [DEFERRED] company creation give error in SeaMonkey - Mozilla

thanks to your attention.

I solved with a circumvention approach.

This modification on QForm.class.php located in .....www\tracmor\includes\qcodo\qform\

        // magia 2009
        //public static $FormStateHandler = 'QFormStateHandler';
        public static $FormStateHandler = 'QSessionFormStateHandler';

let Tracmor works in my Seamonkey installation.

Gianni

Re: [DEFERRED] company creation give error in SeaMonkey - Mozilla

Thank you Gianni for posting your workaround.  I have looked into this problem,  and I believe it is an issue with the version of Qcodo that Tracmor uses.  See the explanation and solution to the problem in the Qcodo forums here: http://www.qcodo.com/forums/topic.php/2 … uncompress

A Tracmor bug report has been filed for this issue here.  The fix is in the current 'Development' release of Qcodo.  We are deferring the fix of this bug in Tracmor until a new 'Stable' release of Qcodo is available.

Justin Sinclair

Got Inventory? Get Tracmor.