osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 10-31-2003, 02:49 PM
Anonymous
Guest
 
Posts: n/a
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-03-2003, 09:12 AM
MintMoney's Avatar
New Member
 
Join Date: Oct 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
MintMoney
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-03-2003, 01:15 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
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"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-03-2003, 04:07 PM
MintMoney's Avatar
New Member
 
Join Date: Oct 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
MintMoney
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-04-2003, 02:13 PM
Anonymous
Guest
 
Posts: n/a
Default

Can anyone help me with this? Please, please, please? I do not know what else to do.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 11-04-2003, 03:16 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,080
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 11-04-2003, 04:25 PM
MintMoney's Avatar
New Member
 
Join Date: Oct 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
MintMoney
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 11-04-2003, 06:53 PM
MintMoney's Avatar
New Member
 
Join Date: Oct 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
MintMoney
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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 11-11-2003, 02:16 PM
MintMoney's Avatar
New Member
 
Join Date: Oct 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
MintMoney
Default

Could someone please give me their opinion on this error? Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 08:07 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax