osCmax v2.5 User Manual
Results 1 to 9 of 9

Failed opening inclusion (include_path='.;c:\php4\pear')

This is a discussion on Failed opening inclusion (include_path='.;c:\php4\pear') within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; I have MS2-MAX installed and working properly on IIS web server, running PHP 4.2.2, except when I click modules or ...

      
  1. #1
    Anonymous
    Guest


    Default Failed opening inclusion (include_path='.;c:\php4\pear')

    I have MS2-MAX installed and working properly on IIS web server, running PHP 4.2.2, except when I click modules or anything within that section, I get several of the following errors:

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/authorizenet.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Below is my catalog/includes/configure.php file:

    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://mydomain.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://mydomain.com'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', false); // secure webserver for checkout procedure?
    define('HTTP_COOKIE_DOMAIN', 'http://mydomain.com');
    define('HTTPS_COOKIE_DOMAIN', '');
    define('HTTP_COOKIE_PATH', '/catalog/');
    define('HTTPS_COOKIE_PATH', '');
    define('DIR_WS_HTTP_CATALOG', '/catalog/');
    define('DIR_WS_HTTPS_CATALOG', '');
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

    //Added for BTS1.0
    define('DIR_WS_TEMPLATES', 'templates/');
    define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');
    define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');
    //End BTS1.0

    define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
    define('DIR_FS_CATALOG', '/catalog/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

    // define our database connection
    define('DB_SERVER', 'mydomain.com'); // eg, localhost - should not be empty for productive servers
    define('DB_SERVER_USERNAME', 'username');
    define('DB_SERVER_PASSWORD', 'password');
    define('DB_DATABASE', 'first');
    define('USE_PCONNECT', 'true'); // use persistent connections?
    define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
    ?>

    Below is my catalog/admin/includes/configure.php file:

    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://mydomain.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTP_CATALOG_SERVER', 'http://mydomain.com');
    define('HTTPS_CATALOG_SERVER', 'https://mydomain.com');
    define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', '/catalog/'); // where the pages are located on the server
    define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
    define('DIR_FS_ADMIN', '/hosting/webhost/member/userdir/catalog/admin/'); // absolute pate required
    define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
    define('DIR_FS_CATALOG', '/hosting/webhost/member/userdir/catalog/'); // absolute path required
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

    // define our database connection
    define('DB_SERVER', 'mydomain.com'); // eg, localhost - should not be empty for productive servers
    define('DB_SERVER_USERNAME', 'username');
    define('DB_SERVER_PASSWORD', 'password');
    define('DB_DATABASE', 'first');
    define('USE_PCONNECT', 'true'); // use persisstent connections?
    define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
    ?>

    Does anything stick out like a sore thumb to anyone about my configuration? I asked my web host if it may have to do with their php setup - they tell me the following:

    "That would be more of a setup problem because it's not able to find the include path correctly so it's pulling up the default include path in php.ini."

    I read one post about using the IP address, rather than domain name. I tried that, but my host does not allow browsing via IP address. Any other ideas?

    Thank you!

  2. #2
    New Member MintMoney's Avatar
    Join Date
    Oct 2003
    Posts
    6
    Rep Power
    0


    Default

    I was logged in for my previous post - don't know why it did not recognize me. Anyway, I am stumped with this error - any ideas?

  3. #3
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default

    Yea - I do - it is stupid Windows NTFS file permissions...

    In Windows Exploder browse to your website folder - right click on it got to Properties - Select Security - then MAKE sure the "Internet Guest Account" user or IUSR_ had read write access...for all "files, folders and subfolders"

  4. #4
    New Member MintMoney's Avatar
    Join Date
    Oct 2003
    Posts
    6
    Rep Power
    0


    Default

    Thanks so much for your prompt reply, Jpf!

    Per your advice, I applied RWX permissions to IUSR_ accounts from the /catalog/ directory forward. Please correct me if I am wrong, but I believe the permissions on the rest of my web site is irrelevant, right? In any case, this did not solve the problem. I still get same error.

    In addition, I am concerned about proper security for the /catalog/includes/configure.php file?

  5. #5
    Anonymous
    Guest


    Default

    Can anyone help me with this? Please, please, please? I do not know what else to do.

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    Hey, you may want to check this out:

    http://oscdox.com/index.php?name=PNp...horize+net+bug

    It may be related...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    New Member MintMoney's Avatar
    Join Date
    Oct 2003
    Posts
    6
    Rep Power
    0


    Default

    Thanks for the tip - I fixed that bug. Unfortunately, it is unrelated to mine. I get the same error for all modules. The first one I copied just happened to be the authorizenet.php one. I believe this has something to do with / and \ differences in Linux vs. Windows, but I cannot figure out which line in my configure files is causing the problem.

    For example, I successfully re-installed which changed the following lines in my admin\includes\configure.php file:

    After install:
    define('DIR_FS_ADMIN', 'c:/hosting/webhost/member/userdir/catalog/admin/'); // absolute pate required
    define('DIR_FS_CATALOG', 'c:/hosting/webhost/member/userdir/catalog/'); // absolute path required

    Then got the following error when I click on modules in admin:
    Warning: Failed opening 'c:/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/authorizenet.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    NOTE THE REVERSE VS. FORWARD SLASHES

    Next, I edited the configure.php file to this new setting (correcting the forward slashes):

    define('DIR_FS_ADMIN', 'c:\hosting\webhost\member\userdir\catalog\admin\' ); // absolute pate required
    define('DIR_FS_CATALOG', 'c:\hosting\webhost\member\userdir\catalog\'); // absolute path required

    then got the following error in all of admin:
    Parse error: parse error, unexpected T_STRING in c:\hosting\webhost\member\userdir\catalog\admin\in cludes\configure.php on line 21

    Fatal error: Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\in cludes\application_top.php on line 44

    Does this help you help me?

  8. #8
    New Member MintMoney's Avatar
    Join Date
    Oct 2003
    Posts
    6
    Rep Power
    0


    Default

    In case it may help someone to advise me, below is the entire list of errors I receive after clicking "Modules" in admin (Note the / versus \ syntax and that all errors refer to the modules.php file):

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/authorizenet.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/authorizenet.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/cc.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/cc.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/cod.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/cod.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/efsnet.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/efsnet.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/freecharger.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/freecharger.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/geotrust.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/geotrust.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/ipayment.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/ipayment.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/moneyorder.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/moneyorder.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/nochex.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/nochex.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/paybox.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/paybox.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/paypal.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/paypal.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/paypalipn.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/paypalipn.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/pm2checkout.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/pm2checkout.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/psigate.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/psigate.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/languages/english/modules/payment/secpay.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 129

    Warning: Failed opening '/hosting/webhost/member/userdir/catalog/includes/modules/payment/secpay.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost\member\userdir\catalog\admin\mo dules.php on line 130

    Module Directory: /hosting/webhost/member/userdir/catalog/includes/modules/payment/

  9. #9
    New Member MintMoney's Avatar
    Join Date
    Oct 2003
    Posts
    6
    Rep Power
    0


    Default

    Could someone please give me their opinion on this error? Thank you

Similar Threads

  1. Failed opening required...
    By webmissie in forum osCommerce 2.2 Installation Help
    Replies: 6
    Last Post: 12-24-2003, 06:11 AM
  2. OsCommerce MS2 with PHP4.1.2?
    By Lynoure in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 11-11-2003, 11:30 AM
  3. Failed opening required 'DIR_WS_TEMPLATESmain_page.tpl.php'
    By Anonymous in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 11-04-2003, 09:47 AM
  4. Sessions do not seem to work on W2K /Apache/ PHP4.2
    By oben in forum osCommerce 2.2 Installation Help
    Replies: 9
    Last Post: 08-21-2003, 02:44 PM
  5. MS2.2_MAX Cookies not functioning-apache1.3.27/php4.3.2
    By Demented in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 08-21-2003, 02:41 PM

Bookmarks

Posting Permissions

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