Unable to restrict a chat module usage for free plan

7 years 3 months ago #289879 by pranaydhruv
Dear Team,

I am trying to restrict a chat module for free users such that it is available to only paid users.

I have not selected that chat in the free plan under Integrations>by Module> chat Module
I have selected that chat module in the paid plans under Integrations>by Module> chat Module

Please refer to the screenshot :-

Please Log in to join the conversation.

7 years 3 months ago - 7 years 3 months ago #289893 by pranaydhruv
Dear Team,

i have now configured this through CB SUBS but i keep getting random Internal server error , and this happens on different Menu items that i am not using CB SUBS for. Suddenly the site seems to be extremely slow. Please help.

I was trying to visit the cb subscriptions menu for a user on front end :-

menu:-
index.php/2015-01-26-09-53-51?do=displayplans

error:-
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@www..commywebsite and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Please Log in to join the conversation.

7 years 3 months ago #289898 by krileon
Enable debug mode and maximum error reporting then retry and see if any errors output. If not check server error log for any fatal errors around the time of your test. Your menu alias of 2015-01-26-09-53-51 doesn't look right; is that correct? Ensure the menu item to CBSubs is an Internal one and not External. For it to be Internal create a Community Builder > Plugin menu then for Plugin select CB Paid Subscriptions.


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 to join the conversation.

7 years 3 months ago #289922 by pranaydhruv
Dear Kyle,

Please find the errors in error logs :-

[09-Jan-2017 06:34:03 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 06:34:13 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 06:43:01 Etc/GMT] PHP Fatal error: Out of memory (allocated 288882688) (tried to allocate 136 bytes) in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbautoactions/cbautoactions.php on line 1295
[09-Jan-2017 06:43:01 Etc/GMT] PHP Fatal error: Out of memory (allocated 350486528) (tried to allocate 127 bytes) in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbautoactions/cbautoactions.php on line 1262
[09-Jan-2017 06:43:04 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 06:43:18 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 06:43:55 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 06:44:03 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:23:30 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:23:57 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:24:01 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:24:04 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:24:05 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:24:05 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:24:05 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:24:08 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:24:20 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:24:30 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:24:56 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:25:06 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:25:24 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:25:27 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:25:30 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:25:32 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:25:35 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:25:39 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:28:00 Etc/GMT] PHP Fatal error: Out of memory (allocated 123994112) (tried to allocate 93 bytes) in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbautoactions/cbautoactions.php on line 1295
[09-Jan-2017 07:28:00 Etc/GMT] PHP Fatal error: Out of memory (allocated 348389376) (tried to allocate 96 bytes) in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbautoactions/cbautoactions.php on line 1295
[09-Jan-2017 07:28:32 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:28:41 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:32:33 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:32:42 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:43:26 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:43:33 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:46:42 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 07:46:55 Etc/GMT] PHP Warning: sprintf(): Too few arguments in /home/marry2ti/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/views/userprofilesubstab.php on line 50
[09-Jan-2017 08:43:05 Etc/GMT] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /home/marry2ti/public_html/libraries/joomla/log/entry.php on line 103

[09-Jan-2017 08:58:49 Etc/GMT] PHP Fatal error: Call to a member function myId() on null in /home/marry2ti/public_html/plugins/system/sourcerer/helper.php(635) : runtime-created function on line 10
[09-Jan-2017 08:58:52 Etc/GMT] PHP Fatal error: Call to a member function myId() on null in /home/marry2ti/public_html/plugins/system/sourcerer/helper.php(635) : runti
Attachments:

Please Log in to join the conversation.

7 years 3 months ago #289925 by krileon
You've several fatal issues present. You're using code through sourcerer to inject PHP wherever you like, but that PHP has errors. Next you appear to have too many %s (you can only use it once) in "Title in subscriptions tab" within CBSubs > Settings > Display > Plans. You also appear to be running out of memory, but I find that hard to believe with 512mb and is probably due to the other fatal errors looping so many times.


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 to join the conversation.

7 years 3 months ago #289934 by pranaydhruv
Dear Kyle,

I have attached the screenshot,i see only couple % signs in CBSubs>settings>display>plans.

you are referring to Sorcerer due to last 2 lines in the error log? but the code i have used is working fine and not outputting any errors till now. the Sorcerer error cameup after i accidentally deleted files from my site as it was timing out too often (Thankfully i backup regularly).
Attachments:

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.365 seconds

Facebook Twitter LinkedIn