Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

open_basedir restriction in effect PROBLEM URGENT


holeyman

Recommended Posts

Posted

OK, im really stumped here.

 

I'm getting the following error on an old install of OSCOMMERCE.

 

Warning: main() [function.main]: open_basedir restriction in effect. File(/includes/languages/english/) is not within the allowed path(s): (/var/www/vhosts/talk-nightclub.com/httpdocs:/tmp) in /var/www/vhosts/talk-nightclub.com/httpdocs/tickets/admin/includes/application_top.php on line 137

Warning: main(includes/languages/english/) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/talk-nightclub.com/httpdocs/tickets/admin/includes/application_top.php on line 137

Warning: main() [function.include]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:') in /var/www/vhosts/talk-nightclub.com/httpdocs/tickets/admin/includes/application_top.php on line 137

Fatal error: Cannot re-assign $this in /var/www/vhosts/talk-nightclub.com/httpdocs/tickets/admin/includes/classes/upload.php on line 31

 

However, if i install a new version on the same site it works fine, i've tried cross referencing the database and the files and they all seem to match but it does seem to point to a session problem. I've tried all the methods above to no avail HELP!!

  • 3 years later...
Posted

Hello to all

i will describe what happend to me and how this issue resolved (open_basedir restriction in effect)

 

The Problem

First of all i tranfered my files from our local server to my online server

then i got open_basedir restriction in effect

 

i just look the warning message and notice this..

Warning: session_save_path(): open_basedir restriction in effect. File(var/www/shop/includes/work) is not within the allowed path(s): (/home/shop/public_html) in /home/shop/public_html/includes/functions/sessions.php on line 169

that refers to my local web server path !!!

 

How resolved

I just changed the values of

Cache Directory, DIR_FS_CACHE, "var/www/shop/includes/work/" --> "includes/work/"

Session Directory, SESSION_WRITE_DIRECTORY, "var/www/shop/includes/work/" --> "includes/work/"

in MySQL configuration table

 

Now my shop running smoothly without errors

 

Hope this help someone ;)

Sorry for my bad english

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...