Keyword

error when using the plugin SEO Simple

  • dirk80
  • dirk80's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 7 months ago #71782 by dirk80
Hey!

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.

More
15 years 7 months ago #71783 by Lefteris
Replied by Lefteris on topic error when using the plugin SEO Simple
Hi. Please make sure that you are using the latest version of K2. Similar issues have been posted in the past and have been fixed. So upgrading will probably resolve your problem.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • dirk80
  • dirk80's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 7 months ago #71784 by dirk80
Replied by dirk80 on topic error when using the plugin SEO Simple
I am using K2 2.0 release date August 6th. Is there a newer release available somewhere?

Please Log in or Create an account to join the conversation.

More
15 years 7 months ago #71785 by emiliano doni
Replied by emiliano doni on topic error when using the plugin SEO Simple
i have the same problem, the problem is in joomla CP

Please Log in or Create an account to join the conversation.

More
15 years 7 months ago #71786 by John Comeskey
Replied by John Comeskey on topic error when using the plugin SEO Simple
Emiliano said:i have the same problem, the problem is in joomla CP


The Joomla Control Panel? Please explain.

Please Log in or Create an account to join the conversation.

  • dirk80
  • dirk80's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 7 months ago #71787 by dirk80
Replied by dirk80 on topic error when using the plugin SEO Simple
I have the problem only in the backend. From the frontend I am able to submit new articles.

Please Log in or Create an account to join the conversation.

More
15 years 7 months ago #71788 by Lefteris
Replied by Lefteris on topic error when using the plugin SEO Simple
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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • dirk80
  • dirk80's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 7 months ago #71789 by dirk80
Replied by dirk80 on topic error when using the plugin SEO Simple
I have seen the thread but it is not solved. The solution was to uninstall seo simple. But I can't uninstall it. I just wanted to start with k2 but k2 is making the error and not seo simple.

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.

More
15 years 7 months ago #71790 by Lefteris
Replied by Lefteris on topic error when using the plugin SEO Simple
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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • dirk80
  • dirk80's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 7 months ago #71791 by dirk80
Replied by dirk80 on topic error when using the plugin SEO Simple
Thank you very much for your help. I will contact the developer of SEO Simple again.

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
  • Cornerstone Properties, LLC's Avatar
  • Offline
  • New Member
More
15 years 7 months ago #71792 by Cornerstone Properties, LLC
Replied by Cornerstone Properties, LLC on topic error when using the plugin SEO Simple
I was wondering if someone can share (or let me know the starting point that would let me figure out) how to:

'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
  • Cornerstone Properties, LLC's Avatar
  • Offline
  • New Member
More
15 years 7 months ago #71793 by Cornerstone Properties, LLC
Replied by Cornerstone Properties, LLC on topic error when using the plugin SEO Simple
Thanks Mircea. I'm actually working with SEO generator, which I believe is having similar problem as SEO simple.

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.

More
15 years 7 months ago #71794 by John Comeskey
Replied by John Comeskey on topic error when using the plugin SEO Simple
Mircea said:Hello Try to add

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.

More
15 years 6 months ago #71795 by Travis Prebble
Replied by Travis Prebble on topic error when using the plugin SEO Simple
John Comeskey said:Mircea said:Hello Try to add
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
  • Cornerstone Properties, LLC's Avatar
  • Offline
  • New Member
More
15 years 6 months ago #71796 by Cornerstone Properties, LLC
Replied by Cornerstone Properties, LLC on topic error when using the plugin SEO Simple
Mircea, thank you! Your fix has now made SEO Generator work with K2! Awesome (not sure about SEO Simple-I don't use that). Jeff

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.

More
15 years 6 months ago #71797 by John Comeskey
Replied by John Comeskey on topic error when using the plugin SEO Simple
Yep, this works for SEOSimple too. Thanks Mircea!!

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
  • Mustafa M. Abdel Rahman's Avatar
  • Offline
  • New Member
More
15 years 6 months ago #71798 by Mustafa M. Abdel Rahman
Replied by Mustafa M. Abdel Rahman on topic error when using the plugin SEO Simple
Hi, I'm having the same problem between SEO Generator and K2.
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.

More
15 years 4 months ago #71799 by bkemler
Replied by bkemler on topic error when using the plugin SEO Simple
SEO Simple also doesn't seem to work with K2 on items that contain image galleries rendered through SIG. Instead of displaying the beginning of the item text as the meta description, it displays the item ID number as the meta description.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #71800 by angelina
Replied by angelina on topic error when using the plugin SEO Simple
Hi,

Thanks for sharing

Seo India

Please Log in or Create an account to join the conversation.

More
14 years 10 hours ago #71801 by Haryanto Hartono
Replied by Haryanto Hartono on topic error when using the plugin SEO Simple
I can't believe it, but yes this works for SEOSimple! Thank you for sharing.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum