Keyword

Fetch items from children categories: YES, PHP Fatal error: Allowed memory size

  • Lapo_78
  • Lapo_78's Avatar Topic Author
  • Offline
  • New Member
More
5 years 10 months ago - 5 years 10 months ago #167757 by Lapo_78
Hi, if i enabled Fetch items from children categories in k2 content module i get PHP Fatal error: Allowed memory size.
I have set memory_limit is to 1024M on php.ini.
Joomla 3.8.6 and k2 2.8
Thanks
Last edit: 5 years 10 months ago by Lapo_78.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
5 years 10 months ago #167763 by Krikor Boghossian
Hello,
Can you post the exact error please?
Also selecting the exact categories you want to use is a bit more performant.

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

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

  • Lapo_78
  • Lapo_78's Avatar Topic Author
  • Offline
  • New Member
More
5 years 10 months ago #167765 by Lapo_78
Hi,
i selected only the specific category and i select NO this option: Fetch items from children categories. I want only the children of selected category:
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /var/www/dominio.it/libraries/vendor/joomla/registry/src/Format/Json.php on line 67

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /var/www/dominio.it/libraries/vendor/joomla/registry/src/Registry.php on line 85

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
5 years 10 months ago #167769 by Krikor Boghossian
Funny,

The files that produce the error are core files. 1024MB PHP limit is an overkill and can lead to issues. Can you try using a 128 - 256MB limit?

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

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

  • Lapo_78
  • Lapo_78's Avatar Topic Author
  • Offline
  • New Member
More
5 years 10 months ago - 5 years 10 months ago #167772 by Lapo_78
Now i use 512M and for this issue i tryed at 1024 but i've the same problem.
Last edit: 5 years 10 months ago by Lapo_78.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
5 years 10 months ago #167788 by Krikor Boghossian
How many subcategories are there in total?

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

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

  • Lapo_78
  • Lapo_78's Avatar Topic Author
  • Offline
  • New Member
More
5 years 10 months ago #167883 by Lapo_78

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
5 years 10 months ago - 5 years 10 months ago #167933 by Krikor Boghossian
I tried to reproduce the issue with no luck
jmp.sh/ok0XqVu
jmp.sh/6L22zpT

Which version of PHP are you using? Any other K2 related extensions?
Are you using Apache or Nginx?
For the time being you can select directly the three subcategories.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 5 years 10 months ago by Krikor Boghossian.

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


Powered by Kunena Forum