5

I am having problem with this error, I don't have Idea how to fix this.

Warning: require_once(DIR/composer/autoload_real.php) [function.require-once]: failed to open stream: No such file or directory in /home/a2946484/public_html/vendor/autoload.php on line 5

what does it mean ?

Here is my autoload.php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer' . '/autoload_real.php';

return ComposerAutoloaderInitad1b46addec8855e522daae36df0556f::getLoader();
2
  • check your directory permissions Commented Oct 24, 2015 at 17:04
  • Blindshot: It also might be caused by older php version. Instead of require_once __DIR__ . '/composer try: require_once dirname(__FILE__) . '/composer. Commented Oct 25, 2015 at 9:34

1 Answer 1

10

I would suggest deleting the 'vendor' folder of your project and creating it again by running 'composer install' in your project folder in command line.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.