Skip to content

Fatal error: require(): Failed opening required 'Phpfastcache' folder #189

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
nikmauro opened this issue Feb 5, 2016 · 10 comments
Closed

Comments

@nikmauro
Copy link
Contributor

nikmauro commented Feb 5, 2016

Warning: require(/home/www/mysite/vendor/phpfastcache/phpfastcache/src/Phpfastcache/legacy/aliases.php): failed to open stream: No such file or directory in /home/www/mysite/vendor/composer/autoload_real.php on line 55

Fatal error: require(): Failed opening required '/home/www/mysite/vendor/phpfastcache/phpfastcache/src/Phpfastcache/legacy/aliases.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/www/mysite/vendor/composer/autoload_real.php on line 55

This wrong path /home/www/mysite/vendor/phpfastcache/phpfastcache/src/Phpfastcache/legacy/aliases.php
the folder Phpfastcache is phpfastcache

@nikmauro
Copy link
Contributor Author

nikmauro commented Feb 5, 2016

I have rename manual the folder path and now the project return this

Fatal error: Class 'Phpfastcache\core\InstanceManager' not found in /home/www/cms39/library/cache.php on line 53

I test with code in examples/3.setup.php

@nikmauro
Copy link
Contributor Author

nikmauro commented Feb 5, 2016

After composer update the the file /vendor/composer/autoload_prs4.php is empty

<?php

// autoload_psr4.php @generated by Composer

$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);

return array();

@Geolim4
Copy link
Member

Geolim4 commented Feb 5, 2016

​Did you ran the composer ?​

2016-02-05 11:02 GMT+01:00 nikmauro notifications@github.com:

anual the folder path and now the project return this

Georges.L

@nikmauro
Copy link
Contributor Author

nikmauro commented Feb 5, 2016

composer.json

{
  "require": {
    "phpfastcache/phpfastcache": "dev-final"
  }
}

`# composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)

  • Installing phpfastcache/phpfastcache (dev-final 3cca8f8)
    Cloning 3cca8f8

Writing lock file
Generating autoload files`

autoload_files.php

$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);

return array(
    'b4d7f4479c3aadd86b8a9e7699412297' => $vendorDir . '/phpfastcache/phpfastcache/src/Phpfastcache/legacy/aliases.php',
);

autoload_namespaces.php

$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);

return array(
    'Phpfastcache' => array($vendorDir . '/phpfastcache/phpfastcache/src'),
);

@Geolim4
Copy link
Member

Geolim4 commented Feb 5, 2016

Could you zip me the whole directory including phpfastcache and the composer bin ?
Thanks !

@Geolim4
Copy link
Member

Geolim4 commented Feb 5, 2016

I also retested it in my side with a composer update, everything works fine, i'm surprised O.o

@nikmauro nikmauro closed this as completed Feb 5, 2016
@nikmauro nikmauro reopened this Feb 5, 2016
@Geolim4
Copy link
Member

Geolim4 commented Feb 5, 2016

Ok got it, i'm on it.

@Geolim4
Copy link
Member

Geolim4 commented Feb 5, 2016

Fixed with 4.0.3.
Delete your vendor directory and run a composer update :)

Regards,
Georges

@Geolim4 Geolim4 closed this as completed Feb 5, 2016
@nikmauro
Copy link
Contributor Author

nikmauro commented Feb 6, 2016

Perfect! Thanks @Geolim4

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants