Issue with J3.7b3 testing my component
Ruud van Lent
New Member
Posts: 4
7 года 9 мес. назад - 7 года 9 мес. назад #1518
от Ruud van Lent
Ruud van Lent создал тему: Issue with J3.7b3 testing my component
Hi, just a heads-up.
ran into an issue with my component under Joomla 3.7 (beta3).
the issue is as follows:
component-creator generates two helper files for the component: one in the administrator/helpers and one in site/helpers.
Problem is that bot helpers have the same class name eg: class MycomponentHelpersMycomponent
Now where does this go wrong:
It turns out that the new fields functionality (plg_system_fields) autoloads the helper classes and crashes my site with a Cannot redeclare class MycomponentHelpersMycomponent
e.g. when calling contenplugins in the component.
This is not correct. Two classes should never have the same class name
hope this helps
ran into an issue with my component under Joomla 3.7 (beta3).
the issue is as follows:
component-creator generates two helper files for the component: one in the administrator/helpers and one in site/helpers.
Problem is that bot helpers have the same class name eg: class MycomponentHelpersMycomponent
Now where does this go wrong:
It turns out that the new fields functionality (plg_system_fields) autoloads the helper classes and crashes my site with a Cannot redeclare class MycomponentHelpersMycomponent
e.g. when calling contenplugins in the component.
This is not correct. Two classes should never have the same class name
hope this helps
Последнее редактирование: 7 года 9 мес. назад пользователем Ruud van Lent.
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
Andres Maeso
Platinum Member
Posts: 338
7 года 9 мес. назад #1521
от Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Адрес электронной почты защищен от спам-ботов. Для просмотра адреса в вашем браузере должен быть включен Javascript.
Andres Maeso ответил в теме Issue with J3.7b3 testing my component
Hi Rud!
Thank you very much for the heads-up! We really appreciate feedback like yours. This issue will be sorted out before the next version is released.
Regards,
Andrés.
Thank you very much for the heads-up! We really appreciate feedback like yours. This issue will be sorted out before the next version is released.
Regards,
Andrés.
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Адрес электронной почты защищен от спам-ботов. Для просмотра адреса в вашем браузере должен быть включен Javascript.
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
Andres Maeso
Platinum Member
Posts: 338
7 года 8 мес. назад #1524
от Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Адрес электронной почты защищен от спам-ботов. Для просмотра адреса в вашем браузере должен быть включен Javascript.
Andres Maeso ответил в теме Issue with J3.7b3 testing my component
Hi Ruud
Just to follow up on this matter. We have fixed the bug and it will be uploaded as soon as version 3.7 is released.
Regards,
Andrés.
Just to follow up on this matter. We have fixed the bug and it will be uploaded as soon as version 3.7 is released.
Regards,
Andrés.
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Адрес электронной почты защищен от спам-ботов. Для просмотра адреса в вашем браузере должен быть включен Javascript.
Спасибо сказали: Ruud van Lent
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
Peter Skarsjo
New Member
Posts: 2
7 года 6 мес. назад #1550
от Peter Skarsjo
Peter Skarsjo ответил в теме Issue with J3.7b3 testing my component
Could you explain *how* you have fixed it, please? I am way beyond regenerating my component with CC and I will have to carry out the fix myself.
I have already tried a simple rename of the helper class in site. This only results in the class not being found, and the component crashes.
I have already tried a simple rename of the helper class in site. This only results in the class not being found, and the component crashes.
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
arnoud van der Reest
New Member
Posts: 2
7 года 6 мес. назад #1551
от arnoud van der Reest
arnoud van der Reest ответил в теме Issue with J3.7b3 testing my component
I am also way beyond regenerating my component. Please explain how I can Fix this myself.
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
Peter Skarsjo
New Member
Posts: 2
7 года 6 мес. назад #1557
от Peter Skarsjo
Peter Skarsjo ответил в теме Issue with J3.7b3 testing my component
The more I think about this issue, the worse I think it is. I guess it affects *all* your users, i.e. you are in a situation where *all* your users, at least most of them, have crashing components as soon as they upgrade to Joomla 3.7.
I would suggest you issue a warning, by email, to all your users *not* to update their Joomla installation until they have fixed this issue. I also suggest you publish instructions how to fix already generated components. Fixing your own engine is *not* enough.
Those affected by this may find this tip useful. I use a workaround to save the front side at the expense of loosing the admin side. I have renamed the component_name.php in the administrators/helpers directory. This crashes the admin component, but allows the front side to work. If you can manage temporarily without admin service for your component it may help you until CC publish a real fix.
I would suggest you issue a warning, by email, to all your users *not* to update their Joomla installation until they have fixed this issue. I also suggest you publish instructions how to fix already generated components. Fixing your own engine is *not* enough.
Those affected by this may find this tip useful. I use a workaround to save the front side at the expense of loosing the admin side. I have renamed the component_name.php in the administrators/helpers directory. This crashes the admin component, but allows the front side to work. If you can manage temporarily without admin service for your component it may help you until CC publish a real fix.
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
Время создания страницы: 0.096 секунд