techjoomla / com_api

API framework for Joomla
http://docs.techjoomla.com/joomla-rest-api/com-api-introduction
GNU General Public License v3.0
123 stars 97 forks source link

Cant get the Com_api to work #24

Closed saisworld closed 7 years ago

saisworld commented 8 years ago

Hi,

I installed com_api and users plugin on my Joomla 2.5 website. I downloaded the zip file from github and installed by logging in as admin and installed it via extensions, add new. It installed the Module and Plugin (users). However when I try to access - http://mywebsite.com/index.php?option=com_api&app=users&format=raw&resource=login , it gives me 500 internal server error. Could someone please advise?

Thanks in advance

coolbung commented 8 years ago

If it's giving a 500 error, it's likely that you are getting a PHP fatal error. Can you turn on error reporting and see what error do you get ?

On Sun, May 1, 2016 at 3:18 AM, saisworld notifications@github.com wrote:

Hi,

I installed com_api and users plugin on my Joomla 2.5 website. I downloaded the zip file from github and installed by logging in as admin and installed it via extensions, add new. It installed the Module and Plugin (users). However when I try to access - http://mywebsite.com/index.php?option=com_api&app=users&format=raw&resource=login , it gives me 500 internal server error. Could someone please advise?

Thanks in advance

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/techjoomla/com_api/issues/24

Thanks! Ashwin Date techjoomla.com http://techjoomla.com/?utm_source=email_signature&utm_medium=email&utm_campaign=ashwin | appcarvers.com http://appcarvers.com/?utm_source=email_signature&utm_medium=email&utm_campaign=ashwin | tekdi.net http://tekdi.net/?utm_source=email_signature&utm_medium=email&utm_campaign=ashwin @coolbung | @techjoomla | @appcarvers | @tekdinet

If it isn't broken, don't fix it!

ServeTT commented 7 years ago

@coolbung Hello. Have the same problem with articles and categories plugin. Joomla 2.5.28 500 error, in my error_log PHP Fatal error: include() [function.include]: Cannot redeclare class jdispatcher in /home/s/servett/grandsmetanew/public_html/libraries/loader.php on line 354

At that line there is include(). If I change it to require_once - the error is: Class 'JEventDispatcher' not found in /home/s/servett/grandsmetanew/public_html/components/com_api/libraries/plugin.php on line 79

Can You help, please??

Thanks.

ServeTT commented 7 years ago

@coolbung Installed version 1.5.1 (just for test) https://techjoomla.com/index.php?option=com_ars&view=Items&release_id=268&Itemid=390

Now component works, but result is - API Plugin Not Found

coolbung commented 7 years ago

Please check the docs @ServeTT - http://techjoomla.github.io/com_api/

You need to ensure you are calling the right resource URL. With v2.1 you can use SEF URLs. The URL for all articles is

/api/articles/article - list of articles /api/articles/article/{id} - specific article /api/categories/categories - list of content categories

Please check and let me know if you are still facing issues making a call.

coolbung commented 7 years ago

Closing. Please reopen with more details if there is still an issue.