Closed samuell closed 4 years ago
Closing as duplicate of #132.
One should do:
include_once("vendor/autoload.php"); // CORRECT!
... NOT like the following, as I did above:
include_once("vendor/semsol/arc2/ARC2.php"); // WRONG!
Hi @samuell, its good that you found a solution to your problem. I am wondering if our documentation about ARC2 setup needs more information about that?
Hi @k00ni , foremost I think the README is missing a link to the documentation in the GitHub wiki. It was only after a while I realized I should check the Wiki for the docs. I think a lot of people will not check the wiki, as most projects are using other ways to host the documentation.
Then, there is the question about whether the classical way should be mentioned, like here. Maybe with a caveat that some classes are not properly loaded that way?
I get a strange class loading problem.
System info
How to reproduce:
Install ARC2 2.5.0 with composer (e.g.) with:
Create a database and a user, and give the user privileges to the database:
Create a test file
arc2test.php
:(Adapt the database details to details of the database you created earlier).
Run the file in the web browser.
Expected behaviour
The web browser should show a functioning page, with the structure of the store object. The error log should not be populated.
Actual behavior.
The web browser gives a
HTTP Error 500
.The error log of Nginx shows: