Keyword

Item and Category Images Not Saving

  • Andy Briggs
  • Andy Briggs's Avatar Topic Author
  • Offline
  • Junior Member
More
4 years 1 month ago - 4 years 1 month 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: 4 years 1 month ago by Andy Briggs. Reason: Typo

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

More
4 years 1 month ago #174671 by JoomlaWorks
Replied by JoomlaWorks 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?

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

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

  • Andy Briggs
  • Andy Briggs's Avatar Topic Author
  • Offline
  • Junior Member
More
4 years 1 month 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
4 years 1 month ago #174813 by JoomlaWorks
Replied by JoomlaWorks 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.

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

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

  • Andy Briggs
  • Andy Briggs's Avatar Topic Author
  • Offline
  • Junior Member
More
4 years 1 month 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.

More
4 years 1 month ago #174833 by JoomlaWorks
Replied by JoomlaWorks 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.

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

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

  • Andy Briggs
  • Andy Briggs's Avatar Topic Author
  • Offline
  • Junior Member
More
4 years 1 month 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.

More
4 years 1 month ago #174838 by JoomlaWorks
Replied by JoomlaWorks on topic Item and Category Images Not Saving
Let us know what you find out.

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

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

  • Andy Briggs
  • Andy Briggs's Avatar Topic Author
  • Offline
  • Junior Member
More
4 years 1 month 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.

More
4 years 1 month ago #174856 by JoomlaWorks
Replied by JoomlaWorks on topic Item and Category Images Not Saving
Search for the string "error_reporting" in the remaining ones.

In any case, I would advise moving the site to an actual server to start working on it. Your local setup may have all sorts of issues.

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