[Bug]: Missing Composer dependencies after upgrading to 4.0.0
Open
Nobody has claimed this yet.
type: bug
- Dominant language
- PHP
- Stars
- 95
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
Description of the bug
After upgrading the plugin to version 4.0.0, WordPress crashes due to missing Composer dependencies.
Reproduction instructions
- Install plugin in version 3.10.0
- Upgrade to 4.0.0
- Website crashes
(A fresh install probably works, too)
Expected behavior
Plugin doesn't crash, dependencies are present.
Environment info
- Chrome 107, macOS
- PHP 7.4, PHP 8.0, PHP 8.1
- Ubuntu 20.04
Relevant log output
[Wed Nov 16 13:08:47.194013 2022] [proxy_fcgi:error] [pid 2515441] [client XXXXXXXXXX:31216] AH01071: Got error 'PHP message: PHP Warning: require(/var/www/example.com/wp-content/plugins/backwpup/vendor/composer/../amphp/amp/lib/functions.php): failed to open stream: No such file or directory in /var/www/example.com/wp-content/plugins/backwpup/vendor/composer/autoload_real.php on line 59PHP message: PHP Fatal error: require(): Failed opening required '/var/www/example.com/wp-content/plugins/backwpup/vendor/composer/../amphp/amp/lib/functions.php' (include_path='/var/www/example.com/wp-content/plugins/backwpup/vendor/pear/pear_exception:/var/www/example.com/wp-content/plugins/backwpup/vendor/pear/console_getopt:/var/www/example.com/wp-content/plugins/backwpup/vendor/pear/pear-core-minimal/src:/var/www/example.com/wp-content/plugins/backwpup/vendor/pear/archive_tar:.:/usr/share/php') in /var/www/example.com/wp-content/plugins/backwpup/vendor/composer/autoload_real.php on line 59', referer: http://example.com/wp-login.php
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the upgrade from BackWPup 3.10.0 to 4.0.0 and inspect vendor/composer/autoload_real.php together with the missing vendor/composer/../amphp/amp/lib/functions.php path. Check how dependencies are included in the release package. Done means both upgrades and fresh installs include the required dependencies without the WordPress crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend, build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100