+ Reply to Thread
Results 1 to 5 of 5

Thread: Serious Problem - Missing file

  1. #1
    Junior Member DamienDarwick's Avatar
    Join Date
    Apr 2010
    Posts
    17
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Serious Problem - Missing file

    I get this error message when trying to check out in my store. The file is missing in the download!

    Code:
    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!

  2. #2
    Developer Greystoke's Avatar
    Join Date
    Mar 2010
    Posts
    156
    Thanks
    2
    Thanked 13 Times in 12 Posts

    Default

    Hi,

    Sorry about this.

    Please edit /osc_express.php line 52:

    Change

    PHP Code:
    require_once('./packages/shop/' $shopfile '.php'); 
    To

    PHP Code:
    require_once('./packages/shop/ext/modules/payment/paypal/' $shopfile '.php'); 

    Please edit /osc_express_payflow.php line 52:

    Change

    PHP Code:
    require_once('./packages/shop/' $shopfile '.php'); 
    To

    PHP Code:
    require_once('./packages/shop/ext/modules/payment/paypal/' $shopfile '.php'); 
    Please let me know if this fixes the problem.

  3. The Following User Says Thank You to Greystoke For This Useful Post:

    DamienDarwick (25-06-2010)

  4. #3
    Junior Member DamienDarwick's Avatar
    Join Date
    Apr 2010
    Posts
    17
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    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.

  5. #4
    Developer Greystoke's Avatar
    Join Date
    Mar 2010
    Posts
    156
    Thanks
    2
    Thanked 13 Times in 12 Posts

    Default

    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:

    PHP Code:
            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:

    PHP Code:
          reset($_POST['configuration']); 
    It should now look like this:

    PHP Code:
          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'

  6. The Following User Says Thank You to Greystoke For This Useful Post:

    DamienDarwick (01-07-2010)

  7. #5
    Junior Member DamienDarwick's Avatar
    Join Date
    Apr 2010
    Posts
    17
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    That worked thanks

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts