Error on Step 4 - Systems Settings

Ask your questions regarding TimeTrex installation here.
Locked
ttrostel
Posts: 3
Joined: Fri Jan 26, 2007 8:50 am

Error on Step 4 - Systems Settings

Post by ttrostel »

My install fails on step 4 with the following displayed message:

====
EXCEPTION!
====
Error message: Invalid Data, not saving.
Script Name: C:\Program Files\xampp\htdocs\TimeTrex\classes\modules\core\Factory.class.php
Line Number: 774
====
EXCEPTION!
====

I am using the latest XAMPP on Windows XP and TimeTrex version 1.4.2.

All installation variables are the defaults ... ie
Log directory = c:/timetrex/log
storage directory = c:/timetrex/storage
cache directory = c:/timetrex/timetrex

Any clues?

Thanks ... Tom
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Please enable debug mode as explain here http://forums.timetrex.com/viewtopic.php?t=89 and show us the output so we can find out what data is invalid. Please follow the other instructions in that post too.
ttrostel
Posts: 3
Joined: Fri Jan 26, 2007 8:50 am

Post by ttrostel »

Okay ... I did that but now it stops at the license page (even earlier) with the following error:

Code: Select all

Debug Buffer
============================================================================
Memory Usage: N/A
----------------------------------------------------------------------------
DEBUG [135]: [Function](): URI: /TimeTrex/interface/install/License.php
DEBUG [137]: [Function](): Production: 1
DEBUG [92]: TTDate::setTimeZone(): Setting TimeZone: PST8PDT
DEBUG [49]: [Function](): Bypassing Authentication
DEBUG [53]: [Function](): Start
DEBUG [109]: URLBuilder::getURL(): URL: Requirements.php
DEBUG [35]: Redirect::page(): Redirect URL: Requirements.php
DEBUG [93]: URLBuilder::getURL(): URL Values: v=1.4.2S&page=license
DEBUG [109]: URLBuilder::getURL(): URL: pre_install.php?v=1.4.2S&page=license
DEBUG [67]: Install::isInstallMode(): Install Mode is ON
============================================================================

============================================================================
                              PROFILER OUTPUT
============================================================================
Calls                    Time  Routine
-----------------------------------------------------------------------------
  1    0.0000 ms (0.00 %)  unprofiled

       196.9249 ms (100.00 %)  Missed
============================================================================
       196.9249 ms (100.00 %)  OVERALL TIME
============================================================================
There are no further errors logged on the system.

This system is running XAMPP-win32-1.5.5
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Change the debug verbosity to 10, until you reach step 4, then change it to 11 just before you hit "Next".
ttrostel
Posts: 3
Joined: Fri Jan 26, 2007 8:50 am

Post by ttrostel »

Okay now I get the following error:

Code: Select all

======================================================================
EXCEPTION!
======================================================================
Error message: Invalid Data, not saving.
Error code: 0
Script Name: C:\Program Files\xampp\htdocs\TimeTrex\classes\modules\core\Factory.class.php
Line Number: 774
======================================================================
EXCEPTION!
======================================================================

Debug Buffer
============================================================================
Memory Usage: N/A
----------------------------------------------------------------------------
DEBUG [135]: [Function](): URI: /TimeTrex/interface/install/SystemSettings.php?data%5Bbase_url%5D=%2FTimeTrex%2Finterface&data%5Blog_dir%5D=c%3A%5Ctimetrex%5Clog&data%5Bstorage_dir%5D=c%3A%5Ctimetrex%5Cstorage&data%5Bcache_dir%5D=c%3A%5Ctemp%5Ctimetrex&action=Next
DEBUG [137]: [Function](): Production: 1
DEBUG [92]: TTDate::setTimeZone(): Setting TimeZone: PST8PDT
DEBUG [49]: [Function](): Bypassing Authentication
DEBUG [67]: Install::isInstallMode(): Install Mode is ON
DEBUG [61]: [Function](): Next
DEBUG [144]: Validator::isLength(): Value: update_notify Length: 13 Min: 1 Max: 250
DEBUG [48] Array: SystemSettingFactory::isUniqueName(): Unique Name: update_notify

bool(false)


DEBUG [144]: Validator::isLength(): Value: 0 Length: 1 Min: 1 Max: 250
DEBUG [720]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 0 Trans Off: 0
DEBUG [766]: Factory::Save(): Calling preSave()
DEBUG [796]: Factory::Save(): Insert ID: 6
DEBUG [702]: Factory::getInsertQuery(): Insert
DEBUG [106]: Validator::isNumeric(): Value:6
DEBUG [94]: Validator::inArrayKey(): Key: 10
DEBUG [144]: Validator::isLength(): Value: system_setting Length: 14 Min: 2 Max: 250
DEBUG [144]: Validator::isLength(): Value: System Setting - Name: update_notify Value: 0 Length: 45 Min: 2 Max: 2000
DEBUG [720]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [766]: Factory::Save(): Calling preSave()
DEBUG [256]: Validator::isDate(): Raw Date: 1170095850 Converted Value: 1170095850
DEBUG [796]: Factory::Save(): Insert ID: 31
DEBUG [702]: Factory::getInsertQuery(): Insert
DEBUG [730]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 2
DEBUG [847]: Factory::Save(): Calling postSave()
DEBUG [77]: Factory::removeCache(): Attempting to remove cache: all
DEBUG [80]: Factory::removeCache(): Removing cache: all
DEBUG [730]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [144]: Validator::isLength(): Value: anonymous_update_notify Length: 23 Min: 1 Max: 250
DEBUG [48] Array: SystemSettingFactory::isUniqueName(): Unique Name: anonymous_update_notify

