Keyword

k2 content module specific items not saving

  • Vince Murphy
  • Vince Murphy's Avatar Topic Author
  • Offline
  • New Member
More
1 month 2 weeks ago #178255 by Vince Murphy
k2 content module specific items not saving was created by Vince Murphy
Hi,
Wondering if anybody has ever seen the k2 content module, set for specific k2 items, selects items ok, hit save and all the items disappear.
Latest dev version (K2 v2.10.4 [Dev Build 20210227])
Joomla 3.9.24
php 7.3.27.

There is a sub-template override but switching back to default yields the same result.
The only error I can see is a php notice error which I'm not sure is related.
PHP Notice: Trying to get property 'alias' of non-object in /var/www/clients/client1/web5/web/components/com_k2/router.php on line 283'

Any pointers much appreciated.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 1 week ago #178268 by Fotis
Disappear from the frontend or backend?

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.

  • Vince Murphy
  • Vince Murphy's Avatar Topic Author
  • Offline
  • New Member
More
1 month 1 week ago #178287 by Vince Murphy
Replied by Vince Murphy on topic k2 content module specific items not saving
Hi,
Thanks for the reply. Disappears from both backend and front end. If I go into the module on the backend, I can see the specific k2 items selected, without doing anything, just hit save and the k2 item disappears. When checking the database table _modules, params field, I can see the itemid in the items element before I save. Then after save the items element is gone. I've been getting around this by directly updating the _modules table, params field with required k2 item ids as needed. I've attached some before and after to show the details.

Thanks...Vince
 
Attachments:

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 1 week ago #178290 by Fotis
This is really weird. Unless something is seriously borked on your server, the only thing I can think of that *could* be causing issues is aggressive caching on the server which affects backend operations.

Where are you hosting your site?

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.

  • Vince Murphy
  • Vince Murphy's Avatar Topic Author
  • Offline
  • New Member
More
1 month 1 week ago #178300 by Vince Murphy
Replied by Vince Murphy on topic k2 content module specific items not saving
Thanks for your reply. Agreed this is very weird. We host the website ourselves on a google cloud server. It's a standard LAMP install. We also have 5 or 6 other sites hosted on it. I tried increasing some php settings memory_limit etc but no change. The site makes extensive use of the k2_content module (51 modules) but I can't think that would matter.

I'm going to try some testing on one of the other sites on that server, to see if the problem exists on another k2 install.
Maybe able to isolate things a bit.

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

  • Vince Murphy
  • Vince Murphy's Avatar Topic Author
  • Offline
  • New Member
More
1 month 1 week ago #178301 by Vince Murphy
Replied by Vince Murphy on topic k2 content module specific items not saving
So weird. Did a test on one of the other sites on the same server, same php, same hosting setup. K2 content module works perfectly, saves specific items as expected.
The problem site is quite old (5 years+) and has way too many components etc but everything is up to date, so likely not a problem. It's just a very odd little problem. The site is due to be rebuilt this year anyway, so I'm not overly worried about it. I've just been updating the _modules table directly whenever needed (not too often). If you think of anything else worth checking, let me know.

By the way, thanks so much for all the work on K2. It continues to be a vital part of all our websites.

Cheers...Vince

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 1 week ago #178316 by Fotis
You're welcome Vince.

As a sidenote, perhaps you need to set:
sql_mode = ""

in your MySQL or MariaDB my.cnf file as the upgrade path in Joomla may have left some columns with incompatible properties on newer database versions, IF you happened to have recently updated your database software or the OS - e.g. Ubuntu 20.04 does not allow you to install MySQL before vesion 8.0 without a gazillion hacks around it, which is known to "nag" for null dates on "date" fields by default, as an example.

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.

  • Vince Murphy
  • Vince Murphy's Avatar Topic Author
  • Offline
  • New Member
More
1 month 1 week ago #178323 by Vince Murphy
Replied by Vince Murphy on topic k2 content module specific items not saving
Thanks Fotis,
Good thought but no luck. It's a Debian 10 install with mariadb 10.3/mysql 5.7. php 7.3 No recent upgrades, although the problem has existed for quite some time. I tried a few variations with sql_mode= but no change.
I'll park this for now and dig at it further when I have some spare time. Thanks for the pointers.

Cheers...Vince

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 1 week ago #178329 by Fotis
You're welcome Vince :)

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.


Powered by Kunena Forum