[BETA] Class "Joomla\CMS\Factory\BaseHtmlView" not found #1066

Closed
opened 2024-03-06 11:55:59 +00:00 by kommid · 9 comments
Member

Steps to reproduce the issue

compile a component with JCB 3.2.0-beta2 on Debian GNU/Linux 11 (bullseye), 10.5.23-MariaDB-0+deb11u1, PHP 8.0.30, Joomla! 3.10.12, using a fresh Firefox Developer edition (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0) without any addons

Install on a fresh Joomla 4.4.3 (10.5.23-MariaDB-0+deb11u1, PHP 8.2.16, Apache2) and set up a menu item for a site view

Expected result

site view is shown

Actual result

No problems in backend - at least I didn't notice any, but in frontend it throws errors:
Class "Joomla\CMS\Factory\BaseHtmlView" not found
Call Stack:

Function Location

1 () JROOT/components/com_cmv/src/View/Vorkonfiguration_lp/HtmlView.php:46
2 include() JROOT/libraries/vendor/composer/ClassLoader.php:571
3 Composer\Autoload\includeFile() JROOT/libraries/vendor/composer/ClassLoader.php:428
4 Composer\Autoload\ClassLoader->loadClass() JROOT/libraries/src/Autoload/ClassLoader.php:59
5 Joomla\CMS\Autoload\ClassLoader->loadClass()
6 class_exists() JROOT/libraries/src/MVC/Factory/MVCFactory.php:283
7 Joomla\CMS\MVC\Factory\MVCFactory->getClassName() JROOT/libraries/src/MVC/Factory/MVCFactory.php:198
8 Joomla\CMS\MVC\Factory\MVCFactory->createView() JROOT/libraries/src/MVC/Controller/BaseController.php:581
9 Joomla\CMS\MVC\Controller\BaseController->createView() JROOT/libraries/src/MVC/Controller/BaseController.php:834
10 Joomla\CMS\MVC\Controller\BaseController->getView() JROOT/libraries/src/MVC/Controller/BaseController.php:615
11 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/components/com_cmv/src/Controller/DisplayController.php:119
12 JCB\Component\Cmv\Site\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:693
13 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
14 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/components/com_cmv/src/Dispatcher/Dispatcher.php:43
15 JCB\Component\Cmv\Site\Dispatcher\Dispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
16 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
17 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
18 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
19 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
20 require_once() JROOT/index.php:32

System information (as much as possible)

  • OS Name & Version: Linux 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64
  • MySql Version: 10.5.23-MariaDB-0+deb11u1
  • Apache Version: Apache/2.4.56 (Debian)
  • PHP Version: 8.2.16
  • Joomla Version: 4.4.3
  • JCB Version: 3.2.0-beta2
  • Browser: Firefox 124.0b7 (64-Bit)

Additional comments

components/com_cmv/src/View/Vorkonfiguration_lp/HtmlView.php looks like this:

namespace JCB\Component\Cmv\Site\View\Vorkonfiguration_lp;

use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\Layout\FileLayout;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\CMS\Document\Document;
use JCB\Component\Cmv\Site\Helper\HeaderCheck;
use JCB\Component\Cmv\Site\Helper\CmvHelper;
use JCB\Component\Cmv\Site\Helper\RouteHelper;
use VDM\Joomla\Utilities\StringHelper;
namespace Joomla\CMS\Factory;

// No direct access to this file
\defined('_JEXEC') or die;

/**

  • Cmv Html View class for the Vorkonfiguration_lp
  • @since 1.6
    /
    class HtmlView extends BaseHtmlView
    {
    /
    *
    • Display the view
    • @param string $tpl The name of the template file to parse; automatically searches through the template paths.
    • @return void
    • @since 1.6
      */
      [...]

So I set up a completely fresh Joomla 3.10.12, downloaded a fresh JCB 3.2.0-beta2, compiled the demo component and installed it on the same site, I installed the first component on.
Here too, I get some class not found error, but a different one:
Class "DemoHelperRoute" not found

Call stack:

Function Location

1 () JROOT/components/com_demo/tmpl/looks/default.php:44
2 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
3 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
4 Joomla\CMS\MVC\View\HtmlView->display() JROOT/components/com_demo/src/View/Looks/HtmlView.php:82
5 Kommid\Component\Demo\Site\View\Looks\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:660
6 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/components/com_demo/src/Controller/DisplayController.php:119
7 Kommid\Component\Demo\Site\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:693
8 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
9 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/components/com_demo/src/Dispatcher/Dispatcher.php:43
10 Kommid\Component\Demo\Site\Dispatcher\Dispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
11 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
12 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
13 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
14 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
15 require_once() JROOT/index.php:32

Beginning of components/com_demo/tmpl/looks/default.php:

