Keyword

Error 500 when saving K2 items

  • Maciek Węgrzyn
  • Maciek Węgrzyn's Avatar Topic Author
  • Offline
  • New Member
More
6 years 3 months ago - 6 years 3 months ago #166058 by Maciek Węgrzyn
Error 500 when saving K2 items was created by Maciek Węgrzyn
Hello,
After updating to Joomla 3.8 when I'm saving an article in K2 in backend, instead of going back to dashboard, I get error 500 or blank page.
Error raporting set to maximum, only errors I see are:
Warning: Declaration of plgK2swmap::onRenderAdminForm($item, $type, $tab = '') should be compatible with K2Plugin::onRenderAdminForm(&$item, $type, $tab = '') in (...)
Deprecated: call_user_func_array() expects parameter 1 to be a valid callback, non-static method JHtmlSelect::checkboxlist() should not be called statically in (...)

This happens regardless of whether the item has image or not.

I've tried every solution I've found about this kind of error. Disabled/enabled K2 Smart Search and Joomla Smart Search, disabled SWMaps, disabled every other extensions than K2, disabled Admin Tools, fixed permissions in Admin Tools.
Apache error logs show nothing about it, Joomla error log: pastebin.com/5zngvtmn

EDIT: Forgot to mention, article IS saved, if it has image it's saved too. But when I'm trying to edit and then save, everything but image is updating.

Versions:
Joomla 3.8.3
K2 2.8.0
Last edit: 6 years 3 months ago by Maciek Węgrzyn.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 3 months ago #166063 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error 500 when saving K2 items
The blank page indicates a PHP error. If you enable error reporting and still get a blank page (no error message), then quite possibly a php.ini file is overriding these settings.
Without the error message it is really hard to pinpoint the issue.

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

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

  • Maciek Węgrzyn
  • Maciek Węgrzyn's Avatar Topic Author
  • Offline
  • New Member
More
6 years 2 months ago - 6 years 2 months ago #166329 by Maciek Węgrzyn
Replied by Maciek Węgrzyn on topic Error 500 when saving K2 items
Finally managed to get some errors, but on totally different site on different server.
Warning: Unknown: Cannot call session save handler in a recursive manner in Unknown on line 0

Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: /tmp) in Unknown on line 0

EDIT: SOLVED! I was looking through K2 settings and noticed that Memory limit in Images settings was set to 1MB, although it says that recommended setting for my server is 64MB. After setting it to 64 everything started working
Last edit: 6 years 2 months ago by Maciek Węgrzyn. Reason: Found a solution

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 2 months ago #166331 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error 500 when saving K2 items
Nice to hear the you got it working :)
Thank you for sharing the solution

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