Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

m615's avatar
Level 2

Heroku deploy fails because of moontoast math and Nova

I have a laravel 8 application that is also using Nova. I would like to deploy to Heroku. When heroku tries to build I get the follow error about using to man PHP versions ?

Has anyone run into a similar issue and if so, how should I solve this?

 !     Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
			Detected buildpacks: PHP,Node.js
			See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
-----> PHP app detected
-----> Bootstrapping...
-----> Installing platform packages...
 !     ERROR: Failed to install system packages!
 !     
 !     Your platform requirements (for runtimes and extensions) could
 !     not be resolved to an installable set of dependencies, or a
 !     platform package repository was unreachable.
 !     
 !     This usually means that you (or packages you are using) depend
 !     on a combination of PHP versions and/or extensions that are
 !     currently not available on Heroku.
 !     
 !     The following is the full output from the installation attempt:
 !     
 !     > Loading repositories with available runtimes and extensions
 !     > Updating dependencies
 !     > Your requirements could not be resolved to an installable set of packages.
 !     > 
 !     >   Problem 1
 !     >     - Installation request for phpseclib/bcmath_compat 1.0.5 -> satisfiable by phpseclib/bcmath_compat[1.0.5].
 !     >     - phpseclib/phpseclib 2.0.29 requires php >=5.3.3 -> satisfiable by php[7.1.33, 7.2.26, 7.2.27, 7.2.28, 7.2.29, 7.2.30, 7.2.31, 7.2.32, 7.2.33, 7.2.34, 7.3.13, 7.3.14, 7.3.15, 7.3.16, 7.3.17, 7.3.18, 7.3.19, 7.3.20, 7.3.21, 7.3.22, 7.3.23, 7.3.24, 7.3.25, 7.4.10, 7.4.11, 7.4.12, 7.4.13, 7.4.2, 7.4.3, 7.4.4, 7.4.5, 7.4.6, 7.4.7, 7.4.8, 7.4.9, 8.0.0].
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.3.13
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.3.14
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.3.15
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.3.16
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.3.17
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.3.18
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.3.19
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.3.20
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.3.21
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.3.22
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.3.23
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.3.24
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.3.25
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.4.10
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.4.11
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.4.12
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.4.13
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.4.2
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.4.3
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.4.4
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.4.5
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.4.6
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.4.7
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.4.8
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.4.9
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 8.0.0
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.1.33
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.2.26
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.2.27
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.2.28
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.2.29
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.2.30
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.2.31
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.2.32
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.2.33
 !     >     - don't install phpseclib/bcmath_compat 1.0.5|don't install php 7.2.34
 !     >     - Installation request for phpseclib/phpseclib 2.0.29 -> satisfiable by phpseclib/phpseclib[2.0.29].
 !     > 
 !     > Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
 !     
 !     For reference, the following runtimes are currently available:
 !     
 !     PHP:  8.0.0, 7.4.13, 7.4.12, 7.4.11, 7.4.10, 7.4.9, 7.4.8, 
 !     7.4.7, 7.4.6, 7.4.5, 7.4.4, 7.4.3, 7.4.2, 7.3.25, 7.3.24, 
 !     7.3.23, 7.3.22, 7.3.21, 7.3.20, 7.3.19, 7.3.18, 7.3.17, 
 !     7.3.16, 7.3.15, 7.3.14, 7.3.13, 7.2.34, 7.2.33, 7.2.32, 
 !     7.2.31, 7.2.30, 7.2.29, 7.2.28, 7.2.27, 7.2.26, 7.1.33
 !     HHVM: 
 !     
 !     Please verify that all requirements for runtime versions in
 !     'composer.lock' are compatible with the list above, and ensure
 !     all required extensions are available for the desired runtimes.
 !     
 !     When choosing a PHP runtimes and extensions, please also ensure
 !     they are available on your app's stack (heroku-18), and select
 !     a different stack if needed after consulting the article below.
 !     
 !     For a list of supported runtimes & extensions on Heroku, please
 !     refer to: https://devcenter.heroku.com/articles/php-support
 !     Push rejected, failed to compile PHP app.
 !     Push failed
0 likes
1 reply
m615's avatar
Level 2

I was actually able to solve this problem by going into the ./nova composer.json file and updating the moontoast/math package to this.

"moontoast/math": "1.1.2 as 1.99.0",

2 likes

Please or to participate in this conversation.