- Posts: 91
[Solved] Joomdle integration with third-party
- Fabio Ballor
- Topic Author
- Offline
- Premium Member
-
Less
More
15 years 1 month ago - 15 years 1 month ago #1
by Fabio Ballor
[Solved] Joomdle integration with third-party was created by Fabio Ballor
I tried some third party plugins that extend or integrated functions Jomsocial.
Any plugin that works with core-level Jomsocial conflicts with joomdle.
In particular, no longer works the inclusion of activities in the stream of information about:
- The creation of a new course
- The registration of a user in a course
More
- The inclusion of a user private group (which is still created)
You can catch the error code of joomla that creates this problem?
I enclose two plugins ( www.axxis.gr ) that create the problem ... only if activated
I hope it is clear
thanks
mapik
Any plugin that works with core-level Jomsocial conflicts with joomdle.
In particular, no longer works the inclusion of activities in the stream of information about:
- The creation of a new course
- The registration of a user in a course
More
- The inclusion of a user private group (which is still created)
You can catch the error code of joomla that creates this problem?
I enclose two plugins ( www.axxis.gr ) that create the problem ... only if activated
I hope it is clear
thanks
mapik
Last edit: 15 years 1 month ago by Antonio Durán.
The topic has been locked.
- Fabio Ballor
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 91
15 years 1 month ago #2
by Fabio Ballor
Replied by Fabio Ballor on topic Re: Joomdle integration with third-party
Eureka!
I understand that the problem is in this line, present in different plugins:
comment if everything seems to be correctly... 
antonio, you have any ideas?
What can happen to the plugin, or jomdle, commenting on this line?
Mapik
I understand that the problem is in this line, present in different plugins:
Code:
require_once( JPATH_BASE .DS.'components' .DS.'com_community' .DS.'libraries' .DS.'core.php');
antonio, you have any ideas?
What can happen to the plugin, or jomdle, commenting on this line?
Mapik
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
15 years 1 month ago #3
by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle integration with third-party
Hi.
Thanks for the additional info and packages. I will try to replicate locally and will let you know what I find.
Thanks for the additional info and packages. I will try to replicate locally and will let you know what I find.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
15 years 1 month ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle integration with third-party
Hi.
After looking at the code flow in Jomsocial, I see the problem is:
- 3rd party jomsocial plugins get called from Joomdle xmlrpc plugin (for example, when a user is loaded)
- these plugins are written thinking to be called only from main site and not from a xmlrpc plugin.
So they use the line you put:
instead of using:
JPATH_BASE contains the route where Joomla application is executing:
- in main site, this is /
- in xmprc plugin this is /xmlrpc
Looking at the logs, we can see the error:
PHP Fatal error: require_once(): Failed opening required '/var/www/xmlrpc/components/com_community/libraries/core.php'
Notice it is trying to load libraries from the xmlrpc folder, which of course won't work.
So, for me, the only option is to fix the plugins, to use JPATH_SITE instead of JPATH_BASE. I did id and it solves the problem.
If you do it, you could notify the plugin developers, in case they want to consider changing it for future releases.
After looking at the code flow in Jomsocial, I see the problem is:
- 3rd party jomsocial plugins get called from Joomdle xmlrpc plugin (for example, when a user is loaded)
- these plugins are written thinking to be called only from main site and not from a xmlrpc plugin.
So they use the line you put:
Code:
require_once( JPATH_BASE .DS.'components' .DS.'com_community' .DS.'libraries' .DS.'core.php');
instead of using:
Code:
require_once( JPATH_SITE .DS.'components' .DS.'com_community' .DS.'libraries' .DS.'core.php');
JPATH_BASE contains the route where Joomla application is executing:
- in main site, this is /
- in xmprc plugin this is /xmlrpc
Looking at the logs, we can see the error:
PHP Fatal error: require_once(): Failed opening required '/var/www/xmlrpc/components/com_community/libraries/core.php'
Notice it is trying to load libraries from the xmlrpc folder, which of course won't work.
So, for me, the only option is to fix the plugins, to use JPATH_SITE instead of JPATH_BASE. I did id and it solves the problem.
If you do it, you could notify the plugin developers, in case they want to consider changing it for future releases.
The topic has been locked.
- Fabio Ballor
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 91
15 years 1 month ago #5
by Fabio Ballor
Replied by Fabio Ballor on topic Re: Joomdle integration with third-party
Antonio Excellent!
it works!
You can put a nice "resolved " and close this post
thanks again
Mapik
it works!
You can put a nice "resolved " and close this post
thanks again
Mapik
The topic has been locked.