use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\HTML\HTMLHelper as Html;
use Kommid\Component\Demo\Site\Helper\DemoHelper;

// No direct access to this file
defined('_JEXEC') or die;

?>
`

items as $item): ?>
name; ?> escape($item->description, true, 120); ?>editLink; ?>
`

Also tried it with SEF and default .htaccs as well as without SEF (.htaccess renamed)
I also installed my component on a fresh joomla on a different server (webhosting server using plesk) with the same result.

Since it seems that this wasn't reported before, and I also have errors with the pre-installed demo extension from JCB, I suspect some problem on my end, but I'm really at a loss here and I'd be greatful for any help on how to resolve this.

### Steps to reproduce the issue compile a component with JCB 3.2.0-beta2 on Debian GNU/Linux 11 (bullseye), 10.5.23-MariaDB-0+deb11u1, PHP 8.0.30, Joomla! 3.10.12, using a fresh Firefox Developer edition (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0) without any addons Install on a fresh Joomla 4.4.3 (10.5.23-MariaDB-0+deb11u1, PHP 8.2.16, Apache2) and set up a menu item for a site view ### Expected result site view is shown ### Actual result No problems in backend - at least I didn't notice any, but in frontend it throws errors: Class "Joomla\CMS\Factory\BaseHtmlView" not found Call Stack: # Function Location 1 () JROOT/components/com_cmv/src/View/Vorkonfiguration_lp/HtmlView.php:46 2 include() JROOT/libraries/vendor/composer/ClassLoader.php:571 3 Composer\Autoload\includeFile() JROOT/libraries/vendor/composer/ClassLoader.php:428 4 Composer\Autoload\ClassLoader->loadClass() JROOT/libraries/src/Autoload/ClassLoader.php:59 5 Joomla\CMS\Autoload\ClassLoader->loadClass() 6 class_exists() JROOT/libraries/src/MVC/Factory/MVCFactory.php:283 7 Joomla\CMS\MVC\Factory\MVCFactory->getClassName() JROOT/libraries/src/MVC/Factory/MVCFactory.php:198 8 Joomla\CMS\MVC\Factory\MVCFactory->createView() JROOT/libraries/src/MVC/Controller/BaseController.php:581 9 Joomla\CMS\MVC\Controller\BaseController->createView() JROOT/libraries/src/MVC/Controller/BaseController.php:834 10 Joomla\CMS\MVC\Controller\BaseController->getView() JROOT/libraries/src/MVC/Controller/BaseController.php:615 11 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/components/com_cmv/src/Controller/DisplayController.php:119 12 JCB\Component\Cmv\Site\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:693 13 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143 14 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/components/com_cmv/src/Dispatcher/Dispatcher.php:43 15 JCB\Component\Cmv\Site\Dispatcher\Dispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361 16 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208 17 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249 18 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293 19 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61 20 require_once() JROOT/index.php:32 ### System information (as much as possible) - OS Name & Version: Linux 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64 - MySql Version: 10.5.23-MariaDB-0+deb11u1 - Apache Version: Apache/2.4.56 (Debian) - PHP Version: 8.2.16 - Joomla Version: 4.4.3 - JCB Version: 3.2.0-beta2 - Browser: Firefox 124.0b7 (64-Bit) ### Additional comments components/com_cmv/src/View/Vorkonfiguration_lp/HtmlView.php looks like this: namespace JCB\Component\Cmv\Site\View\Vorkonfiguration_lp; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Toolbar\Toolbar; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\HTML\HTMLHelper as Html; use Joomla\CMS\Layout\FileLayout; use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView; use Joomla\CMS\Plugin\PluginHelper; use Joomla\CMS\Toolbar\ToolbarHelper; use Joomla\CMS\Document\Document; use JCB\Component\Cmv\Site\Helper\HeaderCheck; use JCB\Component\Cmv\Site\Helper\CmvHelper; use JCB\Component\Cmv\Site\Helper\RouteHelper; use VDM\Joomla\Utilities\StringHelper; namespace Joomla\CMS\Factory; // No direct access to this file \defined('_JEXEC') or die; /** * Cmv Html View class for the Vorkonfiguration_lp * * @since 1.6 */ class HtmlView extends BaseHtmlView { /** * Display the view * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return void * @since 1.6 */ [...] So I set up a completely fresh Joomla 3.10.12, downloaded a fresh JCB 3.2.0-beta2, compiled the demo component and installed it on the same site, I installed the first component on. Here too, I get some class not found error, but a different one: Class "DemoHelperRoute" not found Call stack: # Function Location 1 () JROOT/components/com_demo/tmpl/looks/default.php:44 2 include() JROOT/libraries/src/MVC/View/HtmlView.php:415 3 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203 4 Joomla\CMS\MVC\View\HtmlView->display() JROOT/components/com_demo/src/View/Looks/HtmlView.php:82 5 Kommid\Component\Demo\Site\View\Looks\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:660 6 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/components/com_demo/src/Controller/DisplayController.php:119 7 Kommid\Component\Demo\Site\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:693 8 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143 9 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/components/com_demo/src/Dispatcher/Dispatcher.php:43 10 Kommid\Component\Demo\Site\Dispatcher\Dispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361 11 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208 12 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249 13 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293 14 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61 15 require_once() JROOT/index.php:32 Beginning of components/com_demo/tmpl/looks/default.php: use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\HTML\HTMLHelper as Html; use Kommid\Component\Demo\Site\Helper\DemoHelper; // No direct access to this file defined('_JEXEC') or die; ?> ` <form action="<?php echo Route::_('index.php?option=com_demo'); ?>" method="post" name="adminForm" id="adminForm"> <table class="uk-table uk-table-hover"> <caption><?php echo Text::_('COM_DEMO_LIST_OF_ALL_LOOKS'); ?></caption> <thead> <tr> <th><?php echo Text::_('COM_DEMO_NAME'); ?></th> <th><?php echo Text::_('COM_DEMO_DESCRIPTION'); ?></th> </tr> </thead> <tbody> <?php foreach ($this->items as $item): ?> <tr> <td><a href="<?php echo DemoHelperRoute::getLookingRoute($item->slug); ?>" ><?php echo $item->name; ?></a></td> <td><?php echo $this->escape($item->description, true, 120); ?><?php echo $item->editLink; ?></td> </tr> <?php endforeach; ?> </tbody> </table> ` Also tried it with SEF and default .htaccs as well as without SEF (.htaccess renamed) I also installed my component on a fresh joomla on a different server (webhosting server using plesk) with the same result. Since it seems that this wasn't reported before, and I also have errors with the pre-installed demo extension from JCB, I suspect some problem on my end, but I'm really at a loss here and I'd be greatful for any help on how to resolve this.
Owner

What I found is that there is an issue when we have _ in the component name... and I know this will be a pain... and I have not yet been able to fully understand why. But its namespace related... so I am seeing Vorkonfiguration_lp in the error dump log... if you remove the space or _ in the name does it resolve things?

What I found is that there is an issue when we have `_` in the component name... and I know this will be a pain... and I have not yet been able to fully understand why. But its namespace related... so I am seeing `Vorkonfiguration_lp` in the error dump log... if you remove the space or `_` in the name does it resolve things?
Owner

As for the demo extension I have not yet worked on its front-end... so if may still need some love.

As for the demo extension I have not yet worked on its front-end... so if may still need some love.
Author
Member

What I found is that there is an issue when we have _ in the component name... and I know this will be a pain... and I have not yet been able to fully understand why. But its namespace related... so I am seeing Vorkonfiguration_lp in the error dump log... if you remove the space or _ in the name does it resolve things?

Yepp, this is going to be a pain :)
I'll give it a shot and report back here
thank you so much for this tip :)

> What I found is that there is an issue when we have `_` in the component name... and I know this will be a pain... and I have not yet been able to fully understand why. But its namespace related... so I am seeing `Vorkonfiguration_lp` in the error dump log... if you remove the space or `_` in the name does it resolve things? Yepp, this is going to be a pain :) I'll give it a shot and report back here thank you so much for this tip :)
Author
Member

It helped somewhat - now It can't find the helper class:

Class "JCB\Component\Cmv\Site\Helper\CmvHelper" not found

Call stack

Function Location

1 () JROOT/components/com_cmv/src/View/Vorkonfigurationlp/HtmlView.php:233
2 JCB\Component\Cmv\Site\View\Vorkonfigurationlp\HtmlView->addToolbar() JROOT/components/com_cmv/src/View/Vorkonfigurationlp/HtmlView.php:69
3 JCB\Component\Cmv\Site\View\Vorkonfigurationlp\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:660
4 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/components/com_cmv/src/Controller/DisplayController.php:119
5 JCB\Component\Cmv\Site\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:693
6 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
7 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/components/com_cmv/src/Dispatcher/Dispatcher.php:43
8 JCB\Component\Cmv\Site\Dispatcher\Dispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
9 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
10 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
11 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
12 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
13 require_once() JROOT/index.php:32

In vorkonfigurationlp the use statement for the helper class is present:
namespace JCB\Component\Cmv\Site\View\Vorkonfigurationlp;

use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\Layout\FileLayout;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\CMS\Document\Document;
use JCB\Component\Cmv\Site\Helper\HeaderCheck;
use JCB\Component\Cmv\Site\Helper\CmvHelper;
use JCB\Component\Cmv\Site\Helper\RouteHelper;
use VDM\Joomla\Utilities\StringHelper;

[...]
protected function addToolbar(): void
{

	// set help url for this view if found
	**$this->help_url = CmvHelper::getHelpUrl('vorkonfigurationlp');**
	if (StringHelper::check($this->help_url))
	{
		ToolbarHelper::help('COM_CMV_HELP_MANAGER', false, $this->help_url);
	}
	// now initiate the toolbar
	$this->toolbar = Toolbar::getInstance();
}

...the bold part is line 233, it's complaining about.....

Do I have to put any headers in the class headers tab of my site view?

It helped somewhat - now It can't find the helper class: Class "JCB\Component\Cmv\Site\Helper\CmvHelper" not found Call stack # Function Location 1 () JROOT/components/com_cmv/src/View/Vorkonfigurationlp/HtmlView.php:233 2 JCB\Component\Cmv\Site\View\Vorkonfigurationlp\HtmlView->addToolbar() JROOT/components/com_cmv/src/View/Vorkonfigurationlp/HtmlView.php:69 3 JCB\Component\Cmv\Site\View\Vorkonfigurationlp\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:660 4 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/components/com_cmv/src/Controller/DisplayController.php:119 5 JCB\Component\Cmv\Site\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:693 6 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143 7 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/components/com_cmv/src/Dispatcher/Dispatcher.php:43 8 JCB\Component\Cmv\Site\Dispatcher\Dispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361 9 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208 10 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249 11 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293 12 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61 13 require_once() JROOT/index.php:32 In vorkonfigurationlp the use statement for the helper class is present: namespace JCB\Component\Cmv\Site\View\Vorkonfigurationlp; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Toolbar\Toolbar; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\HTML\HTMLHelper as Html; use Joomla\CMS\Layout\FileLayout; use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView; use Joomla\CMS\Plugin\PluginHelper; use Joomla\CMS\Toolbar\ToolbarHelper; use Joomla\CMS\Document\Document; use JCB\Component\Cmv\Site\Helper\HeaderCheck; use JCB\Component\Cmv\Site\Helper\CmvHelper; use JCB\Component\Cmv\Site\Helper\RouteHelper; use VDM\Joomla\Utilities\StringHelper; [...] protected function addToolbar(): void { // set help url for this view if found **$this->help_url = CmvHelper::getHelpUrl('vorkonfigurationlp');** if (StringHelper::check($this->help_url)) { ToolbarHelper::help('COM_CMV_HELP_MANAGER', false, $this->help_url); } // now initiate the toolbar $this->toolbar = Toolbar::getInstance(); } ...the bold part is line 233, it's complaining about..... Do I have to put any headers in the class headers tab of my site view?
Owner

Yes, if you are calling classes that JCB is not already adding to header... then you must add it yourself.

Yes, if you are calling classes that JCB is not already adding to header... then you must add it yourself.
Owner

But JCB should be adding the header for CmvHelper

But JCB should be adding the header for `CmvHelper`
Owner

Hmm I see it did... is the file there?

Hmm I see it did... is the file there?
Owner

So yesterday our in house testing Team found that they could not get a few of our own components to work, it kept missing classes. We then discovered that the installer of Joomla times-out and the complete package does not install, even thought it says that it did. So they asked me what tweaks to PHP I am using on my development system. So here is my PHP.ini tweaks:

; Resource Limits and File Uploads
upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 60
max_input_vars = 5000
max_input_time = 60
memory_limit = 256M

If you add these, and install JCB again.... and also on the system where your planning to install you component... I think it will resolve your problem. Yes, you could remove this in most cases after the install, but in your development system it might be best to keep it on.

But for large extensions like those that JCB can build making these changes seems necessary, at least on the initial install.

So yesterday our in house testing Team found that they could not get a few of our own components to work, it kept missing classes. We then discovered that the installer of Joomla times-out and the complete package does not install, even thought it says that it did. So they asked me what tweaks to PHP I am using on my development system. So here is my PHP.ini tweaks: ``` ; Resource Limits and File Uploads upload_max_filesize = 128M post_max_size = 128M max_execution_time = 60 max_input_vars = 5000 max_input_time = 60 memory_limit = 256M ``` If you add these, and install JCB again.... and also on the system where your planning to install you component... I think it will resolve your problem. Yes, you could remove this in most cases after the install, but in your development system it might be best to keep it on. But for large extensions like those that JCB can build making these changes seems necessary, at least on the initial install.
Author
Member

Sorry for my late answer, I didn't have a opportunity to work on this for a few days. It seems, that did the trick. It now finds the helper class.

Sorry for my late answer, I didn't have a opportunity to work on this for a few days. It seems, that did the trick. It now finds the helper class.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1066
No description provided.