Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] PHP Fatal error - cb.core.php

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
10 years 10 months ago - 10 years 10 months ago #238631 by ricco1
Hi,

I've bought an extension: extensions.joomla.org/extensions/structure-a-navigation/site-map/24063

which produces a dynamic site map.

Everything is ok and the HTML site map is generated until I don't log in, if I log in and click on the site map link the whole site disappears, nothing, a blank white page.

I've been in contact with the support of Jsitemap and my hosting and after 2 days of investigation this is the error which causes the issue:

PHP Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 7680 bytes) in <span>/</span>home<span>/</span>mainaccount/public_html/mysite.com/components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php on line 462

Could you suggest any solution please?

Thank you
Regards
Ricco
Last edit: 10 years 10 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 10 months ago #238654 by krileon
Replied by krileon on topic PHP Fatal error - cb.core.php
You're hitting your 48mb memory limit. There's nothing wrong with that particular line of code (it's only using 7680b). Increase your PHP memory limit to 64mb and you should be ok. Joomla + CB it self will consume roughly 30mb. Add in other extensions and that grows quickly.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
10 years 10 months ago #238657 by ricco1
Replied by ricco1 on topic PHP Fatal error - cb.core.php
Hi Kyle,

memory_limit is currently set to 512M, before yesterday it was 256M. We've even done some test with hosting's support team and they've proofed to me that my current memory limit is 512M.

Thank you for your offer, any other suggestion will be really welcomed.
Best regards

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 10 months ago #238660 by krileon
Replied by krileon on topic PHP Fatal error - cb.core.php
If PHP is reporting 48mb, then that's your memory limit no matter what phpinfo or your host tells you. When configuring php.ini for memory limits you should place it in Joomla root and root/administrator so it can properly apply to frontend and backend.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
10 years 10 months ago #238667 by ricco1
Replied by ricco1 on topic PHP Fatal error - cb.core.php
I've done the following test: magazine.joomla.org/issues/issue-dec-2010/item/295-Are-you-getting-your-fair-share-of-PHP-memory

and it showed the memory limit is 512M.

How to see what the PHP is reporting?

As for the php.ini file currently it's in the root of my cpanel' home directory and not in the root of public_html directory where the joomla site is. Should I move it to the public_html directory or copy it there? Also, actually this particular site in a subdirectory which is in the public_html, should I move or copy it to the subdirectory?

Thank you very much Kyle
Best Regards

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 10 months ago #238670 by krileon
Replied by krileon on topic PHP Fatal error - cb.core.php
That test only runs for the current location. php.ini in hosting root doesn't always properly apply to sub directories. It should be in your Joomla root and root/administrator.

Code:
PHP Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 7680 bytes) in /home/mainaccount/public_html/mysite.com/components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php on line 462

Allowed memory size of 50331648 bytes exhausted

50331648 / 1024 / 1024 = 48

This means your memory limit is 48mb. Always trust the exhaustion error over anything else as it's the most accurate.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum