Reiniervr Posted November 11, 2002 Posted November 11, 2002 When using e-mail functions I get the following error Warning: open_basedir restriction in effect. File is in wrong directory in /www/htdocs/fret/shop/catalog/includes/functions/general.php on line 957 Warning: open_basedir restriction in effect. File is in wrong directory in /www/htdocs/fret/shop/catalog/includes/functions/class.phpmailer.php on line 655 Warning: Cannot add header information - headers already sent by (output started at /www/htdocs/fret/shop/catalog/includes/functions/general.php:957) in /www/htdocs/fret/shop/catalog/includes/functions/general.php on line 23
idbeu Posted November 15, 2002 Posted November 15, 2002 Could someone PLEASE help with this issue? I can not, for the life of me, figure this out. I get the same errors; Warning: open_basedir restriction in effect. File is in wrong directory in /home/.newman/jbeck/ store.jamesbeck.com/install/includes/functions/database.php on line 149 I'm hosted by Dreamhost.com. Thank you
idbeu Posted November 15, 2002 Posted November 15, 2002 I figured it out! I reinstalled oscommerce, and made sure I had everything set up correctly. The open_basedir error didn't reappear, but the typical errors were still at the top (install dir still present, and can still write to configure.php), so I renamed /install to /installx. The open_basedir error appeared! So I renamed /installx back to /install. The error dissapeared. I went into /includes/header.php, and commented out the first few lines that look for the installation directory. The error stayed gone. I renamed /install to /installx The error was still gone. And that, ladies and gentlemen, is how you get rid of the error. As far as I can tell, nothing is broken. Just comment out the lines that look for the /install directory, and you'll be all set. Since I had such a bitch of a time getting this to work, I welcome anyone asking questions. [email protected]
Mark Evans Posted November 15, 2002 Posted November 15, 2002 And that, ladies and gentlemen, is how you get rid of the error. As far as I can tell, nothing is broken. Just comment out the lines that look for the /install directory, and you'll be all set. Why not just delete the install directory :D Mark Evans osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops) --------------------------------------- Software is like sex: It's better when it's free. (Linus Torvalds)
idbeu Posted November 15, 2002 Posted November 15, 2002 That'll work too (instead of renaming), but it won't get rid of the error unless you comment out those lines. Granted, not everyone has this problem to begin with. I didn't get the error when I built a local server. This only happens with my remote host. But apparently, a number of other people are getting the same thing.
unistar Posted August 12, 2003 Posted August 12, 2003 The first thing I did after ftping files was to delete the install dir. I just tried commenting out the header.php tip & same thing. I had no probs with my previous version. But I decided to go with 2.2 (MS2) and keep getting these in the middle of default.php: Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/psa/apache/lib/php/includes/modules/FILENAME_DEFAULT_SPECIALS) is not within the allowed path(s): (/usr/local/psa/home/vhosts/myserver.com/httpdocs) in /usr/local/psa/home/vhosts/myserver.com/httpdocs/default.php on line 349 Warning: main(includes/modules/FILENAME_DEFAULT_SPECIALS) [function.main]: failed to create stream: Operation not permitted in /usr/local/psa/home/vhosts/myserver.com/httpdocs/default.php on line 349 Warning: main() [function.main]: Failed opening 'includes/modules/FILENAME_DEFAULT_SPECIALS' for inclusion (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/myserver.com/httpdocs/default.php on line 349 Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/psa/apache/lib/php/includes/modules/FILENAME_FEATURED) is not within the allowed path(s): (/usr/local/psa/home/vhosts/myserver.com/httpdocs) in /usr/local/psa/home/vhosts/myserver.com/httpdocs/default.php on line 352 Warning: main(includes/modules/FILENAME_FEATURED) [function.main]: failed to create stream: Operation not permitted in /usr/local/psa/home/vhosts/myserver.com/httpdocs/default.php on line 352 Warning: main() [function.main]: Failed opening 'includes/modules/FILENAME_FEATURED' for inclusion (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/myserver.com/httpdocs/default.php on line 352 Since I only experience this with (MS2) is there an easy way to make it or configure it as (MS1)?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.