Automattic / Automattic/s3-media-sync
After activation plugin We get error
- Dominant language
- PHP
- Stars
- 24
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the [support forums](https://wordpress.org/support/forums/).
[Learn more about troubleshooting WordPress.](https://wordpress.org/documentation/article/faq-troubleshooting/)
PHP Fatal error: Uncaught S3_Media_Sync\Exceptions\Invalid_Bucket_Exception: Bucket name cannot be empty in D:\xampp82\htdocs\review\wp-content\plugins\s3-media-sync\inc\value-objects\class-s3-bucket.php:208
Stack trace:
#0 D:\xampp82\htdocs\review\wp-content\plugins\s3-media-sync\inc\value-objects\class-s3-bucket.php(59): S3_Media_Sync\Value_Objects\S3_Bucket->validate_name('')
#1 D:\xampp82\htdocs\review\wp-content\plugins\s3-media-sync\inc\value-objects\class-s3-bucket.php(86): S3_Media_Sync\Value_Objects\S3_Bucket->__construct('', '', Object(S3_Media_Sync\Value_Objects\Region), true, 'public-read')
#2 D:\xampp82\htdocs\review\wp-content\plugins\s3-media-sync\inc\class-s3-media-sync-tester.php(48): S3_Media_Sync\Value_Objects\S3_Bucket::from_settings(Array)
#3 D:\xampp82\htdocs\review\wp-content\plugins\s3-media-sync\s3-media-sync.php(30): S3_Media_Sync_Tester->__construct(Array)
#4 D:\xampp82\htdocs\review\wp-includes\class-wp-hook.php(324): {closure}('')
#5 D:\xampp82\htdocs\review\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(Object(Redirection), Array)
#6 D:\xampp82\htdocs\review\wp-includes\plugin.php(517): WP_Hook->do_action(Array)
#7 D:\xampp82\htdocs\review\wp-settings.php(578): do_action('plugins_loaded')
#8 D:\xampp82\htdocs\review\wp-config.php(119): require_once('D:\\xampp82\\htdo...')
#9 D:\xampp82\htdocs\review\wp-load.php(50): require_once('D:\\xampp82\\htdo...')
#10 D:\xampp82\htdocs\review\wp-blog-header.php(13): require_once('D:\\xampp82\\htdo...')
#11 D:\xampp82\htdocs\review\index.php(17): require('D:\\xampp82\\htdo...')
#12 {main}
can't open setting page
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with inc/value-objects/class-s3-bucket.php, especially validate_name(), from_settings(), and the constructor call shown in the stack trace. Then read inc/class-s3-media-sync-tester.php and s3-media-sync.php to follow activation and settings loading. Done means the activation path no longer produces the reported fatal error and the settings page can be opened.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, php, wordpress
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100