[BETA] 'An error has occurred' displays when component is installed in Joomla 5 website. #1050

Open
opened 2024-02-12 13:06:22 +00:00 by PWRM · 3 comments

Install new builded 'backend only' component in fresh 5.0.2 Joomla site, site has no extra Plugins, Extensions or Components installed

Component should work as it does in a Joomla 3 site when the component is compiled for J3 with an older version of JCB

Component installs, in the Joomla administrator the component menu's are visible, for each admin view a menu items. All component's menu items give the same error: Class "JCB\Component<componentname>\Administrator\Model\Super___0a59c65c_9daf_4bc9_baf4_e063ff9e6a8a___Power" not found

There is no Model folder in \Administrator. Should this be installed by the component or do I need to do additional steps?

System information (as much as possible)

  • Linux 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-1 (2023-07-14) x86_64
  • MySql Version: 10.6.14-MariaDB
  • Apache Version:
  • PHP Version: 8.1.21
  • Joomla Version: Joomla! 5.0.2 Stable [ Kuboresha ] 9-January-2024 16:00 GMT
  • JCB Version: 3.1.37
  • Browser: Firefox / Chrome / Safari

Additional comments

### Install new builded 'backend only' component in fresh 5.0.2 Joomla site, site has no extra Plugins, Extensions or Components installed ### Component should work as it does in a Joomla 3 site when the component is compiled for J3 with an older version of JCB ### Component installs, in the Joomla administrator the component menu's are visible, for each admin view a menu items. All component's menu items give the same error: Class "JCB\Component\<componentname>\Administrator\Model\Super___0a59c65c_9daf_4bc9_baf4_e063ff9e6a8a___Power" not found There is no Model folder in \Administrator. Should this be installed by the component or do I need to do additional steps? ### System information (as much as possible) - Linux 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-1 (2023-07-14) x86_64 - MySql Version: 10.6.14-MariaDB - Apache Version: - PHP Version: 8.1.21 - Joomla Version: Joomla! 5.0.2 Stable [ Kuboresha ] 9-January-2024 16:00 GMT - JCB Version: 3.1.37 - Browser: Firefox / Chrome / Safari ### Additional comments
Owner

This error occur when JCB compiler can't fetch the powers it needs during the compilation of your component.

Which means I will need to know more about the instance where JCB is running... not where the component is suppose to work.

Meaning JCB 3.1.37 is on Joomla 3.10.12 and PHP 8.0

The next thing to know is when you compile your extension what errors does it give you?

Normal y if JCB can't get the power classes it needs, it tells you that. You will have to make sure that your JCB instance have access to the internet, so that it can pull the powers from the receptive repositories as needed.

Also make sure the if you simple upgraded the JCB component that all the respective plugins are installed, by manually installing the package. Once this is done, you will also need to look over the the plugins that they are activated and linked to JCB. Look at this tutorial for more info.

This error occur when JCB compiler can't fetch the powers it needs during the compilation of your component. Which means I will need to know more about the instance where JCB is running... not where the component is suppose to work. Meaning [JCB 3.1.37](https://git.vdm.dev/joomla-beta/pkg-component-builder/archive/v3.1.37.zip) is on Joomla 3.10.12 and PHP 8.0 The next thing to know is when you compile your extension what errors does it give you? Normal y if JCB can't get the power classes it needs, it tells you that. You will have to make sure that your JCB instance have access to the internet, so that it can pull the powers from the receptive repositories as needed. Also make sure the if you simple upgraded the JCB component that all the respective plugins are installed, by manually installing the [package](https://git.vdm.dev/joomla-beta/pkg-component-builder/archive/v3.1.37.zip). Once this is done, you will also need to look over the the plugins that they are activated and linked to JCB. Look at [this tutorial](https://www.youtube.com/watch?v=KyAKuVLQo0E&list=PLQRGFI8XZ_wsV6PDFXd21B7O0X70JlNd3&index=10) for more info.
Author

Thank you for pointing me into the correct direction. Appreciated! I re-installed the suggested software versions on my development system and it solved the issue. Big thanks for this amazing magnificent tool. I will sign up for a pro account, I'm in the middel of getting a PayPal account, so I can proceed with the payment.

I used a component build with an older version of JCB, which has 300 x 300 px images for the Dashboard buttons. The new one needs 128 x 128 px. This results in images exceeding the component Dashboard button borders. The fix is very easy (for those who work with 300px images). Add this to the administrator/assets/css/dashboard.css:

.dashboard-content img {
width:100%;
}

Thank you for pointing me into the correct direction. Appreciated! I re-installed the suggested software versions on my development system and it solved the issue. Big thanks for this amazing magnificent tool. I will sign up for a pro account, I'm in the middel of getting a PayPal account, so I can proceed with the payment. I used a component build with an older version of JCB, which has 300 x 300 px images for the Dashboard buttons. The new one needs 128 x 128 px. This results in images exceeding the component Dashboard button borders. The fix is very easy (for those who work with 300px images). Add this to the administrator/assets/css/dashboard.css: .dashboard-content img { width:100%; }
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 some of 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 some of 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.
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#1050
No description provided.