bool(false)


DEBUG [144]: Validator::isLength(): Value: 0 Length: 1 Min: 1 Max: 250
DEBUG [720]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 0 Trans Off: 0
DEBUG [766]: Factory::Save(): Calling preSave()
DEBUG [796]: Factory::Save(): Insert ID: 7
DEBUG [702]: Factory::getInsertQuery(): Insert
DEBUG [106]: Validator::isNumeric(): Value:7
DEBUG [94]: Validator::inArrayKey(): Key: 10
DEBUG [144]: Validator::isLength(): Value: system_setting Length: 14 Min: 2 Max: 250
DEBUG [144]: Validator::isLength(): Value: System Setting - Name: anonymous_update_notify Value: 0 Length: 55 Min: 2 Max: 2000
DEBUG [720]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [766]: Factory::Save(): Calling preSave()
DEBUG [256]: Validator::isDate(): Raw Date: 1170095850 Converted Value: 1170095850
DEBUG [796]: Factory::Save(): Insert ID: 32
DEBUG [702]: Factory::getInsertQuery(): Insert
DEBUG [730]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 2
DEBUG [847]: Factory::Save(): Calling postSave()
DEBUG [77]: Factory::removeCache(): Attempting to remove cache: all
DEBUG [80]: Factory::removeCache(): Removing cache: all
DEBUG [730]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [138]: TimeTrexSoapClient::saveRegistrationKey(): Registration Key from server: SoapFault exception: [HTTP] Could not connect to host in C:\Program Files\xampp\htdocs\TimeTrex\classes\modules\soap\TimeTrexSoapClient.class.php:128 Stack trace: #0 [internal function]: SoapClient->__doRequest('__call('generateRegistr...', Array) #2 C:\Program Files\xampp\htdocs\TimeTrex\classes\modules\soap\TimeTrexSoapClient.class.php(128): SoapClient->generateRegistrationKey() #3 C:\Program Files\xampp\htdocs\TimeTrex\classes\modules\soap\TimeTrexSoapClient.class.php(136): TimeTrexSoapClient->getRegistrationKey() #4 C:\Program Files\xampp\htdocs\TimeTrex\interface\install\SystemSettings.php(111): TimeTrexSoapClient->saveRegistrationKey() #5 {main}
DEBUG [144]: Validator::isLength(): Value: registration_key Length: 16 Min: 1 Max: 250
DEBUG [48] Array: SystemSettingFactory::isUniqueName(): Unique Name: registration_key

bool(false)


DEBUG [144]: Validator::isLength(): Value: SoapFault exception: [HTTP] Could not connect to host in C:\Program Files\xampp\htdocs\TimeTrex\classes\modules\soap\TimeTrexSoapClient.class.php:128 Stack trace: #0 [internal function]: SoapClient->__doRequest('__call('generateRegistr...', Array) #2 C:\Program Files\xampp\htdocs\TimeTrex\classes\modules\soap\TimeTrexSoapClient.class.php(128): SoapClient->generateRegistrationKey() #3 C:\Program Files\xampp\htdocs\TimeTrex\classes\modules\soap\TimeTrexSoapClient.class.php(136): TimeTrexSoapClient->getRegistrationKey() #4 C:\Program Files\xampp\htdocs\TimeTrex\interface\install\SystemSettings.php(111): TimeTrexSoapClient->saveRegistrationKey() #5 {main} Length: 766 Min: 1 Max: 250
DEBUG [405]: Validator::Error(): Validation Error: Label: value Msg: Value is too short or too long
DEBUG [720]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 0 Trans Off: 0
DEBUG [766]: Factory::Save(): Calling preSave()
DEBUG [384] Array: Validator::isValid(): Errors

array(1) {
  ["value"]=>
  array(1) {
    [0]=>
    string(30) "Value is too short or too long"
  }
}

I see that you are trying to call a soap method to create a registration for this installation. The computer I am installing to does not have an active connection to the Internet. Is there a work around at this time? Perhaps a manual registration method could be added in your next version.

I commented out lines 110 and 111 of SystemSettings.php but am not sure what other parts of the code require that registration data.

Thanks

Tom
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

I will mention to this to developers, it should fail gracefully and continue on if it can't get a registration key.

Not having a registration key will limit several features that TimeTrex offers, but if your server doesn't have an internet connection you can't use those features anyways.
Johanyrh
Posts: 1
Joined: Thu Feb 01, 2007 11:49 pm

Post by Johanyrh »

I had the same problem.
I removed xampp 32.1.5.5 and installed 32.1.5.3a, reinstlle Timetrex and it is working now.

Regards

Johan
Locked