This is a discussion on Faster Page Loads, Less DB queries within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; While fooling around i found that the modules.php could insert a row in the configurations table with an empty configuration_key, ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| While fooling around i found that the modules.php could insert a row in the configurations table with an empty configuration_key, resulting in the cache function inserted; define('', ''); Thus the cached config file got currupted and issuing an error both in catalog and admin. To handle this and to secure other contribs don't imply this error, please replace following line; $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION); With; $configuration_query = tep_db_query("select configuration_key as cfgKey, configuration_value as cfgValue from " . TABLE_CONFIGURATION . " where configuration_key != ''"); The file to download is just a dummy textfile, containing this text. No more no less. Best Regards, Phliplip ;) More...
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FAN - Faster Admin Navigation | michael_s | New osCommerce Contributions | 0 | 02-12-2007 12:02 AM |
| FAN - Faster Admin Navigation | michael_s | New osCommerce Contributions | 0 | 02-11-2007 05:01 PM |
| FAN - Faster Admin Navigation | michael_s | New osCommerce Contributions | 0 | 02-11-2007 10:21 AM |
| So Many Queries so little time | delphi1 | osCMax v2 Customization/Mods | 10 | 11-07-2005 05:02 AM |
| Custom Queries | know | osCommerce 2.2 Modification Help | 1 | 10-29-2002 11:14 AM |