- Posts: 27
COMMUNITY FORUM
error when using the plugin SEO Simple
- dirk80
-
Topic Author
- Offline
- Junior Member
Today I installed K2. I have set up a category and wanted to add an articel. But I get always this error message:
Fatal error: Class ‘JSite’ not found in /var/www/virtual/mywebsite.de/htdocs/plugins/system/SEOSimple.php on line 153
It looks like K2 clashes with the Plugin SEO Simple (www.daobydesign.com/blog/seosimple-joomla-15-plugin/) which I am using already for some month now.
Has anybody an idea what went wrong?
Thx.
Dirk
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- dirk80
-
Topic Author
- Offline
- Junior Member
- Posts: 27
Please Log in or Create an account to join the conversation.
- emiliano doni
-
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.
- John Comeskey
-
- Offline
- Junior Member
- Posts: 33
The Joomla Control Panel? Please explain.
Please Log in or Create an account to join the conversation.
- dirk80
-
Topic Author
- Offline
- Junior Member
- Posts: 27
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- dirk80
-
Topic Author
- Offline
- Junior Member
- Posts: 27
Lefteris Kavadas said:Hi. Similar issues have been posted and have been already solved. You can read more here. So please make sure you are using the latest version of K2. If you do then we have to do more research on this to find out what is causing this.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- dirk80
-
Topic Author
- Offline
- Junior Member
- Posts: 27
Lefteris Kavadas said:Hi. Well it appears that is a SEO Simple bug. This is a system plugin but it triggers on the "onPrepareContent" event which normally is used by content plugins. To be more accurate K2 imports only the content plugins it needs ( SIG and AllVideos ) and then triggers the "onPrepareContent" event. The reason that SEO Simple is executed is because it is a system plugin ( always running ) and it uses a content event ("onPrepareContent" event should only be used by content plugins). The fix is quite easy and it can be done by adding a simple check in the plugin so it doesn't executed on admin sections. K2 cannot do nothing to avoid this. It is definitely a plugin issue.
Please Log in or Create an account to join the conversation.
- Cornerstone Properties, LLC
-
- Offline
- New Member
- Posts: 18
'adding a simple check in the plugin so it doesn't executed on admin sections'.
Thanks
Jeff
Please Log in or Create an account to join the conversation.
- Cornerstone Properties, LLC
-
- Offline
- New Member
- Posts: 18
I tried adding your text, but did not work. There is currently, in the SEO Generator PHP file the following in the same place where you specified:
jimport('joomla.event.plugin');
I added your text, removed the above, tried with both jimport lines, and all combinations, but did not work. There is also the following in my PHP file:
// only mod site pages that are html docs (no admin, install, etc.)
if (!$mainframe->isSite()) return ;
if ($docType != 'html') return ;
I'm not sure if this is possibly the issue or related as well, but I'm getting the following error when I access K2 items in the administrator:
Fatal error: Class 'JSite' not found in /home/detroitr/public_html/organicproductmall/plugins/system/SEOGenerator.php on line 214
Thanks for your help--any other suggestions or thought? Jeff
Mircea said:Hello Try to add
jimport( 'joomla.plugin.plugin' );
after:
// Import library dependencies (line 11) in plugins/system/SEOSimple.php
Please Log in or Create an account to join the conversation.
- John Comeskey
-
- Offline
- Junior Member
- Posts: 33
jimport( 'joomla.plugin.plugin' );
after:
// Import library dependencies (line 11) in plugins/system/SEOSimple.php
This fixed the problem with SEOSimple.
Nope, sorry, no it didn't. I forgot what the problem was!! HA! Still cannot create new K2 items from the backend. When opening a new item, admin gets blank screen.
Please Log in or Create an account to join the conversation.
- Travis Prebble
-
- Offline
- Junior Member
- Posts: 34
jimport( 'joomla.plugin.plugin' );
after:
// Import library dependencies (line 11) in plugins/system/SEOSimple.php
Nope, sorry, no it didn't. I forgot what the problem was!! HA! Still cannot create new K2 items from the backend. When opening a new item, admin gets blank screen.
Didn't fix the problem for me, either.
Please Log in or Create an account to join the conversation.
- Cornerstone Properties, LLC
-
- Offline
- New Member
- Posts: 18
Mircea said:sorry for late response;
You are right, for some reason it doesn't work for me anymore
Try this please:
after
function isFrontPage()
{
add
global $mainframe;
if (!$mainframe->isSite()) return;
Please Log in or Create an account to join the conversation.
- John Comeskey
-
- Offline
- Junior Member
- Posts: 33
Mircea said:sorry for late response;
You are right, for some reason it doesn't work for me anymore
Try this please:
after
function isFrontPage()
{
add
global $mainframe;
if (!$mainframe->isSite()) return;
Please Log in or Create an account to join the conversation.
- Mustafa M. Abdel Rahman
-
- Offline
- New Member
- Posts: 2
I've added the two lines but now everything stopped working and finally had to disable SEO Generator.
In addition to the previous error displayed in the backend(sorry to not paste it here as it is toooo long), another 500 error displayed by sh404SEF shows on the front end:
SH404SEF : headers were already sent when I got control!
Killed at line 122 in sh404sef.inc.php: HEADERS ALREADY SENT (200)
URL=http://www.4xtechnicales.com/
OPTION=com_content
Don't know if this because of sh404SEF and SEOG or something else, but everything was working smoothly ill i added those 2 lines.
I'm using:
- Joomla 1.5.12
- K2 2.0 (dated 6 August)
- SEO Generator 2.1
- sh404SEF 1.5.2.254
Thank you
Jeff Cooper said:Mircea, thank you! Your fix has now made SEO Generator work with K2! Awesome. JeffMircea said:after function isFrontPage() { add global $mainframe; if (!$mainframe->isSite()) return;
Please Log in or Create an account to join the conversation.
- bkemler
-
- Offline
- Premium Member
- Posts: 87
Please Log in or Create an account to join the conversation.
- angelina
-
- Offline
- New Member
- Posts: 1
Thanks for sharing
Seo India
Please Log in or Create an account to join the conversation.
- Haryanto Hartono
-
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.