CORE-POS / IS4C

Cooperative Operational Retail Environment
http://www.core-pos.com
GNU General Public License v2.0
64 stars 44 forks source link

install/extra_config loads with toggles set to OFF, regardless #85

Closed joelbrock closed 11 years ago

joelbrock commented 11 years ago

A bug in the new install page for extra. When the page loads all the toggles are set to off, regardless of ini.php contents.

joelbrock commented 11 years ago

@gohanman not sure if this is related but i'm getting nasty errors on extra_config.php at each instance of AutoLoader::ListModules

Screen Shot 2013-02-23 at 8 09 47 PM

joelbrock commented 11 years ago

this is what php-errors.log looks like after a page load:

[24-Feb-2013 04:17:51 UTC] PHP Strict standards: Declaration of AuthorizeDotNet::entered() should be compatible with that of BasicCCModule::entered() in /Users/joel/Sites/PFC_CORE/pos/is4c-nf/plugins/Paycards/AuthorizeDotNet.php on line 38 [24-Feb-2013 04:17:51 UTC] PHP Stack trace: [24-Feb-2013 04:17:51 UTC] PHP 1. {main}() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:0 [24-Feb-2013 04:17:51 UTC] PHP 2. AutoLoader::ListModules() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:197 [24-Feb-2013 04:17:51 UTC] PHP 3. class_exists() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:141 [24-Feb-2013 04:17:51 UTC] PHP 4. AutoLoader::LoadClass() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:0 [24-Feb-2013 04:17:51 UTC] PHP 5. include_once() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:56 [24-Feb-2013 04:17:51 UTC] PHP Strict standards: Declaration of AuthorizeDotNet::cleanup() should be compatible with that of BasicCCModule::cleanup() in /Users/joel/Sites/PFC_CORE/pos/is4c-nf/plugins/Paycards/AuthorizeDotNet.php on line 38 [24-Feb-2013 04:17:51 UTC] PHP Stack trace: [24-Feb-2013 04:17:51 UTC] PHP 1. {main}() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:0 [24-Feb-2013 04:17:51 UTC] PHP 2. AutoLoader::ListModules() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:197 [24-Feb-2013 04:17:51 UTC] PHP 3. class_exists() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:141 [24-Feb-2013 04:17:51 UTC] PHP 4. AutoLoader::LoadClass() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:0 [24-Feb-2013 04:17:51 UTC] PHP 5. include_once() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:56 [24-Feb-2013 04:17:51 UTC] PHP Strict standards: Declaration of GoEMerchant::entered() should be compatible with that of BasicCCModule::entered() in /Users/joel/Sites/PFC_CORE/pos/is4c-nf/plugins/Paycards/GoEMerchant.php on line 789 [24-Feb-2013 04:17:51 UTC] PHP Stack trace: [24-Feb-2013 04:17:51 UTC] PHP 1. {main}() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:0 [24-Feb-2013 04:17:51 UTC] PHP 2. AutoLoader::ListModules() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:197 [24-Feb-2013 04:17:51 UTC] PHP 3. class_exists() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:141 [24-Feb-2013 04:17:51 UTC] PHP 4. AutoLoader::LoadClass() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:0 [24-Feb-2013 04:17:51 UTC] PHP Strict standards: Declaration of GoEMerchant::cleanup() should be compatible with that of BasicCCModule::cleanup() in /Users/joel/Sites/PFC_CORE/pos/is4c-nf/plugins/Paycards/GoEMerchant.php on line 789 [24-Feb-2013 04:17:51 UTC] PHP Stack trace: [24-Feb-2013 04:17:51 UTC] PHP 1. {main}() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:0 [24-Feb-2013 04:17:51 UTC] PHP 2. AutoLoader::ListModules() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:197 [24-Feb-2013 04:17:51 UTC] PHP 3. class_exists() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:141 [24-Feb-2013 04:17:51 UTC] PHP 4. AutoLoader::LoadClass() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:0 [24-Feb-2013 04:17:51 UTC] PHP Strict standards: Declaration of MercuryGift::entered() should be compatible with that of BasicCCModule::entered() in /Users/joel/Sites/PFC_CORE/pos/is4c-nf/plugins/Paycards/MercuryGift.php on line 924 [24-Feb-2013 04:17:51 UTC] PHP Stack trace: [24-Feb-2013 04:17:51 UTC] PHP 1. {main}() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:0 [24-Feb-2013 04:17:51 UTC] PHP 2. AutoLoader::ListModules() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:197 [24-Feb-2013 04:17:51 UTC] PHP 3. class_exists() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:141 [24-Feb-2013 04:17:51 UTC] PHP 4. AutoLoader::LoadClass() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:0 [24-Feb-2013 04:17:51 UTC] PHP Strict standards: Declaration of MercuryGift::cleanup() should be compatible with that of BasicCCModule::cleanup() in /Users/joel/Sites/PFC_CORE/pos/is4c-nf/plugins/Paycards/MercuryGift.php on line 924 [24-Feb-2013 04:17:51 UTC] PHP Stack trace: [24-Feb-2013 04:17:51 UTC] PHP 1. {main}() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:0 [24-Feb-2013 04:17:51 UTC] PHP 2. AutoLoader::ListModules() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:197 [24-Feb-2013 04:17:51 UTC] PHP 3. class_exists() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:141 [24-Feb-2013 04:17:51 UTC] PHP 4. AutoLoader::LoadClass() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:0 [24-Feb-2013 04:17:51 UTC] PHP Strict standards: Declaration of MercuryGift::paycard_void() should be compatible with that of BasicCCModule::paycard_void() in /Users/joel/Sites/PFC_CORE/pos/is4c-nf/plugins/Paycards/MercuryGift.php on line 924 [24-Feb-2013 04:17:51 UTC] PHP Stack trace: [24-Feb-2013 04:17:51 UTC] PHP 1. {main}() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:0 [24-Feb-2013 04:17:51 UTC] PHP 2. AutoLoader::ListModules() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:197 [24-Feb-2013 04:17:51 UTC] PHP 3. class_exists() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:141 [24-Feb-2013 04:17:51 UTC] PHP 4. AutoLoader::LoadClass() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:0 [24-Feb-2013 04:17:51 UTC] PHP Fatal error: Cannot redeclare class PaycardLib in /Users/joel/Sites/PFC_CORE/pos/is4c-nf/plugins/Paycards/lib/paycardLib.php on line 34 [24-Feb-2013 04:17:51 UTC] PHP Stack trace: [24-Feb-2013 04:17:51 UTC] PHP 1. {main}() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:0 [24-Feb-2013 04:17:51 UTC] PHP 2. AutoLoader::ListModules() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/install/extra_config.php:197 [24-Feb-2013 04:17:51 UTC] PHP 3. class_exists() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:141 [24-Feb-2013 04:17:51 UTC] PHP 4. AutoLoader::LoadClass() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:0 [24-Feb-2013 04:17:51 UTC] PHP 5. include_once() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/lib/AutoLoader.php:56 [24-Feb-2013 04:17:51 UTC] PHP 6. include_once() /Users/joel/Sites/PFC_CORE/pos/is4c-nf/plugins/Paycards/MercuryGift.php:31

gohanman commented 11 years ago

This addresses the secondary issue: 363f82bf0f676f714eb7dc356325d725daa72638 (what version / options for PHP do you have? Those stacktraces are cool).

The issue with the toggles is addressed in #115. I've been hesitant to merge that without any feedback, although at least in theory the change in session usage should be seamless.

joelbrock commented 11 years ago

Cool thanks! I pulled #115 and had no issues with the session variables that i could tell.

I got PHP 5.3.15 on OS X 10.8, i know, the stacktraces are handy! (but annoying sometime while developing)