Skip to Content Skip to Menu

Huge issue with latest CBsubs build Version: 4.6.1+build.2022.12.19.15.29.48.dcd

  • activha
  • activha
  • OFFLINE
  • Posts: 2326
  • Thanks: 117
  • Karma: 13
1 year 9 months ago - 1 year 9 months ago #332097 by activha
Hello
After upgrading to this build our users cannot subscribe any longer to a plan
After selecting it they are simply redirected to their profile page without going to the payment page
Mind to check ?
BR
Jean

Edit 2:
Seems to be related with SEF as on the devel website without SEF everything works fine and with SEF activated I get the same issue

Edit 3 :
After some tests, it seems that as mod we can upgrade subscriptions from already registered users and the form post to the correct url
But as soon as we want to register a new user or if a user wants to upgrade its own subscription or subscribe to a new plan, the form post to sit profile url.
Last edit: 1 year 9 months ago by activha.

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

  • activha
  • activha
  • OFFLINE
  • Posts: 2326
  • Thanks: 117
  • Karma: 13
1 year 9 months ago #332098 by activha
Addition : this is what I have in the error logs
Code:
WARNING: Undefined array key "f" in /var/www/vhosts/devel.activ-ha.com/devel.html/components/com_finder/src/Helper/RouteHelper.php on line 133 Trace:called in class cbpaidErrorHandler::_error_handler_callable(2, "Undefined array key "f"", "/var/www/vhosts/devel.activ-ha.com/devel.html/components/com_finder/src/Helper/RouteHelper.php", 133) on line 133 in file RouteHelper.php called in class Joomla\Component\Finder\Site\Helper\RouteHelper::getItemid(array("view" => "search", "q" => NULL, "f" => NULL)) on line 42 in file RouteHelper.php called in class Joomla\Component\Finder\Site\Helper\RouteHelper::getSearchRoute(NULL) on line 37 in file mod_finder.php called in function include("/var/www/vhosts/devel.activ-ha.com/devel.html/modules/mod_finder/mod_finder.php") on line 52 in file ModuleDispatcher.php called in class Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}("/var/www/vhosts/devel.activ-ha.com/devel.html/modules/mod_finder/mod_finder.php", NULL) on line 55 in file ModuleDispatcher.php called in class Joomla\CMS\Dispatcher\ModuleDispatcher::dispatch() on line 281 in file ModuleHelper.php called in class Joomla\CMS\Helper\ModuleHelper::renderRawModule(object(stdClass), object(Joomla\Registry\Registry), array("contentOnly" => true)) on line 161 in file ModuleHelper.php called in class Joomla\CMS\Helper\ModuleHelper::renderModule(object(stdClass), array("contentOnly" => true)) on line 99 in file ModuleRenderer.php called in class Joomla\CMS\Document\Renderer\Html\ModuleRenderer::render(object(stdClass), array("contentOnly" => true)) on line 667 in file HtmlDocument.php called in class Joomla\CMS\Document\HtmlDocument::countModules("search", true) on line 213 in file index.php called in function require("/var/www/vhosts/devel.activ-ha.com/devel.html/templates/cassiopeia_cercle/index.php") on line 736 in file HtmlDocument.php called in class Joomla\CMS\Document\HtmlDocument::_loadTemplate("/var/www/vhosts/devel.activ-ha.com/devel.html/templates/cassiopeia_cercle", "index.php") on line 791 in file HtmlDocument.php called in class Joomla\CMS\Document\HtmlDocument::_fetchTemplate(array("template" => "cassiopeia_cercle", "file" => "index.php", "params" => object(Joomla\Registry\Registry), "csp_nonce" => NULL, "templateInherits" => "cassiopeia", "directory" => "/var/www/vhosts/devel.activ-ha.com/devel.html/templates")) on line 608 in file HtmlDocument.php called in class Joomla\CMS\Document\HtmlDocument::parse(array("template" => "cassiopeia_cercle", "file" => "index.php", "params" => object(Joomla\Registry\Registry), "csp_nonce" => NULL, "templateInherits" => "cassiopeia", "directory" => "/var/www/vhosts/devel.activ-ha.com/devel.html/templates")) on line 1004 in file CMSApplication.php called in class Joomla\CMS\Application\CMSApplication::render() on line 714 in file SiteApplication.php called in class Joomla\CMS\Application\SiteApplication::render() on line 299 in file CMSApplication.php called in class Joomla\CMS\Application\CMSApplication::execute() on line 61 in file app.php called in function require_once("/var/www/vhosts/devel.activ-ha.com/devel.html/includes/app.php") on line 32 in file index.php $_GET = array (   'option' => 'com_comprofiler',   'view' => 'pluginclass',   'user' => '43',   'plugin' => 'cbpaidsubscriptions',   'lang' => 'fr',   'id' => '16',   'Itemid' => 2154,   'task' => 'pluginclass', ) $_POST = array ( ) Call trace: called in class cbpaidHistory::logError() on line 279 in file cbpaidErrorHandler.php called in class cbpaidErrorHandler::_error_handler_callable() on line 133 in file RouteHelper.php called in class Joomla\Component\Finder\Site\Helper\RouteHelper::getItemid() on line 42 in file RouteHelper.php called in class Joomla\Component\Finder\Site\Helper\RouteHelper::getSearchRoute() on line 37 in file mod_finder.php called in function include() on line 52 in file ModuleDispatcher.php called in class Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}() on line 55 in file ModuleDispatcher.php called in class Joomla\CMS\Dispatcher\ModuleDispatcher::dispatch() on line 281 in file ModuleHelper.php called in class Joomla\CMS\Helper\ModuleHelper::renderRawModule() on line 161 in file ModuleHelper.php called in class Joomla\CMS\Helper\ModuleHelper::renderModule() on line 99 in file ModuleRenderer.php called in class Joomla\CMS\Document\Renderer\Html\ModuleRenderer::render() on line 667 in file HtmlDocument.php called in class Joomla\CMS\Document\HtmlDocument::countModules() on line 213 in file index.php called in function require() on line 736 in file HtmlDocument.php ...

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

  • beat
  • beat
  • OFFLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
