Jump to content

include_once() - failed to open stream: No such file or directory


kirubanidhi

Recommended Posts

Let me know, How to resolve this problem.

 

In my errors.csv file. I am getting this warning message.

 

"13 Oct 2017 10:41:07",

File :  "/var/www/html/cy15_pts/classes/Tools.php:

line number:  758",

"(Warning) include_once(/var/www/html/pts/translations//errors.php): failed to open stream: No such file or directory"

 

"13 Oct 2017 10:41:07",

File : "/var/www/html/cy15_pts/classes/Tools.php:

line number: 758",

"(Warning) include_once(): Failed opening '/var/www/html/pts/translations//errors.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear')"

 

 

Below line is my /var/www/html/cy15_pts/classes/Tools.php file code: 

 


public static function displayError($string = 'Fatal error', $htmlentities = true, Context $context = null)

{

global $_ERRORS;

 

if (is_null($context))

$context = Context::getContext();

 

Line no:758       @include_once(_PS_TRANSLATIONS_DIR_.$context->language->iso_code.'errors.php');

}

Edited by kirubanidhi (see edit history)
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
×
×
  • Create New...