Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find cURL class #22

Open
goonydev opened this issue Sep 21, 2017 · 6 comments
Open

Can't find cURL class #22

goonydev opened this issue Sep 21, 2017 · 6 comments

Comments

@goonydev
Copy link

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.

@minnur
Copy link
Contributor

minnur commented Sep 21, 2017

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

@goonydev
Copy link
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.

@goonydev
Copy link
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.

@goonydev
Copy link
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.

@goonydev
Copy link
Author

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

@goonydev
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants