Keyword

Fatal Error after Joomla 3.6 update

  • Abeer Kirollos
  • Abeer Kirollos's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago - 8 years 10 months ago #156394 by Abeer Kirollos
Fatal Error after Joomla 3.6 update was created by Abeer Kirollos
After updating our website to joomla 3.6, we are getting a fatal error when adding new K2 items from the frontend: Fatal error: Call to a member function isCheckedOut() on null in /administrator/components/com_k2/views/item/view.html.php on line 100 and a blank screen.

We currently have K2 version 2.6.9. How to correct this issue?
Last edit: 8 years 10 months ago by Abeer Kirollos. Reason: removed server name from url

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #156409 by Krikor Boghossian
Replied by Krikor Boghossian on topic Fatal Error after Joomla 3.6 update
Hello,

You need to update K2 to its latest version or even better install the latest DEV version github.com/getk2/k2.

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

More
8 years 10 months ago - 8 years 10 months ago #156523 by Bam Bam
Replied by Bam Bam on topic Fatal Error after Joomla 3.6 update
Hello Krikor,

I have the same issue with version 2.6.9, but I can't update to 2.7 because of several 3rd-party-plugins which do not run under 2.7. (I tested it ;)).
Do you have any other ideas to get editing on frontend to work again?

Thanks,
Matthew
Last edit: 8 years 10 months ago by Bam Bam.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #156527 by Krikor Boghossian
Replied by Krikor Boghossian on topic Fatal Error after Joomla 3.6 update
This the file that will produce any error.

github.com/getk2/k2/blob/master/components/com_k2/views/item/view.html.php

You can Frankenstein it (backup first) but I do not know if other issues will arise.

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

More
8 years 10 months ago #156529 by Bam Bam
Replied by Bam Bam on topic Fatal Error after Joomla 3.6 update
"Frankenstein" :D
Currently I'm doing a backup of the site and try installing 2.7.1. If that doesn't work I'll try your suggested method. :)
Thanks... again...

Matthew.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #156531 by Krikor Boghossian
Replied by Krikor Boghossian on topic Fatal Error after Joomla 3.6 update
You 're welcome :)

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

More
8 years 10 months ago - 8 years 10 months ago #156534 by Bam Bam
Replied by Bam Bam on topic Fatal Error after Joomla 3.6 update
Report after updating to dev-build 2.7.1:
In the backend the tabs don't work anymore. All tabs (the links) and the content is above each other, console gives no JS-errors, all caches cleared, 3 different browsers tested.
And when editing in the frontend: the editor now shows up, but I can't save or close anything. The buttons for "featured" and "enabled" also don't work. Console gives following error in k2.js:
VM366 k2.js?v=2.7.1&sitepath=/:587 
Uncaught TypeError: parent.$(...).removeEvents is not a function
(anonymous function) @ VM366 k2.js?v=2.7.1&sitepath=/:587
i @ VM361 jquery.min.js:2
fireWith @ VM361 jquery.min.js:2
ready @ VM361 jquery.min.js:2
K @ VM361 jquery.min.js:2

Got an advice before I need to roll back and Frankensteinin' it?
Last edit: 8 years 10 months ago by Bam Bam.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #156539 by Krikor Boghossian
Replied by Krikor Boghossian on topic Fatal Error after Joomla 3.6 update
The entire UI (thus the markup) has been changed.
This means you need to clear both Joomla!'s and your browser's cache.
You were correct to do this. If you are using an obsolete override of itemform.php you might need to update it, although this is unlikely.

Can you check if jQuery is being loaded and if not, can you enable jQuery loading from K2's settings.

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

More
8 years 10 months ago #156540 by Bam Bam
Replied by Bam Bam on topic Fatal Error after Joomla 3.6 update
Update:
I updated jquery to version 2.1.3. The frontend JS error is gone. But there are still the tabs in front- and backend that don't work. :(

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

More
8 years 10 months ago #156542 by Bam Bam
Replied by Bam Bam on topic Fatal Error after Joomla 3.6 update
You were right: It was caused by my override of the itemform.php. I'll update it.

Summary: update jquery, update itemform.php

My problems: SOLVED --- Thank you so much, Krikor!!!


Btw.: What about my other templates? Do I have to update them, too?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #156549 by Krikor Boghossian
Replied by Krikor Boghossian on topic Fatal Error after Joomla 3.6 update
You 're welcome :)
I always keep my Joomla!'s sites updated so I would urge you to update.

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

More
8 years 10 months ago #156561 by Bam Bam
Replied by Bam Bam on topic Fatal Error after Joomla 3.6 update
I meant my other custom K2 overrides. ;) Do they need an update, too?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #156564 by Krikor Boghossian
Replied by Krikor Boghossian on topic Fatal Error after Joomla 3.6 update
They only things we altered is to include icon fonts, for the featured icons, rss and other icons.

Another point you should check is wether the modals work properly (which should).

Other than that, no major changes so I doubt you'll need to update your templates.

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

More
8 years 10 months ago #156568 by Bam Bam
Replied by Bam Bam on topic Fatal Error after Joomla 3.6 update
Perfect. Less work for me... :)
Thanks for the info!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #156570 by Krikor Boghossian
Replied by Krikor Boghossian on topic Fatal Error after Joomla 3.6 update
Always happy to help!

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

More
8 years 10 months ago #156793 by Joseph Rebele
Replied by Joseph Rebele on topic Fatal Error after Joomla 3.6 update
Folks,

I, too have a custom itemform.php. Can you share what needed to be changed in the itemform.php to eliminate the Error 0 I am getting when trying to access the form?

Thanks,
Joe

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

More
8 years 10 months ago #156794 by Joseph Rebele
Replied by Joseph Rebele on topic Fatal Error after Joomla 3.6 update
Folks,

I, too have a custom itemform.php. Can you share what needed to be changed in the itemform.php to eliminate the Error 0 I am getting when trying to access the form? This occurred after updating to Joomla v3.6.

Thanks,
Joe

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

More
8 years 10 months ago #156800 by Bam Bam
Replied by Bam Bam on topic Fatal Error after Joomla 3.6 update
Hmm... I don't know this error, but in my case I edited the new itemform.php again to my needs.
It's a little work, but when it's done everything should run fine again.

Hope this helps?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 9 months ago #156945 by Krikor Boghossian
Replied by Krikor Boghossian on topic Fatal Error after Joomla 3.6 update
I would suggest reverting to the default one so you get the functionality back.

Then you can apply the changes (I presume markup and/or styling) you had on your itemform.

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

More
8 years 4 months ago #160171 by caseyz
Replied by caseyz on topic Fatal Error after Joomla 3.6 update
I was having this same Fatal Error, So I did a local test and everything seemed to work fine, except now my modals aren't working as you mentioned in this post. Is this a known issue?
-Thanks

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


Powered by Kunena Forum