kirki
kirki copied to clipboard
PHP error and Customize is not working
Issue description:
by enabling Kirki plugin customizer appearance is not working, I get a critical error on-site health, an active PHP session was detected. "A PHP session was created by a session_start() function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close() before making any HTTP requests.”
Version used:
4.0.21
Using theme_mods or options?
theme_mods
PHP error messages that might be related
JS error messages that might be related
Code to reproduce the issue (config + field(s))
Hi @mukhtar-88,
- what theme are you using?
- have you notified the original theme developer about the issue?
- can you please try to temporarily disable all other plugins to see if that makes any difference?
If that didn't work for you, can you please temporarily enable debug + logging as explained here (https://wp-pagebuilderframework.com/docs/debugging/) and recreate the issue? After that, can you please paste what's in the debug log file?
Thank you.
Is there a fix for this?
Hey @mukhtar-88 , can you please update to the latest version (v4.0.22)?
Is there a fix for this?
Hi @fudojahic , the latest version (v4.0.22) brought some fixes. Can you try to update that version?
Thanks!
Is there a fix for this?
Hi @fudojahic , the latest version (
v4.0.22) brought some fixes. Can you try to update that version? Thanks!
I did and it didin't fix it I am also running 5.9.1 version wordpress. I had to revert KIRKI to 3.1.9 to make it work!
Everything is up to date and Customizer is not working when I enable Kirki Customizer Framework plugin, so I have to keep it disabled to use customizer. When the plugin is enabled I get the below error when I open the customizer from dashboard Apearance > Customize. I did disable all other plugins the issue is with Kirki only others are all working fine.
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting WordPress.
and I am using eLearni theme Version: 2.2 By the DesignThemes team
Hi @mukhtar-88,
Thank you for the additional details.
Just real quick,
- have you notified the original theme developer about the issue?
- can you please try to temporarily disable all other plugins to see if that makes any difference?
If that didn't work for you, can you please temporarily enable debug + logging as explained here (https://wp-pagebuilderframework.com/docs/debugging/) and recreate the issue? After that, can you please paste what's in the debug log file?
I have the same problem reported by our friend.
realize it has to do with updating to the latest versions of PHP
A PHP session was created by calling the session_start() function. This interferes with REST API and loopback requests. The session must be closed by session_write_close() before making any HTTP requests.
The REST API is a way for WordPress, and other applications, to communicate with the server. An example is the block editor canvas, which relies on the API to display and save your posts and pages.
The REST API request failed due to the following error. Error: cURL error 28: Operation timed out after 10003 milliseconds with 0 bytes received (http_request_failed)
PHP Compatibility Checker plugin diagnosed the following conflicts
FILE: /home1/danielw10/public_html/wp-content/plugins/kirki/packages/kirki-framework/util/src/Helper.php
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
48 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$array" was used, and possibly changed (by reference), on line 36.
Hi @Danielw10,
thank you for sharing these additional details. We are going to look into this.
Hey @Danielw10,
quick question - what exact PHP version are you running?
Thank you.
I upgraded to PHP 7.3 but had this problem with kirki, I believe it's an incompatibility issue. And the last alternative was to go back to PHP 7.2 where in a way there was a certain stability in terms of response speed with the server, but the problem persists since PHP 7.0 version as reported in the wordpress diagnostics and in the PHP Compatibility Checker plugin.
I'm using the latest version of kirk-framework : 4.0.22
?