Welcome, Guest
Username: Password: Remember me

TOPIC:

[SOLVED] JEM 2.3.5: PHP8 Update for Jem 2.3 1 year 1 month ago #29721

  • hekla
  • hekla's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 404
  • Thank you received: 192

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.

[SOLVED] JEM 2.3.5: PHP8 Update for Jem 2.3 1 year 1 month ago #29722

  • hekla
  • hekla's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 404
  • Thank you received: 192

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 :))
The following user(s) said Thank You: jojo12, Lollo_C

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

Last edit: by jojo12. Reason: typos and added new insights after plugin test

[SOLVED] JEM 2.3.5: PHP8 Update for Jem 2.3 1 year 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.

[SOLVED] JEM 2.3.5: PHP8 Update for Jem 2.3 1 year 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.

[SOLVED] JEM 2.3.5: PHP8 Update for Jem 2.3 1 year 1 month ago #29764

  • hekla
  • hekla's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 404
  • Thank you received: 192

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:
JHtml::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.'/helpers/html');
replace it with
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.

[SOLVED] JEM 2.3.5: PHP8 Update for Jem 2.3 1 year 1 month ago #29765

  • hekla
  • hekla's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 404
  • Thank you received: 192
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#rep.../ComponentHelper.php

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

Time to create page: 0.312 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......