Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
PHP8 Support?
Avatar
Blaise
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Nov 14, 2022 - 10:54 am

Hi,

What's the calendar for providing support for PHP 8.1? You have migrated the core product but the plugins are not all compatible.

As PHP 7.4 support ends Nov 28 2022 this gives us just 14 days to update the plugins.

I am getting a few warnings, but the worst problem is with the tiny MCE editor: the formatting bar is no longer there and replying to a comment shows actual HTML code and not the actual formatting.

On the simple press website I am seeing the tiny MCE bar so you must also be running PHP7.4 and be in the same boat as me!

Avatar
SP Community Support
SP Moderator
sp_UserOfflineSmall Offline
Dec 2, 2022 - 7:38 pm

Hi:

Updates for plugins are now available.  But there were no changes needed for the tinymce editor as far as we could tell.

It is possible that there's a JS conflict under php 8 that doesn't show up in 7.4 but that would be unusual.  When in php 8, do you see errors in your browser console with the tinymce editor active?

Avatar
Blaise
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Dec 8, 2022 - 9:23 am

Hi,

Thanks for the updates on the other plugins.

Regarding Tinymce after much searching I found a detail:

Running PHP 7.4 I get the following warning in the console:

Deprecated TinyMCE API call: <target>.onInit.add(..)  in plugin.min.js:1:90

it's this file:

/wp-includes/js/tinymce/plugins/compat3x/plugin.min.js?ver=49110-20201110

But all works fine.

 

The warning is no longer there in PHP 8.1.13 but the bug reported at the top of this thread is there.

 

I tried disabling the TinyMCE SimplePress plugin but this causes a problem even with PHP 7.4:

when replying to a user with the quote function, users see html code in the reply box (blockquote, img title, strong...) instead of formatted text. Like they were getting with PHP 8.1

Avatar
SP Community Support
SP Moderator
sp_UserOfflineSmall Offline
Dec 9, 2022 - 7:28 pm

Hi:

If you disable TinyMCE then, yes, you're back to a plain text box for the editor and using the quote function will show the embedded HTML from the message being quoted.

I created a new website, added Simple:Press and then enabled the latest TinyMCE editor.  I could not reproduce the issue you're describing.

Is it possible that there is a new conflict between Simple:Press and your theme or one of your plugins?  Sometimes updates introduces new conflicts between things that weren't there before.

Avatar
Blaise
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Dec 16, 2022 - 8:46 am

Hello,

thank you for the answer.

Yes, I understand there must be a conflict somewhere.

I disabled almost all my plugins, and I reverted back to standard Reboot Theme 2.3 and then barebones 2.1.3. But the problem is still there, in PHP 8.0 and 8.1.

I see some warnings in my apache logs on several sp php files (Trying to access array offset on value of type bool...) When I have more time I will continue searching.

Avatar
Hari
Member
Free Members
sp_UserOfflineSmall Offline
Dec 20, 2022 - 6:13 pm

@Blaise, just to add that your are not alone, I have exact the same problem with PHP8.0, SP 6.8.1 and all plugins on the last version.

Everything works fine under PHP8.0 except that TinyMCE doesnt work anymore and has "lost" its Menu-Bar. Reverting to PHP 7.4 solves the problem.

As I can live with PHP7.4 for quite some time and am not forced to change, I tend to sit this out, as time-consuming debugging just for this bug is not sensible compared to my other priorities.

But whatever the cause is, it seems to be more common than just your special config. Just saying.

Avatar
Cherie Ve Ard
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Jan 23, 2023 - 7:50 pm

We are also having issues with TinyMCE and PHP 8.0/8.1. Reverting back to 7.4 brings it back.. but this isn't an ideal situation. Our members and staff are used to TinyMCE for formatting responses, links, etc.  SimplePress is the only outstanding plug-in on our site preventing us from upgrading to PHP 8.1. 

When will this be fixed?

Avatar
Philip Treacy
Member
Free Members
sp_UserOfflineSmall Offline
Jan 26, 2023 - 8:47 pm

I'm also having issues with the TinyMCE Editor.  It does not appear when editing/adding a post.

Running PHP 8.0, Simple Press 6.8.2, Editor TincyMCE Rich Text 4.1.0.

Phil

Avatar
Marcus (Simple:Press)
Admin
sp_UserOfflineSmall Offline
Feb 3, 2023 - 9:43 am

Hi,

Full support for PHP 8.0, then 8.1 and 8.2 is currently our top priority.

We have managed to recreate the bug with TinyMCE and PHP 8 and I think we have a solution. We still have some more testing to do and it takes some work to create and release a new version, but we hope to release it during next week.

Please let us know of any other PHP 8 issues you encounter.

Regards,

Marcus,
Simple:Press

Avatar
Marcus (Simple:Press)
Admin
sp_UserOfflineSmall Offline
Feb 6, 2023 - 9:23 am

Hi again,

We just released an update that should fix the issue with TinyMCE on PHP 8.0. Please let us know if you still experience any TinyMCE issues after the update.

Marcus
Simple:Press

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 621
Members: 17367
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79627