0

PHP Warning: is_file(): open_basedir restriction in effect. File(\metadata.xml) is not within the allowed path(s): (D:/INETPUB/VHOSTS//canopussystems.com\;C:\Windows\Temp) in D:\INETPUB\VHOSTS\canopussystems.com\ecommerce.canopussystems.com\mycart\cart\administrator\components\com_menus\models\item.php on line 951

NITIN PATEL
  • 460
  • 5
  • 12
  • Hi! Since some time, Joomla has its own StackExchange site: [joomla.stackexchange.com](http://joomla.stackexchange.com). I recommend you asking your future [tag:joomla]-related questions there. – miroxlav Jan 24 '15 at 14:02

2 Answers2

1

you can bypass this if you don't have access to server configeration -in my case I don't- by editing the php code in the administrator\components\com_menus\models\item.php

look up

        $option = '';
        $base = '';

        if (isset($args['option']))
        {
            // The option determines the base path to work with.
            $option = $args['option'];
            $base = JPATH_SITE . '/components/' . $option;
        }

and replace it with

        $option = '';
        $base ='';

        if (isset($args['option']))
        {
            // The option determines the base path to work with.
            $option = $args['option'];
            $base = 'D:/INETPUB/VHOSTS/canopussystems.com\ecommerce.canopussystems.com\mycart\cart'. '/components/' . $option;
        }

that worked for me till I get access to php configuration . u should make sure the path is correct though.

0

Check php configuration using <?php phpinfo(); ?> Search php.ini file and change settings . And search "open_basedir" that file. then replace

open_basedir = "/var/www/htdocs/:/var/www/tmp/" 
Arshid KV
  • 9,631
  • 3
  • 35
  • 36