View Full Version : Serious Problem - Missing file
DamienDarwick
18-06-2010, 18:22
I get this error message when trying to check out in my store. The file is missing in the download!
Warning: require_once(./packages/shop/express.php) [function.require-once]: failed to open stream: No such file or directory in [path]/osc_express.php on line 52
Fatal error: require_once() [function.require]: Failed opening required './packages/shop/express.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sicfuck1/public_html/adultsexydesigns.com/forums/osc_express.php on line 52
Please send me the file!
Greystoke
18-06-2010, 18:38
Hi,
Sorry about this.
Please edit /osc_express.php line 52:
Change
require_once('./packages/shop/' . $shopfile . '.php');
To
require_once('./packages/shop/ext/modules/payment/paypal/' . $shopfile . '.php');
Please edit /osc_express_payflow.php line 52:
Change
require_once('./packages/shop/' . $shopfile . '.php');
To
require_once('./packages/shop/ext/modules/payment/paypal/' . $shopfile . '.php');
Please let me know if this fixes the problem.
DamienDarwick
25-06-2010, 11:45
Thanks that solved that problem but has made it where I cannot edit the Paypal Express Checkout in the Payment Modules. I cannot set it to true for using it as the option. I cannot set the proper paypal email address or anything.
Greystoke
25-06-2010, 13:42
Do you mean when you click the option True and then click save, it doesn't remember the option.
If so, there is a known issue with this happening on some server with the standard osCommerce installation.
If you add this line to your shop/admin/modules.php it should fix the problem.
After adding the fix, uninstall and then re-install any of the shipping and payment modules that you have installed, in the modules admin section of the shop.
Find this around line 57:
while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
}
tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']));
break;
case 'install':
Add this before the above code:
reset($_POST['configuration']);
It should now look like this:
case 'save':
reset($_POST['configuration']);
while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
}
tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']));
break;
case 'install':
DamienDarwick
01-07-2010, 05:27
That worked thanks :)
Powered by vBulletin™ Version 4.2.5 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.