Custom Styling not saving css files on Windows machine
-
Hi,
On my local development environment I’m running an Apache server on a Windows 11 machine.
If I try to save Custom Styling on the Plugin Options page it seems to save to the database fine but the files are not written to the file system.
I stepped through some of the code with a debugger and it seems the write fails becuase the file names have absolute windows paths.
This is in class-css.php function _custom_css_save_help which calls validate_file and returns a value of 2:
A return value of2means the file path contains a Windows drive path.Hence, is this behaviour by design, in that it is designed to not save on a windows machine?
Thanks for any ideas about this.
Max
Block Theme: yes
TablePress: 3.2.6
TablePress (DB): 120
TablePress table scheme: 3
Plan: Free
Plugin installed: 2018/05/09 12:54:34
WordPress: 6.9
Multisite: no
PHP: 8.3.26
mySQL (Server): 10.11.14-MariaDB
mySQL (Client): mysqlnd 8.3.26
mbstring: yes
ZipArchive: yes
DOMDocument: yes
simplexml_load_string: yes
libxml_disable_entity_loader: yes
UTF-8 conversion: yes
WP Memory Limit: 40M
Server Memory Limit: 512M
WP_DEBUG: true
WP_POST_REVISIONS: true
You must be logged in to reply to this topic.