Keyword

Call to a member function isSite() on null

  • Chris Lawson
  • Chris Lawson's Avatar Topic Author
  • Offline
  • New Member
More
4 years 5 months ago - 4 years 5 months ago #173686 by Chris Lawson
Call to a member function isSite() on null was created by Chris Lawson
I just upgraded our dev site to K2 2.10.0 and was really excited to see the new look of the back end item administration page.

But I cannot edit any K2 items. If I click on any of the item titles, where normally I would get the edit form, instead I get a KException Error | Fatal Error

Call to a member function isSite() on null.

The line complained about is:

.../administrator/templates/isis/html/com_k2/item/default.php:15

...which is: <?php if($this->mainframe->isSite()): ?>

I have tried clearing the cache, the expired cache, logging out and logging back in again. Before I start disassembling my site to see if there's an extension conflict, can anyone shed any light on what this error means?

I have the whole exception handling and error handling story if that would help.

I am able to edit K2 categories and users
Last edit: 4 years 5 months ago by Chris Lawson. Reason: Additional information

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

More
4 years 5 months ago #173694 by JoomlaWorks
Replied by JoomlaWorks on topic Call to a member function isSite() on null
You seem to have K2 overrides for the backend (I guess you've been using K2 for some time now...).

Simply rename the folder /administrator/templates/isis/html/com_k2 to /administrator/templates/isis/html/com_k2_DISABLED and the backend should work just fine.

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

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

  • Chris Lawson
  • Chris Lawson's Avatar Topic Author
  • Offline
  • New Member
More
4 years 5 months ago #173698 by Chris Lawson
Replied by Chris Lawson on topic Call to a member function isSite() on null
Ah. I remember now. The override is to give new items a default expiry date. Blunt instrument for dealing with zombie content. Put it in so long ago I forgot all about it.

That fixes the problem... only now how to reproduce that functionality...

Thank you so much for the help.

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

More
4 years 5 months ago #173706 by JoomlaWorks
Replied by JoomlaWorks on topic Call to a member function isSite() on null
You're welcome.

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

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


Powered by Kunena Forum