help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

[SOLVED] JEM 2.3.5: PHP8 Update for Jem 2.3

Re: [SOLVED] JEM 2.3.5: PHP8 Update for Jem 2.3

2 years 1 month ago
#29721
thanks!
where would be the problem, if the whole line 114 would be deleted?
You're right – we can delete the whole line.
The following user(s) said Thank You: jojo12

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

Re: [SOLVED] JEM 2.3.5: PHP8 Update for Jem 2.3

2 years 1 month ago - 2 years 1 month ago
#29722
Will the JEM plugins for the community builder also be switched to PHP 8?
We haven't looked at this yet.
To switch to php8 and J3.x is possibly no or only a small problem. I just tested the plugins for CB "jemmyevents_v2.3.1" and "plug_jemmyattending_v2.3.1" with J3.10.11 and php 8.0 – they work!

To switch to php8 and J4 is probably more work and will definitely not take place in the first step.
It would be nice in a second step. It depends on how much work it is and if we have re resources or funds to make it happen (feel free to donate :))
Last edit: 2 years 1 month ago by jojo12. Reason: typos and added new insights after plugin test
The following user(s) said Thank You: jojo12, Lollo_C

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

Re: [SOLVED] JEM 2.3.5: PHP8 Update for Jem 2.3

2 years 1 month ago
#29755
Hello everyone,
I have now installed the plug_jemmyattending_v2.3.1 and the pkg_jem_v2.3.4_beta2.zip. At first glance, everything worked under PHP 8.1 as well

But now I noticed that I get the following error message when writing a PM in Community Builder:

ERROR 0 - Undefined constant "JPATH_COMPONENT_ADMINISTRATOR" in /is/htdocs/#########/components/com_jem/classes/output.class.php:14

If I switch back to PHP 7.4, the error is gone. Can one of the experts take a look at this?

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

Re: [SOLVED] JEM 2.3.5: PHP8 Update for Jem 2.3

2 years 1 month ago
#29762
Sorry, I am not able to look at this, because I can use JEM only on a xampp with no mails, I am waiting for Egnarts

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

Re: [SOLVED] JEM 2.3.5: PHP8 Update for Jem 2.3

2 years 1 month ago
#29764
Hello everyone,
I have now installed the plug_jemmyattending_v2.3.1 and the pkg_jem_v2.3.4_beta2.zip. At first glance, everything worked under PHP 8.1 as well

But now I noticed that I get the following error message when writing a PM in Community Builder:

ERROR 0 - Undefined constant "JPATH_COMPONENT_ADMINISTRATOR" in /is/htdocs/#########/components/com_jem/classes/output.class.php:14

If I switch back to PHP 7.4, the error is gone. Can one of the experts take a look at this?

For the moment you can fix it youself:
Go to the mentioned file "output.class.php.
On line 14 you see:
Code:
JHtml::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.'/helpers/html');
replace it with
Code:
JHtml::addIncludePath(JPATH_SITE.'administrator/components/com_jem/helpers/html');
As I'm no coder I don'rt really undestand why "JPATH_COMPONENT_ADMINISTRATOR" is not definded …
The following user(s) said Thank You: jojo12

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

Re: [SOLVED] JEM 2.3.5: PHP8 Update for Jem 2.3

2 years 1 month ago
#29765
Just found out:
JPATH_COMPONENT_ADMINISTRATOR is deprecated anyway in Joomla 4 (but still not clear why it doesn't work in J3 and php8 …?)
api.joomla.org/cms-4/deprecated.html#repos/joomla-cms/libraries/src/Component/ComponentHelper.php

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

Time to create page: 0.451 seconds