Hi everyone, Has anyone encountered this error whe...
# docker
m
Hi everyone, Has anyone encountered this error when starting the docker environment?
Copy code
Fatal error: Uncaught TypeError: Argument 3 passed to Composer\Downloader\DownloadManager::download() must implement interface Composer\Package\PackageInterface or be null, bool given, called in /data/vendor/jakoch/phantomjs-installer/src/PhantomInstaller/Installer.php on line 190 and defined in phar:///usr/bin/composer/src/Composer/Downloader/DownloadManager.php:182
I tried to setup the whole project again locally but I keep running into the same error. I used the following commands:
Copy code
docker/sdk clean
docker/sdk boot deploy.dev.yml
docker/sdk up
a
Yes, this is known. One minute.
Copy code
composer require jakoch/phantomjs-installer:^3.0 -W --ignore-platform-reqs --no-scripts
m
Thanks for your reply. I run
docker/sdk cli composer require jakoch/phantomjs-installer:^3.0 -W --ignore-platform-reqs --no-scripts
and
docker/sdk up --build --data
but I still got the same error message. Do I have to run docker/sdk clean or reset?
a
It should have helped already I believe. ¯\_(ツ)_/¯
m
Hm looks like nothing was installed or updated: Package operations: 0 installs, 0 updates, 0 removals And I still got the same error :/
Here is the full terminal output:
Copy code
PhantomInstaller\Installer::installPhantomJS
Error relocating /data/vendor/bin/phantomjs: __strdup: symbol not found
Error relocating /data/vendor/bin/phantomjs: backtrace: symbol not found
Error relocating /data/vendor/bin/phantomjs: backtrace_symbols: symbol not found
Error relocating /data/vendor/bin/phantomjs: __rawmemchr: symbol not found
Caught exception while checking PhantomJS version:
Undefined offset: 0

Fatal error: Uncaught TypeError: Argument 3 passed to Composer\Downloader\DownloadManager::download() must implement interface Composer\Package\PackageInterface or be null, bool given, called in /data/vendor/jakoch/phantomjs-installer/src/PhantomInstaller/Installer.php on line 190 and defined in phar:///usr/bin/composer/src/Composer/Downloader/DownloadManager.php:182
Stack trace:
#0 /data/vendor/jakoch/phantomjs-installer/src/PhantomInstaller/Installer.php(190): Composer\Downloader\DownloadManager->download(Object(Composer\Package\Package), '/data/vendor/ja...', false)
#1 /data/vendor/jakoch/phantomjs-installer/src/PhantomInstaller/Installer.php(119): PhantomInstaller\Installer->download('/data/vendor/ja...', '3.0.0')
#2 /data/vendor/jakoch/phantomjs-installer/src/PhantomInstaller/Installer.php(92): PhantomInstaller\Installer->__invoke()
#3 phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(341): PhantomInstaller\Installer::installPhantomJS(Object(Composer\Script\Event))
#4 phar:///usr/bin/composer/ in phar:///usr/bin/composer/src/Composer/Downloader/DownloadManager.php on line 182
a
composer why-not
this package with this version?
m
composer why-not
Copy code
docker/sdk cli composer why-not jakoch/phantomjs-installer:^3.0
-->  DEVELOPMENT MODE   
There is no installed package depending on "jakoch/phantomjs-installer" in versions not matching ^3.0
composer version
Copy code
docker/sdk cli composer --version
-->  DEVELOPMENT MODE   
Composer version 2.0.12 2021-04-01 10:14:59
a
@high-pencil-62400 do you have any ideas then?
m
Is there anything else I could do or check? I am currently blocked by this issue 😕
h
If you and your team do not use devvm (vagrant) you can freely remove the module and post-install script from composer.json. It is actually is not used in docker-based setup.
👍 1