semsol / arc2

ARC RDF Classes for PHP
Other
332 stars 89 forks source link

Fatal error: Class 'ARC2\Store\Adapter\AbstractAdapter' not found #129

Closed silviolorusso closed 5 years ago

silviolorusso commented 5 years ago

Hi, I'm trying to use an updated version of ARC2 but I get the following error:

Fatal error: Class 'ARC2\Store\Adapter\AbstractAdapter' not found in /[...]/ARC2/Store/Adapter/mysqliAdapter.php on line 17

Any suggestion?

k00ni commented 5 years ago

Hi, did you ran composer update without any errors? And how do you include ARC2, via vendor/autoload.php?

silviolorusso commented 5 years ago

As I am not familiar with composer, I just copy pasted the full repo, including ARC2 as follows:

require 'lib/arc2/ARC2.php';

k00ni commented 5 years ago

Composer helps you to install PHP scripts and libraries. You can run it in the terminal very easily. Here is an introduction.

If you don't want or can use it, the only way is to manually include ALL required PHP files by yourself. In your case, for instance:

and so on. Hope it helps.

silviolorusso commented 5 years ago

Thanks. The installation worked fine!