• Resolved okcirmht

    (@okcirmht)


    Without intending to take too much of your time, I was wondering if your Collapse-O-Matic plugin has any compatibility issues with PHP 8+ or whether the minifying exclusion requirements are different from PHP 7.4. I use it on footers in my site, and works fine in PHP 7.4. But when I change settings to PHP 8+ it only shows the code. I currently exclude /wp-content/plugins/jquery-collapse-o-matic in my minifying plugin and it works fine in PHP 7.4, but, keeping the same setting, it does not work in PHP 8+.

    I do not wish to switch to PHP 8+ just for the purpose of this question for you to see, so it won’t make a difference to show you an example, since it works as is in PHP 7.4. Should I not exclude the js file in PHP 8+? Should it be different? I use the regular plugin, not the premium. In my case the shortcode uses a snippet to print some text content to the page for google indexing purposes. What happens in PHP 8+ setting is that the snippet automatically turns off, as if it is trying to avoid a site breaking conflict.

    Perhaps the issue is not with your plugin (since it does show the shortcode even under PHP 8+), but the snippet attached to that shortcode does not remain active to do its job.

    Even if you say this problem is not caused by your plugin, it will be helpful so I can look for the cause elsewhere. This issues is preventing me from upgrading to PHP 8+ since I need the above function to work for indexing purposes of my pages. But I do need to upgrade for other reasons, so need to figure out this problem. Thanks for your time.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author twinpictures

    (@twinpictures)

    The collapse-o-matic plugin is working without issue on PHP 8.1 on our test server: https://spacedonkey.de/ so it’s unlikely that the issue is being caused by our plugin.

    The page you linked to is not showing any issues, probably because it is still using PHP 7.4, correct? Do you have a development environment you can test PHP 8.1 with, or are you only dealing with the live website?

    Thread Starter okcirmht

    (@okcirmht)

    twinpictures, thanks much for your reply. Yes, the reason it is working is because I reverted back to PHP 7.4. I am glad you confirmed your plugin works with 8.1. I don’t have a development site, so what I tested was on the live site.

    The initial attempt led to some site breaking, flagging a snippet plugin conflict that contained the php code for that function, and I could no longer even uninstall any plugin. However, since then I changed the snippet plugin to an up to date one and cleared up all the old plugins, so the change to PHP 8.1 takes place without any problem except for this function.

    In 8.1. the collapse-o-matic plugin containing the title of the menu and the shortcode to be used is there, just the snippet for that other shortcode under its menu goes inactive. For the few seconds I keep it active, however, the text for indexing does appear and the text prints. So, I have a feeling that this has nothing to do with your good plugin, and something with the snippet and PHP 8.

    I have confirmed that the PHP code contained in the snippet is PHP 8 compatible (from its writer). I have tried clearing caches and minified js. It may as well be the case that if I switch back to 8+ it may work this time, since in the process I fixed a few other things. I just wanted to make sure collapse-o-matic plugin is not the cause.

    I do not wish to take more of your time, however. I think I am pretty sure now that your plugin is actually working fine in PHP 8+. It is the snippet that somehow does not link up with the code housed under the collapse-o-matic menu. At some point soon I will take the plunge and try PHP 8+ again, but I can’t right now since I can’t handle another break in the site due to pressure of time with other projects. In my experience, once you change something lots of other problems come up that will take days to figure out. I will let you know when I try.

    Plugin Author twinpictures

    (@twinpictures)

    Alright! Well, let us know if we can assist in anything specific.
    Also, highly recommend a dev environment so you can test and troubleshoot things without having the pressures related to a live site.
    Cheers!

    Thread Starter okcirmht

    (@okcirmht)

    Thanks again for your reply. Yes, the development site is a great idea. I need to try and learn having and using it as a matter of routine. I will let you know when I figure this out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP 8+ Compatibility of Collapse-O-Matic?’ is closed to new replies.