Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

open_basedir restriction


6 replies to this topic

#1 amerhose

  • Community Member
  • 10 posts
  • Real Name:Michele

Posted 23 April 2009, 04:56

am getting this error and do not understand

Warning: filesize() [function.filesize]: open_basedir restriction in effect. File(/home/tem/public_html/access) is not within the allowed path(s): (/home/templat2:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/tem/public_html/catalog/admin/file_manager.php on line 190

Warning: fileperms() [function.fileperms]: open_basedir restriction in effect. File(/home/tem/public_html/access) is not within the allowed path(s): (/home/templat2:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/tem/public_html/catalog/admin/file_manager.php on line 192

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/tem/public_html/access) is not within the allowed path(s): (/home/templat2:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/tem/public_html/catalog/admin/file_manager.php on line 201

Warning: filemtime() [function.filemtime]: open_basedir restriction in effect. File(/home/tem/public_html/access) is not within the allowed path(s): (/home/templat2:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/tem/public_html/catalog/admin/file_manager.php on line 202

#2 amerhose

  • Community Member
  • 10 posts
  • Real Name:Michele

Posted 23 April 2009, 21:20

Hi all,

Could I get a little bit of help with this?

Thanks

#3 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 23 April 2009, 21:32

caused by the open_basedir restriction on your server.

This change should resolve things:

admin/includes/application_top.php (42):

// Used in the "Backup Manager" to compress backups
  define('LOCAL_EXE_GZIP', '/usr/bin/gzip');
  define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip');
  define('LOCAL_EXE_ZIP', '/usr/local/bin/zip');
  define('LOCAL_EXE_UNZIP', '/usr/local/bin/unzip');

replace with:

// Used in the "Backup Manager" to compress backups
  define('LOCAL_EXE_GZIP', 'gzip'); 
  define('LOCAL_EXE_GUNZIP', 'gunzip'); 
  define('LOCAL_EXE_ZIP', 'zip'); 
  define('LOCAL_EXE_UNZIP', 'unzip');

i would also suggest you add AutoBackup Database in Admin http://addons.oscommerce.com/info/2314
AND Database backup manager http://addons.oscommerce.com/info/5769
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#4 amerhose

  • Community Member
  • 10 posts
  • Real Name:Michele

Posted 23 April 2009, 21:42

Hi,

Thanks for the reply. I did do this however still get the error when accessing file manager in admin.

#5 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 23 April 2009, 22:00

oop's sorry your issue is slightly different to what I first percieved (still if fixes another issue you did'nt find yet!)

I`ve not looked for a solution for file manager as u should not use it.

Do not use File mangler, its a security risk & damages files, best removed.

http://www.oscommerce.info/kb/osCommerce/Common_Problems/15

Use a normal editor like such as html-kit & upload with ftp.
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#6 amerhose

  • Community Member
  • 10 posts
  • Real Name:Michele

Posted 23 April 2009, 22:08

ok thanks. i am just going through clicking on links and have coming up with errors.

like these in image_box.php

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/tem/public_html/catalog/admin/image_box.php on line 152

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/tem/public_html/catalog/admin/includes/classes/object_info.php on line 17

Warning: Variable passed to each() is not an array or object in /home/tem/public_html/catalog/admin/includes/classes/object_info.php on line 18

#7 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 23 April 2009, 22:15

not sure what u are doing, have u added stuff now have errors? if so restore your backup & start again

/image_box is not standard, so u must have added that somewhere?
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.