I double checked this, it supposedly does work with PHP8. I’ve been having issues with Thrive plugins on my websites on this server as well (self-hosted), and I reached out to their plugin support.
I think it’s more of an issue with CyberPanel, so I’m going to be reaching out to them and seeing what the deal is.
UPDATE: And now for some reason it stopped working again. No changes have been made in Mautic. I’ve updated WordPress and my plugins over time, but that’s it.
I noticed it because a lot of leads were added, but they didn’t get segmented properly. At first I thought to myself that “they must have not completed the survey.” Then I tried myself in Incognito and sure enough, it didn’t add me even after the page visit. This is super frustrating. Obviously my setup inside Mautic is correct, since it worked before.
I’m not sure if this has anything to do with it but it says that some of my segments haven’t been updated rebuilt for 278 hours:
I just opened the file in Nano, it’s the same as it is in my control panel thingie. I even tried to change the password to what’s in the Mautic file since that’s the one thing I didn’t know to find otherwise, it said it can’t be the same password so everything is correct with the database credentials.
I did read online to try clearing Mautic cache when I did, it’s still not working.
I wonder how it just stopped working. I’m worried that even if we fix it, this will happen again in the future. Hopefully once we know what it is, we can prevent that. It’s just so weird that no changes were made and it just stopped working out of nowhere.
On the second look, it mght be that you do not have correct php mysql driver installed. Please make sure correct version of php-mysql extension is installed.
UPDATE: I did a bit of Googling. I just tried to do apt-get install php-mysql on my web server. That seems to have fixed that issue. I can now run the cron mautic:segments:update command successfully.
However, the page visit is still not segmenting. Mautic can see anonymous users that have visited the page, but it isn’t moving the segment of a contact.
I tried manually running the cron commands after I did the survey, but it still didn’t add them.
I’m still super confused as to how it worked and one didn’t. It had to have had that MySQL installed before, right? How did it just uninstall itself? This makes no sense to me, but my Linux and knowledge in this area is very limited.
UPDATE2: It seems like the campaign actions are pending.
I did some research, Mautic is actually popping up some errors in the log.
[2022-11-21 18:41:02] mautic.WARNING: Command mautic:campaigns:rebuild exited with status code 1 {“hostname”:“webserver”,“pid”:5457}
[2022-11-21 18:41:02] mautic.NOTICE: TypeError: flock(): Argument #1 ($stream) must be of type resource, bool given (uncaught exception) at /home/luminouscityrp.com/public_html/app/bundles/CoreBundle/Command/ModeratedCommand.php line 143 while running console command mautic:segments:update {“hostname”:“webserver”,“pid”:5455}
[2022-11-21 18:41:02] mautic.WARNING: Command mautic:segments:update exited with status code 1 {“hostname”:“webserver”,“pid”:5455}
I see, that makes sense. In ProxMox it’s said at the bottom it’s done some “package updates.” My linux knowledge is very limited but that may very well have been what messed it up.
I ran the clear cache command did a permissions fix inside CyberPanel, I’m not sure if that’s the right way to do it or not. This is what I hit:
Since your server is managed by provider I think it executes shell commands when you click fix permissions.
Not sure what is the reason for failing script. When you execute the script from the terminal, does it show anytinhg else other then the error from the log?
What is shown if you try to run the scripts with -v flag?
Yes, it is not working but it worked before. No changes were made and all of a sudden it stopped working. I’ve tried re-creating it a few times to see if I can get it to work.
When a subscriber opts-in on my website, they are directed to a survey asking what their knowledge level is. This is so I can talk to newbies differently opposed to intermediate SEOs.
Then they land on different thank you pages. Once they land on those it is supposed to change their segment so they get added to the relevant campaign.