-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Copy link
Description
Quick summary
The total and free size of filesystem reported in sites doesn't match the ones from the machine. This can lead to issues in plugins that rely on these values.
Steps to reproduce
- Open the app.
- Create/start a site.
- Edit the
wp-config-phpfile of the site and add the following code at the bottom:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
error_log("Disk Free Space: " . print_r(disk_free_space('/'), true));
error_log("Disk Total Space: " . print_r(disk_total_space('/'), true));- Navigate to the site.
- Open the logs file located in
<SITE_PATH>/wp-content/debug.log. - Observe that disk space values don't match the ones from the machine. E.g.:
- Disk Free Space: 2048000000 (2GB)
- Disk Total Space: 4096000000 (4GB)
What you expected to happen
The size of filesystem matches the values of the machine.
What actually happened
The size of the filesystem doesn't match the values of the machine.
Impact
All
Available workarounds?
No but the app is still usable
Platform
Mac Silicon
Logs or notes
No response
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done