-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Describe the bug
The user reported a problem when trying to import WP Rocket Settings json files:
Warning: Undefined array key "consumer_key" in /home/php-fpm-user/.wp-cli/packages/vendor/wp-media/wp-rocket-cli/command.php on line 566
Warning: Undefined array key "consumer_email" in /home/php-fpm-user/.wp-cli/packages/vendor/wp-media/wp-rocket-cli/command.php on line 567
Warning: Undefined array key "secret_key" in /home/php-fpm-user/.wp-cli/packages/vendor/wp-media/wp-rocket-cli/command.php on line 568
Warning: Undefined array key "secret_cache_key" in /home/php-fpm-user/.wp-cli/packages/vendor/wp-media/wp-rocket-cli/command.php on line 569
Warning: Undefined array key "minify_css_key" in /home/php-fpm-user/.wp-cli/packages/vendor/wp-media/wp-rocket-cli/command.php on line 570
Warning: Undefined array key "minify_js_key" in /home/php-fpm-user/.wp-cli/packages/vendor/wp-media/wp-rocket-cli/command.php on line 571
Warning: Undefined array key "version" in /home/php-fpm-user/.wp-cli/packages/vendor/wp-media/wp-rocket-cli/command.php on line 572
Success: Settings imported and saved.Still, the settings are saved successfully but causing these PHP warnings.
To Reproduce
Steps to reproduce the behavior:
- Activate PHP error display (or make sure to check logs after the action)
- Make sure your .json file does not contain array keys mentioned in lines 566-572 of command.php
- Run WP-CLI command to import .json Settings file
Expected behavior
The process should succeed and there should not be any warnings in the logs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels