Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exception: include(): realpath failed to canonicalize Service/Response.php - bailing

I am facing below issue:

Exception: include(): realpath failed to canonicalize Service/Response.php - bailing

Below are my server configuration:

  • OS- Debian
  • Php- 5.2.x
  • Mysql - 5.1.
  • Nginx
  • Zend

I have googled a lot but did not find any solution.

like image 609
Swapnil jaiswal Avatar asked Mar 10 '26 12:03

Swapnil jaiswal


1 Answers

OLD ANWSER:

You can also use the function require_once(). This function will not give an error. The difference between include and require is that include gives an error and the script will continue running and with require the script will stop running.

NEW ANWSER:

I did some more research. The error doesn't come from require_once(),require() or include() but to fix this issue for APC-cache you need to set the absolute path, something like /home/user/domains/example.com/public_html/include/config. Include de base directory and the error is gone.

like image 56
Impression Avatar answered Mar 12 '26 04:03

Impression



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!