PDA

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



Anonymous
10-31-2003, 02:49 PM
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: :x

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!

MintMoney
11-03-2003, 09:12 AM
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?

jpf
11-03-2003, 01:15 PM
Yea - I do - it is stupid Windows NTFS file permissions...

In Windows Exploder :twisted: 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"

MintMoney
11-03-2003, 04:07 PM
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?

Anonymous
11-04-2003, 02:13 PM
Can anyone help me with this? Please, please, please? I do not know what else to do. :roll:

michael_s
11-04-2003, 03:16 PM
Hey, you may want to check this out:

http://oscdox.com/index.php?name=PNphpBB2&file=viewtopic&t=1274&high light=authorize+net+bug

It may be related...

MintMoney
11-04-2003, 04:25 PM
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?

MintMoney
11-04-2003, 06:53 PM
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/

MintMoney
11-11-2003, 02:16 PM
Could someone please give me their opinion on this error? Thank you :-)