GithubHelp home page GithubHelp logo

Fatal error: Class 'ARC2\Store\Adapter\AbstractAdapter' not found in /Applications/MAMP/htdocs/1semantic/vendor/semsol/arc2/src/ARC2/Store/Adapter/mysqliAdapter.php on line 17 about arc2 HOT 5 CLOSED

mov580 avatar mov580 commented on June 6, 2024
Fatal error: Class 'ARC2\Store\Adapter\AbstractAdapter' not found in /Applications/MAMP/htdocs/1semantic/vendor/semsol/arc2/src/ARC2/Store/Adapter/mysqliAdapter.php on line 17

from arc2.

Comments (5)

k00ni avatar k00ni commented on June 6, 2024

Hi @mov580, how did you include ARC2 files?

As described here: https://github.com/semsol/arc2/wiki/Getting-started-with-ARC2 ?

Did you included vendor/autoload.php ?

from arc2.

mov580 avatar mov580 commented on June 6, 2024

Hi,
Thanks for your response
I added this according to the documentation
include_once("path/to/arc/ARC2.php");

where should I include the vendor/autoload.php
my file?

from arc2.

mov580 avatar mov580 commented on June 6, 2024

OK seems working now but I have another error
Fatal error: Cannot declare class ARC2, because the name is already in use in /Applications/MAMP/htdocs/1semantic/vendor/semsol/arc2/ARC2.php on line 15

from arc2.

k00ni avatar k00ni commented on June 6, 2024

Hi,

your file with ARC2 should begin like the following:

<?php

require ('vendor/autoload.php');

$store = ARC2::getStore($config);
if (!$store->isSetUp()) {
    $store->setUp();
}
// ...

Please replace vendor/autoload.php with the right path on your machine. Do not include vendor/semsol/arc2/ARC2.php when you already included vendor/autoload.php, because they include almost the same files. Because of the double-include, you get the name is already in use errors.

Use vendor/autoload.php only, it should include all required files.

from arc2.

k00ni avatar k00ni commented on June 6, 2024

@mov580: is this solved? Please close this then.

from arc2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.