Keyword

Item and Category Images Not Saving

  • Andy Briggs
  • Andy Briggs's Avatar Topic Author
  • Offline
  • Junior Member
More
7 months 3 weeks ago - 7 months 2 weeks ago #174656 by Andy Briggs
Item and Category Images Not Saving was created by Andy Briggs
Hi all,

I have a problem with K2 article and category images. I can choose the images, either locally or on the server, but they don't save. And there are no error messages.

I am using K2 2.10.2 and Joomla 3.9.15. This problem started suddenly a while back, but I cannot remember in which versions of K2 or Joomla. I have got around the Category image problem by entering the image filename manually in the k2_categories table, and to be honest I never use article images, so up until now it has been a hassle, but not an insurmountable one. The article images are not stored in a table, of course, so their filenames cannot be entered manually,

But now I have a need to start using article images, so I would like to resolve the problem. It appears that a few years back this exact issue was being caused by too many equals signs in some lines in item.php and category.php but it seems that was fixed, and those files seem fine now.

If it makes a difference, I am running Joomla under a local web server (xampp) with php 7.2.10

Can anyone give me any guidance with this? I would be very grateful.

Many thanks!

Andy
Last edit: 7 months 2 weeks ago by Andy Briggs. Reason: Typo

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
7 months 2 weeks ago #174671 by Fotis
Replied by Fotis on topic Item and Category Images Not Saving
You need to set error reporting to "maximum" in Joomla's Global Configuration and then edit a K2 item, set some image and save. What errors do you see?

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.

  • Andy Briggs
  • Andy Briggs's Avatar Topic Author
  • Offline
  • Junior Member
More
7 months 1 week ago #174809 by Andy Briggs
Replied by Andy Briggs on topic Item and Category Images Not Saving
Hi Fotis, sorry for the delay in getting back to you.

That's the odd thing. There are no error messages generated. With error reporting set to maximum, I just get an "Item Saved" message. And yet, when I re-open the item, the image has not saved.

Any ideas?

Much appreciated!

Andy

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

More
7 months 1 week ago #174810 by Tom Berjoy
Replied by Tom Berjoy on topic Item and Category Images Not Saving
Good morning, exactly the same thing happens to me with some server hosting shared with ngix (not with IIS). I think that since version K2v.2.10, and no error is shown or recorded in php error logs (even setting maximum in the joomla configuration). At the moment I have been able to solve it by clearing the joomla cache, after which, the images can be loaded. I'm also waiting for a fix to the attachment manager, which I think might have something to do with file uploads

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
7 months 1 week ago #174813 by Fotis
Replied by Fotis on topic Item and Category Images Not Saving
@Andy If you don't see errors logged, it means they are suppressed by some (poorly written?) plugin that uses error_reporting(0).

@Tom I'm exclusively using Joomla and K2 on Nginx. Things work just fine (and image uploads of course). Heck this site runs on Nginx latest. However Nginx does require setting up your error logs properly. If you don't, they will probably end up in /var/log/nginx/error.log. The cache issue may be related to other factors.

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.

  • Andy Briggs
  • Andy Briggs's Avatar Topic Author
  • Offline
  • Junior Member
More
7 months 1 week ago #174829 by Andy Briggs
Replied by Andy Briggs on topic Item and Category Images Not Saving
Thanks Fotis. The error reporting is not being suppressed as far as I can make out - it reports errors in other components/plugins, the latest only a week or so ago. So I don't think it's that.

Thanks

Andy

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
7 months 1 week ago #174833 by Fotis
Replied by Fotis on topic Item and Category Images Not Saving
If error reporting works on other components, then some plugin which executes in K2's content probably suppresses the errors. Look in plugins, especially content & system ones. Error reporting suppression may be a switch/option in one of them of plainly hardcoded in the plugin's files.

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.

  • Andy Briggs
  • Andy Briggs's Avatar Topic Author
  • Offline
  • Junior Member
More
7 months 1 week ago #174836 by Andy Briggs
Replied by Andy Briggs on topic Item and Category Images Not Saving
Many thanks Fotis. I shall investigate.

Much appreciated

Andy.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
7 months 1 week ago #174838 by Fotis
Replied by Fotis on topic Item and Category Images Not Saving
Let us know what you find out.

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.

  • Andy Briggs
  • Andy Briggs's Avatar Topic Author
  • Offline
  • Junior Member
More
7 months 1 week ago #174839 by Andy Briggs
Replied by Andy Briggs on topic Item and Category Images Not Saving
Hi Fotis, I have checked all plugins, removed a couple I didn't need and looked for error supression being switched off in the remaining ones, but couldn't see anything. So it remains a mystery.

Thanks!

Andy.

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


Powered by Kunena Forum