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

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

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

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Fatal error: Class 'Sendy' not found when registering from app

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:

Code:

jimport('sendy.sendy');

Even more simplified though, you can directly require our Sendy class:

Code:

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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24145 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11685
Total Polls:
0
Total Posts:
49056
Posts today:
5
User Info
 
Total Users:
47818
Newest User:
normastainfo
Members Online:
0
Guests Online:
918

Online: 
There are no members online
Social Stream
SourceCoast Joomla Social Extensions
Friday, 25 May 2018
JFBConnect 8.0 Coming Soon! Stay tuned.
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program