Wednesday, August 31, 2022
HomeWordPress Developmentphp - All of a sudden classes and header location not working

php – All of a sudden classes and header location not working


we now have received a wordpress web site which we use with exterior php scripts which use classes and that are included by way of wordpress plugins in wordpress pages. This has been working nice over the course of the final 10 years.
Nevertheless, instantly at the moment this has stopped working. After I open a wordpress web page with such an included php file, I get the error message that session_start() just isn’t working as a result of headers have already been despatched.
That is one thing I don’t perceive as a result of yesterday it labored.
As header(“Location: …”) will not work both it appears to me that in some way there ia an output from wordpress which blocks the session in our exterior packages.
Yesterday wordpress up to date to six.0.2 so I suspected the replace however have already downgraded to six.0.1 and 6.0 which didn’t resolve the difficulty. As well as a second wordpress web site on 6.0.2 has no downside with the classes in exterior phps.

I then deactivated all of the plugins however the issue remains to be there. I additionally modified the theme to twenty-twentytwo however nonetheless no luck. If you happen to open the included exterior php scripts instantly with out together with them in wordpress, they work as anticipated.

I’m clueless. There should be a motive why it stopped working. Do you might have any concepts what I can do?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments