Keyword

Error: 0 Call to a member function isSite() on null when trying to edit item

  • Chas Large
  • Chas Large's Avatar Topic Author
  • Offline
  • New Member
  • Jazz is the only music
More
2 weeks 1 day ago #173116 by Chas Large
Chas Large created the topic: Error: 0 Call to a member function isSite() on null when trying to edit item
Hi,

Had to do a restore of a site due to corrupted files.

Got all working except Front End Editing of items

When user is logged in and clicks edit button, gets error page with message:

0 Call to a member function isSite() on null

Any suggestions please?

Chas

"You blows who you is." Louis Armstrong

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 7 hours ago #173118 by Fotis
Fotis replied the topic: Error: 0 Call to a member function isSite() on null when trying to edit item
Check if you're using an old override for itemform.php. Actually just delete any if they exist inside /templates/YOUR_TEMPLATE/html/com_k2/default/.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Chas Large
  • Chas Large's Avatar Topic Author
  • Offline
  • New Member
  • Jazz is the only music
More
1 week 6 days ago - 1 week 6 days ago #173128 by Chas Large
Chas Large replied the topic: Error: 0 Call to a member function isSite() on null when trying to edit item
Hi Fotis,

I just deleted the itemform.php file and now I can edit the item, thanks.

However SAVE works OK But close does not close the form, it stays on the screen, only way to return to the site is to use the browser BACK Click twice.

Should CLOSE not just return you to the correct form view?

"You blows who you is." Louis Armstrong
Last edit: 1 week 6 days ago by Chas Large.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 5 days ago #173130 by Fotis
Fotis replied the topic: Error: 0 Call to a member function isSite() on null when trying to edit item
It should but your browser may have cached JS code from the itemform.php override you previously had. In any case, opening the browser's console will reveal why nothing happens when you click "close" in the edit form.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Chas Large
  • Chas Large's Avatar Topic Author
  • Offline
  • New Member
  • Jazz is the only music
More
1 week 5 days ago #173132 by Chas Large
Chas Large replied the topic: Error: 0 Call to a member function isSite() on null when trying to edit item
Hi Fotis,

Ran the Inspector / Console when page is opened by front end.

When close, I get the attached error,

"Scripts may close only the windows opened by it"

Any further advice?

Chas

"You blows who you is." Louis Armstrong
Attachments:

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 5 days ago #173133 by Fotis
Fotis replied the topic: Error: 0 Call to a member function isSite() on null when trying to edit item
Works just fine on my test sites and no error in the browser console. Which K2 version are you using and on what browser? Is your browser up to date?

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white

Powered by Kunena Forum