1 year 9 months ago #332099 by beat
Hi,
If you read the error trace, you can see that the error happens in Joomla's com_finder, called in mod_finder, which has nothing to do with CBSubs.

As emergency measure, you can disable mod_finder.

Then make sure your Joomla is up to date.
Then maybe rebuilding the index of Joomla smart search might help.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

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

  • activha
  • activha
  • OFFLINE
  • Posts: 2326
  • Thanks: 117
  • Karma: 13
1 year 9 months ago - 1 year 9 months ago #332100 by activha
I tried without success
Seems more like a routing issue for cbsubs plugin
am on joomla 4.2

It seems that on CBSubs tab on the profile the action url is : action=" xxx.com/component/comprofiler/pluginclass/cbpaidsubscriptions?user=xx

while now on the plugin page it's : action=" xxx.com/component/comprofiler/?user=xx

This did not happen with joomla 3 but is on joomla 4 even on tmpl=component page and I'm using Cassiopeia template

It seems that it happens on all links using : index.php?option=com_comprofiler&view=pluginclass&plugin=cbpaidsubscriptions&do=displayplans

Whether you add plans number to be displayed or not do not change anything and even on tmpl=component I get the same behavior

Any idea how to find the issue ?
Last edit: 1 year 9 months ago by activha.

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

  • beat
  • beat
  • OFFLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
1 year 9 months ago #332101 by beat
Proper SEF usually requires to have proper menus set up. Did you try to setup a corresponding CBSubs "Display plans" menu (can be in a hidden menu) ?

Actually the "WARNING: Undefined array key "f" in .../devel.html/components/com_finder/src/Helper/RouteHelper.php" displayed with debug on is "only" a warning in Joomla, not a fatal error, and may well be totally unrelated with the issue you have.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

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

  • activha
  • activha
  • OFFLINE
  • Posts: 2326
  • Thanks: 117
  • Karma: 13
1 year 9 months ago - 1 year 9 months ago #332103 by activha
I thought that I found the issue but no...
You created a bunch of new menus for CBSubs which were not linked to menu items in our website because we did not even notice them.
On Joomla 3 that was not an issue, but it seems that on Joomla >4 this simply fails the router and the links are not properly built.
Linking all new menus to proper menu items seemed to have solved the issue, but in fact they just added intermediate pages in the process, and  in the final form page we still have the issue with the bad link built

The form displays : action=" xxx.com/component/comprofiler/?user=xx  instead of the correct : action=" xxx.com/component/comprofiler/pluginclass/cbpaidsubscriptions?user=xx

Hope you will be able to help...

Have a good Christmas guys ;-)
Last edit: 1 year 9 months ago by activha.

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

Moderators: beatnantkrileon
Powered by Kunena Forum