Skip to content

Can't find cURL class #22

Open
Open

Description

@goonydev

Hello,

I just installed this library on my local machine running with EasyPHP. I followed the installation guide, but when I try to use the example file to post an article i get the following error:

Fatal error: Class 'ChapterThree\AppleNewsAPI\PublisherAPI\Curl' not found in C:\EasyPHP-Devserver-16.1\spip\AppleNewsAPI\src\PublisherAPI.php on line 20

Now I am not familiar with namespaces and aliases... Is this a common error newbies encounter? Is it the fact that the classes are in a "src" folder, that is not mentionned in the namespace?

Thank you for your time.
Benoit.

Activity

  1. minnur commented on Sep 21, 2017

    @minnur
    Contributor

    @goonydev It seems like your installation is missing curl library. Please make sure it is enabled

  2. goonydev commented on Sep 22, 2017

    @goonydev
    Author

    You are right. I will try to install it and come back to close this ticket if it fixes the issue. Thank you for your help.

  3. goonydev commented on Sep 28, 2017

    @goonydev
    Author

    Hi again,

    I tried this time to install the library on a server that has cURL for sure, and I get the exact same message:

    Fatal error: Class 'ChapterThree\AppleNewsAPI\PublisherAPI\Curl' not found in /xxxxxxxxx/AppleNewsAPI/src/PublisherAPI.php on line 20

    I installed the package like it is told in the description. However, I got those warnings while running "composer.phar install":

    Package kherge/version is abandoned, you should avoid using it. No replacement was suggested.
    Package herrera-io/json is abandoned, you should avoid using it. Use kherge/json instead.
    Package herrera-io/phar-update is abandoned, you should avoid using it. No replacement was suggested.

    It's too bad... I don't want to reinvent the wheel and write my own code to upload apple news articles. Do you have any idea what could be wrong?

    Thanks in advance.

  4. goonydev commented on Sep 28, 2017

    @goonydev
    Author

    by the way i get this message while trying to run /examples/PublisherAPI/PostArticle.php, and I made sure to fill the API ids (key, secret, channel_id) with mine.

  5. goonydev commented on Sep 29, 2017

    @goonydev
    Author

    I made progress. I had to include "vendor/autoload.php" at the begining of PostArticle.php, is that right?

  6. goonydev commented on Sep 29, 2017

    @goonydev
    Author

    Uh? Is Drupal necessary to use this library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions