Topic-icon Fatal error: Class 'Sendy' not found when registering from app

Active Subscriptions:

None
Alex,

I'm getting the following error 'Fatal error: Class 'Sendy' not found' when registering a new user through the app I'm developing. It works fine if I register the user on the website, but not through the app, so I'm wondering what files I might need to include in the app's api so that Class Sendy is defined? It looks like it is defined in libraries/sendy.php, but I'm not sure how to get it working from outside Joomla. Can you give me any pointers? Currently I have had to disable the user plugin to get the app registration to work.

Thanks,
Matthew
The topic has been locked.
Support Specialist
I'm not sure what you're even trying to do. What is your app? How is it loading and is it loading the Joomla Framework and Joomla CMS already?

Our Sendy plugins and Sendy library are obviously meant to work within the Joomla CMS. In general, our System plugin is what loads the Sendy library and it does so with the following line:
jimport('sendy.sendy');
Even more simplified though, you can directly require our Sendy class:
require JPATH_SITE . '/libraries/sendy/sendy.php';
That should include our class, but again, I'm not really sure how your App is working or what is different about it and the normal CMS.

Thanks,
Alex
The topic has been locked.