Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Sign Up

Ошибка в модификаторе


 Share

Recommended Posts

Доброго времени суток. Возникла ошибка

 

2018-04-01 20:40:16 - PHP Warning:  is_file() expects parameter 1 to be a valid path, string given in /var/www/u0437568/data/www/dekasport.ru/system/storage/modification/system/engine/action.php on line 15

Кусок кода из файла

		if (is_file($file)) {
				$this->file = $file;

				$this->class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', implode('/', $parts));
				break;
			} else {
				$this->method = array_pop($parts);
			}
		}

В чем может быть ошибка и пути ее решения?

Link to comment
Share on other sites


18 часов назад, Igorewa сказал:

В чем может быть ошибка

 

18 часов назад, Igorewa сказал:

is_file() expects parameter 1 to be a valid path, string given

в функцию передается строка, а дожен быть путь к файлу.

смотрите как формируется  $file

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.