Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Autoload.php doens't exist #3

Open
laudeco opened this issue Feb 11, 2018 · 5 comments
Open

Autoload.php doens't exist #3

laudeco opened this issue Feb 11, 2018 · 5 comments

Comments

@laudeco
Copy link

laudeco commented Feb 11, 2018

My autoload.php doesn't exist at the place where you are looking for ....

require __DIR__ . '/../vendor/autoload.php';

I did something wrong ?

@laudeco
Copy link
Author

laudeco commented Feb 15, 2018

Ping ?

@laudeco
Copy link
Author

laudeco commented Feb 20, 2018

Ping again sorry but it's blocker for me ?

@rdoursenaud
Copy link
Member

The autoloader is generated by composer.
Have you installed the dependencies as instructed in the README?

@laudeco
Copy link
Author

laudeco commented Feb 22, 2018

Hello I installed it via your readme, but the problem is in all files you depend of :
require_once dirname(__FILE__) . '/../../../vendor/autoload.php';

The autoload is not in that folder but at my side it's in :
require __DIR__ . '/../../../includes/autoload.php';

By the way, I'm on Dolibarr: 7.0
Cheers
L.

@rdoursenaud
Copy link
Member

Oh, so you installed it via Dolibarr's composer file?
Composer support in Dolibarr is a mess I don't intend to support. I should remove this install method.
Please install the composer dependencies directly in the module's directory by running composer install --no-dev there and it should work.
Haven't tested the module with Dolibarr 7 yet.
Please let me know how it goes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants