AutoTweet NG Pro support ? 12 Years, 1 Month ago
|
Karma: 0
|
Hello Edwin
Would you like to answer to developer from extly.com who is developing new component AutoTweet NG Pro. They would like to support jms2win within their component
1. Please, send the error description:
[18-Oct-2012 18:09:14 UTC] PHP Fatal error: Class 'CommunityIndex.phpController' not found in /home/******/subdomains/master/public_html/components/com_community/community.php on line 167
[18-Oct-2012 18:09:28 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/******/subdomains/master/public_html/libraries/joomla/string/string.php on line 970
[18-Oct-2012 18:10:46 UTC] PHP Fatal error: Class 'CommunityIndex.phpController' not found in /home/******/subdomains/master/public_html/components/com_community/community.php on line 167
2. How a JomSocial plugin must include the JomSocial Library API?
For example, plugins/community/walls/walls.php includes the JomSocial API in the same way. Please, send us the file to check if it's modified.
Thanks,
I will appreciate your support in this matter.
|
|
|
|
|
Re: AutoTweet NG Pro support ? 12 Years, 1 Month ago
|
Karma: 54
|
1) Perhaps that your develop work with Joomla 3.0
In joomla 3.0 the "JController" is no more a class.
He has to use the "JControllerLegacy".
This is also a change between Joomla 2.5.6 and 2.5.7 that consists in using the JControllerLegacy instead of JController.
Another possible reason is that you have ".php" inside the class name.
So the developper probably didn't provided the correct instance name.
Perhaps he used basename() function without specifying to ignore the '.php'
2) You always have to use the standard joomla JPATH_XXXX
ie. JPATH_SITE, JPATH_LIBRARIES, ...
|
|
|
|
|
Re:AutoTweet NG Pro support ? 12 Years, 1 Month ago
|
Karma: 0
|
please do not kill the messanger
reply I'm sorry, the answer is not clear.
We are only including JomSocial API in this way:
require_once JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php';
And you get an error 500 in the screen.
[18-Oct-2012 18:09:14 UTC] PHP Fatal error: Class 'CommunityIndex.phpController' not found in /home/canadare/subdomains/master/public_html/components/com_community/community.php on line 167
[18-Oct-2012 18:09:28 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/canadare/subdomains/master/public_html/libraries/joomla/string/string.php on line 970
[18-Oct-2012 18:10:46 UTC] PHP Fatal error: Class 'CommunityIndex.phpController' not found in /home/canadare/subdomains/master/public_html/components/com_community/community.php on line 167
Please, attach a screenshot to the forum post, and this detail.
Thanks,
|
|
|
|
|
Re:AutoTweet NG Pro support ? 12 Years, 1 Month ago
|
Karma: 54
|
When you have a look in the source /components/com_community/community.php on line 167
you can see that the class name is computed in a variable $viewController and this value seems incorrect.
It is computed based on JomSocial $config['name'] that seems to have the value "index.php"
So report this error to JomSocial or the author of "AutoTweet".
|
|
|
|
|
Re:AutoTweet NG Pro support ? 12 Years, 1 Month ago
|
Karma: 0
|
Edwin
At this stage we got reply from another developer
We've tested again. The problem seems to be in this line:
require_once JPATH_ROOT . DS . 'plugins' . DS . 'user' . DS . 'autotweetsocialsubmit' . DS . 'autotweetsocialsubmit.php';
The previous line works Ok:
require_once JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php';
We've tried to hardcode '/home/canadare/subdomains/master/public_html/plugins/user/autotweetsocialsubmit'. But it does not work.
Do you know which is the right path for Jms2Win to find the plugin?
Thanks,
|
|
|
|
|
Re:AutoTweet NG Pro support ? 12 Years ago
|
Karma: 54
|
I think that you can not hardcode the physcial path because some code could check that it is part of the JPATH_ROOT of joomla.
This is the case in Joomla 2.5 that at different places, check the path.
You need to use the JPATH_ROOT to compute the path.
The original problem describe report an error on the class name and not on the file that is not included.
You should better have a look how the class name is computed to understand why the "index.php" is added in the class name.
|
|
|
Last Edit: 2012/11/08 18:57 By edwin2win.
|
|
|