gold682 Posted August 3, 2006 Share Posted August 3, 2006 Hi, I am hoping someone can help me here. Basically I am unable to access my Payments module in the Admin panel. I'm not sure what went wrong but I now get this error message when I click on Payments in the Modules section : Payment Modules Warning: main(/usr/home/bigbadt/public_html/catalog/includes/languages/english/modules/payment/protx_form_old.php): failed to open stream: No such file or directory in /usr/home/bigbadt/public_html/catalog/admin/modules.php on line 134 Warning: main(): Failed opening '/usr/home/bigbadt/public_html/catalog/includes/languages/english/modules/payment/protx_form_old.php' for inclusion (include_path='.:/usr/lib/php') in /usr/home/bigbadt/public_html/catalog/admin/modules.php on line 134 Fatal error: Cannot redeclare class protx_form in /usr/home/bigbadt/public_html/catalog/includes/modules/payment/protx_form_old.php on line 13 ---------------------- As you can see it seems to be trying to reference a file called "protx_form_old.php", which I can only assume was a back-up of the protx_form.php when I was adding various contributions. However this file does NOT exist - all I have is the "protx_form.php" file. I have searched my entire site for reference to this "protx_form_old.php", but there is no reference to it in any of the files. I can only assume it is somehow pulling this filename from the SQL database. If so, can someone explain how I find it (I can access my SQL database via phpmyadmin, but have no idea how to go about tracking this entry down). Your help would be much appreciated. Thanks in advance. Regards Paul Link to comment Share on other sites More sharing options...
kgt Posted August 3, 2006 Share Posted August 3, 2006 You'll find it in the configuration table. Look for the record where configuration_key = MODULE_PAYMENT_INSTALLED. You'll see a list of installed modules. Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
rhubarb Posted August 15, 2006 Share Posted August 15, 2006 You'll find it in the configuration table. Look for the record where configuration_key = MODULE_PAYMENT_INSTALLED. You'll see a list of installed modules. I've got Worldpay installed and also tried installing Protx, but MODULE_PAYMENT_INSTALLED only includes worldpay, which bit of code updates MODULE_PAYMENT_INSTALLED? Link to comment Share on other sites More sharing options...
kgt Posted August 15, 2006 Share Posted August 15, 2006 I've got Worldpay installed and also tried installing Protx, but MODULE_PAYMENT_INSTALLED only includes worldpay, which bit of code updates MODULE_PAYMENT_INSTALLED? This is the code that handles it. admin/modules.php line 185-194: ksort($installed_modules); $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = '" . $module_key . "'"); if (tep_db_num_rows($check_query)) { $check = tep_db_fetch_array($check_query); if ($check['configuration_value'] != implode(';', $installed_modules)) { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . implode(';', $installed_modules) . "', last_modified = now() where configuration_key = '" . $module_key . "'"); } } else { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Installed Modules', '" . $module_key . "', '" . implode(';', $installed_modules) . "', 'This is automatically updated. No need to edit.', '6', '0', now())"); } But you should not have to change this. If the protx module is not getting installed, it's more likely because of an error elsewhere. Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.