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

articles plugin not working #49

Open
ghost opened this issue Sep 26, 2016 · 8 comments
Open

articles plugin not working #49

ghost opened this issue Sep 26, 2016 · 8 comments

Comments

@ghost
Copy link

ghost commented Sep 26, 2016

whenever i browse to http://localhost/joomla/index.php?option=com_api&app=content&resource=articles&format=raw

i get the bellow error


Notice: Trying to get property of non-object in C:\xampp\htdocs\Joomla\components\com_api\libraries\plugin.php on line 59
{"code":400,"message":"Content API Plugin not found, Content is probably not installed"}

Where can i get the content api plugin from?

@ghost
Copy link
Author

ghost commented Sep 26, 2016

update i have also tried

http://localhost/joomla/index.php?option=com_api&app=articles&resource=articles&key=41069cebee474c9e77bbe500ca44a3fc&format=raw&id=71

And get

{"code":404,"message":"Articles Resource not found in this API"}

The users plugin seems to work

http://localhost/joomla/index.php?option=com_api&app=users&resource=users&key=41069cebee474c9e77bbe500ca44a3fc&format=raw

[{"id":"12","name":"Super User","username":"admin","email":"xxxxxxxxxxxxxx","block":"0","sendEmail":"1","registerDate":"2016-09-22 09:11:39","lastvisitDate":"2016-09-26 12:28:58","activation":"0","params":"","lastResetTime":"0000-00-00 00:00:00","resetCount":"0","otpKey":"","otep":"","requireReset":"0","group_count":"1","group_names":"Super Users","note_count":0}]

@parthlawate
Copy link
Member

Hi,

By the looks of it you havent installed and/or enabled the articles plugin. You can find it here https://github.com/techjoomla/com_api-plugins/tree/master/articles

@ghost
Copy link
Author

ghost commented Sep 27, 2016

@parthlawate thanks for getting back to me.
I have definitely installed and enabled the articles the plugin
image

Whenever i try and call it the below happens

image

@coolbung
Copy link
Member

coolbung commented Oct 1, 2016

I see that the documentation was wrong. It was using app=content instead of app=articles

Note that while the app name has the plural, the resource name has singular. SO please try the URL as index.php?option=com_api&app=articles&resource=article&format=raw

Can you try and confirm if this works ?

@ghost
Copy link
Author

ghost commented Oct 4, 2016

@coolbung I have tried changing the app to articles and the resource to article and it is s till not working i get the following response

{"code":404,"message":"Article Resource not found in this API"}

see below

image

Thanks in advance

@jrichard2
Copy link

Hi,
I can confirm what Stevie say. Same Problem...

@SuperFra
Copy link

The class name should be ArticlesApiResourceArticle and not ContentApiResourceArticles

@kimisme9386
Copy link

I have the same problem for joomla 3.6.5 and I try to fix the problem then it works fine. But I am not sure it is the standard solution.
The link below
https://github.com/techjoomla/com_api/pull/38/files

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

5 participants