spatie/sitemap wont install in laravel8 on godaddy server - laravel

i have made ecommerce website in laravel 8. i am trying to make sitemap.xml using spatie/sitemap package.
https://github.com/spatie/laravel-sitemap
but it does not install in my godaddy hosting.
the error is as follows:
****Using version ^5.8 for spatie/laravel-sitemap
./composer.json has been updated
Running composer update spatie/laravel-sitemap
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- spatie/browsershot[3.33.1, ..., 3.40.2] require spatie/image ^1.5.3 -> satisfiable by spatie/image[1.5.3, ..., 1.10.2].
- spatie/crawler[4.1.0, ..., 4.6.5] require guzzlehttp/guzzle ^6.3 -> found guzzlehttp/guzzle[6.3.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.0.1).
- spatie/laravel-sitemap[5.9.0, ..., 5.9.2] require php ^7.4|^8.0 -> your php version (7.3.27) does not satisfy that requirement.
- spatie/browsershot[3.40.3, ..., 3.44.0] require php ^7.4|^8.0 -> your php version (7.3.27) does not satisfy that requirement.
- spatie/image[1.5.3, ..., 1.10.2] require ext-exif * -> it is missing from your system. Install or enable PHP's exif extension.
- spatie/browsershot[3.14.0, ..., 3.16.0] require symfony/process ^3.0 -> found symfony/process[v3.0.0-BETA1, ..., 3.4.x-dev] but the package is fixed to v5.2.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- spatie/browsershot[3.16.1, ..., 3.26.0] require symfony/process ^3.0|^4.0 -> found symfony/process[v3.0.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v5.2.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- spatie/browsershot[3.26.1, ..., 3.33.0] require symfony/process ^4.2 -> found symfony/process[v4.2.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v5.2.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- spatie/laravel-sitemap 5.8.0 requires spatie/crawler ^4.1.0 -> satisfiable by spatie/crawler[4.1.0, ..., v4.x-dev].
- spatie/crawler[4.6.6, ..., v4.x-dev] require spatie/browsershot ^3.14 -> satisfiable by spatie/browsershot[3.14.0, ..., 3.44.0].
- Root composer.json requires spatie/laravel-sitemap ^5.8 -> satisfiable by spatie/laravel-sitemap[5.8.0, 5.9.0, 5.9.1, 5.9.2].
To enable extensions, verify that they are enabled in your .ini files:
- /opt/cpanel/ea-php73/root/etc/php.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-bcmath.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-calendar.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-ctype.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-curl.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-dom.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-fileinfo.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-ftp.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-gd.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-iconv.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-imap.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-intl.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-json.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-mbstring.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-mysqlnd.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-pdo.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-phar.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-posix.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-simplexml.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-sockets.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-sqlite3.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-tokenizer.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-xml.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-xmlwriter.ini
- /opt/cpanel/ea-php73/root/etc/php.d/20-xsl.ini
- /opt/cpanel/ea-php73/root/etc/php.d/30-mysqli.ini
- /opt/cpanel/ea-php73/root/etc/php.d/30-pdo_mysql.ini
- /opt/cpanel/ea-php73/root/etc/php.d/30-pdo_sqlite.ini
- /opt/cpanel/ea-php73/root/etc/php.d/30-wddx.ini
- /opt/cpanel/ea-php73/root/etc/php.d/30-xmlreader.ini
- /opt/cpanel/ea-php73/root/etc/php.d/zzzzzzz-pecl.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.****
can anybody help me..i am struggling to get it done.
thank you

I figured out what the problem was, in case anybody else is struggling.
You must have php version 7.4 or greater.
Install PHP extension exif
Doing both these solved my problem.

Related

Trying to configure MAMP for Magento

I'm working to install Magento 2 on my Mac so I can develop with JetBrains PhpStorm and exchange with my company's server.
I've got MAMP installed and but in working to install Magento 2.3.5-p1, I needs some php extensions set and I'm not certain how to do this.
I need intl, ext-zip and possibly others on. This is what I'm seeing:
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.3.5-p1
Creating a "magento/project-community-edition=2.3.5-p1" project at "./project-community-edition"
Installing magento/project-community-edition (2.3.5-p1)
Installing magento/project-community-edition (2.3.5-p1): Extracting archive
Created project in /Applications/MAMP/htdocs/project-community-edition
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires magento/product-community-edition 2.3.5-p1 -> satisfiable by magento/product-community-edition[2.3.5-p1].
- magento/product-community-edition 2.3.5-p1 requires ext-intl * -> it is missing from your system. Install or enable PHP's intl extension.
Problem 2
- Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
- dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 3
- magento/magento2-functional-testing-framework[2.6.4, ..., 2.6.6] require php-webdriver/webdriver ^1.8.0 -> satisfiable by php-webdriver/webdriver[1.8.0, ..., 1.10.0].
- php-webdriver/webdriver[1.8.0, ..., 1.10.0] require ext-zip * -> it is missing from your system. Install or enable PHP's zip extension.
- Root composer.json requires magento/magento2-functional-testing-framework ~2.6.4 -> satisfiable by magento/magento2-functional-testing-framework[2.6.4, 2.6.5, 2.6.6].
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
Thanks.

Can't install/update modules on Drupal 8.9.6 with composer 2.0

I'm trying to install a module on a Drupal 8.9.6 using composer 2.0 but I get the next error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- cweagans/composer-patches 1.6.7 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- drupal/varbase_heroslider_media 7.13.0 requires cweagans/composer-patches ~1.0 -> satisfiable by cweagans/composer-patches[1.6.7].
- drupal/varbase_heroslider_media is locked to version 7.13.0 and an update of this package was not requested.
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
Then, I've tried to update cweagans/composer-patches to 1.7 because this issue was solved here. But I get the next error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- drupal/drupal-library-installer-plugin 0.3 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- drupal/varbase_heroslider_media 7.13.0 requires drupal/drupal-library-installer-plugin ^0.3 -> satisfiable by drupal/drupal-library-installer-plugin[0.3].
- drupal/varbase_heroslider_media is locked to version 7.13.0 and an update of this package was not requested.
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
Ok, then, I've tried to update drupal/drupal-library-installer-plugin I get again the first error. It is a circle and I can't update Drupal.
How could I do it?
drupal/drupal-library-installer-plugin has not seen any updates since more than five years(!). Either search for an alternative, or downgrade Composer to v1

Problem in installing elasticsearch for Laravel

When I tried to install Elasticsearch for my Laravel instance using the following command:
composer require elasticsearch/elasticsearch
I got this error:
Problem 1
- elasticsearch/elasticsearch v7.6.0 requires guzzlehttp/ringphp dev-fork-elasticsearch -> no matching package found.
- tamayo/laravel-scout-elastic 5.0.0 requires elasticsearch/elasticsearch ^5.0 -> satisfiable by
elasticsearch/elasticsearch[5.0.x-dev].
- tamayo/laravel-scout-elastic 5.0.0 requires elasticsearch/elasticsearch ^5.0 -> satisfiable by
elasticsearch/elasticsearch[5.0.x-dev].
- tamayo/laravel-scout-elastic 5.0.0 requires elasticsearch/elasticsearch ^5.0 -> satisfiable by
elasticsearch/elasticsearch[5.0.x-dev].
- Can only install one of: elasticsearch/elasticsearch[v7.6.1, 5.0.x-dev].
- Installation request for elasticsearch/elasticsearch ^7.6 -> satisfiable by elasticsearch/elasticsearch[v7.6.0, v7.6.1].
- Installation request for tamayo/laravel-scout-elastic ^5.0 -> satisfiable by tamayo/laravel-scout-elastic[5.0.0].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting see
https://getcomposer.org/doc/04-schema.md#minimum-stability for more
details.
- It's a private package and you forgot to add a custom repository to find it
Read https://getcomposer.org/doc/articles/troubleshooting.md for
further common problems.
Installation failed, reverting ./composer.json to its original
content.
then I tried to install the package mentioned in the error using the following command:
composer require guzzlehttp/ringphp
and I got the following warning:
Package guzzlehttp/ringphp is abandoned, you should avoid using it. No
replacement was suggested. Package guzzlehttp/streams is abandoned,
you should avoid using it. No replacement was suggested
Then I tried to install it again, and I got the same error.
What can I do to address the problem?
Please simply try installing it again - according to Packagist, there is a version 7.6.1 available that does not depend on such packages any more. This is something you can also find on https://github.com/elastic/elasticsearch-php/releases

Missing PHP extension when installing Laravel on Mac

I am trying to install laravel on mac using terminal, but I am getting this error. I have php version 7.3 and the latest version of composer. How do I download the php exstensions using terminal on Mac.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/installer v2.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- laravel/installer v2.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- laravel/installer v2.0.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- laravel/installer v2.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- Installation request for laravel/installer ^2.0 -> satisfiable by laravel/installer[v2.0.0, v2.0.1].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/php5/lib/php.ini
- /usr/local/php5/php.d/10-extension_dir.ini
- /usr/local/php5/php.d/20-extension-opcache.ini
- /usr/local/php5/php.d/40-curl.ini
- /usr/local/php5/php.d/40-openssl.ini
- /usr/local/php5/php.d/50-extension-apcu.ini
- /usr/local/php5/php.d/50-extension-curl.ini
- /usr/local/php5/php.d/50-extension-gmp.ini
- /usr/local/php5/php.d/50-extension-igbinary.ini
- /usr/local/php5/php.d/50-extension-imap.ini
- /usr/local/php5/php.d/50-extension-intl.ini
- /usr/local/php5/php.d/50-extension-mcrypt.ini
- /usr/local/php5/php.d/50-extension-mongodb.ini
- /usr/local/php5/php.d/50-extension-mssql.ini
- /usr/local/php5/php.d/50-extension-pdo_pgsql.ini
- /usr/local/php5/php.d/50-extension-pgsql.ini
- /usr/local/php5/php.d/50-extension-propro.ini
- /usr/local/php5/php.d/50-extension-raphf.ini
- /usr/local/php5/php.d/50-extension-readline.ini
- /usr/local/php5/php.d/50-extension-redis.ini
- /usr/local/php5/php.d/50-extension-xsl.ini
- /usr/local/php5/php.d/99-liip-developer.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
Was recently experiencing the same issue. This is what fixed it for me:
download PHP from brew (brew install php)
make system use that version of PHP instead of the pre-installed PHP
edit ~/.zshrc or ~/.bashrc to add the following:
export PATH="/usr/local/opt/php#7.3/bin:$PATH"
export PATH="/usr/local/opt/php#7.3/sbin:$PATH"
Then run
source ~/.zshrc
or
source ~/.bashrc
After I did that Laravel installed with no issues!

Composer update exceptions eg requires omnipay/common

I have just run
$ composer self-update
on Windows 7, but when I run
$ composer update
to update dependencies I get the following messages:
Loading composer repositories with package information
Updating dependencies (including require-dev)
[Composer\DependencyResolver\SolverProblemsException]
Problem 1
- Installation request for laravel/framework 5.4.* -> satisfiable by la
ravel/framework[5.4.x-dev].
- laravel/framework 5.4.x-dev requires doctrine/inflector ~1.1.0 -> no
matching package found.
Problem 2
- Installation request for omnipay/omnipay 2.* -> satisfiable by omnipa
y/omnipay[2.3.x-dev].
- omnipay/omnipay 2.3.x-dev requires omnipay/common ~2.3 -> no matching
package found.
Problem 3
- Installation request for omnipay/stripe ~2.0 -> satisfiable by omnipa
y/stripe[V2.4.7].
- omnipay/stripe V2.4.7 requires omnipay/common ~2.0 -> no matching pac
kage found.
Problem 4
- Installation request for omnipay/paypal ~2.0 -> satisfiable by omnipa
y/paypal[v2.6.3].
- omnipay/paypal v2.6.3 requires omnipay/common ~2.0 -> no matching pac
kage found.
Problem 5
- Installation request for omnipay/mollie 3.* -> satisfiable by omnipay
/mollie[3.2.x-dev].
- omnipay/mollie 3.2.x-dev requires omnipay/common ~2.2 -> no matching
package found.
Problem 6
- laravel/framework 5.4.x-dev requires doctrine/inflector ~1.1.0 -> no
matching package found.
- laravelcollective/html 5.4.x-dev requires illuminate/http 5.4.* -> sa
tisfiable by laravel/framework[5.4.x-dev].
- Installation request for laravelcollective/html * -> satisfiable by l
aravelcollective/html[5.4.x-dev].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to you
r minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for mor
e details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further
common problems.
In particular I want to update omnipay/stripe. My composer.json includes the following in its require section for omnipay:
"omnipay/omnipay": "2.*",
"omnipay/stripe": "~2.0",
"omnipay/common": "*",
Also, the minimum stability is set to dev:
"minimum-stability": "dev"
To try and solve the first error that refers to Laravel, I've tried adding "doctrine/inflector": "*" to the require section of composer.json and also deleted the composer.lock file, but an error says the package can't be found. This post seems to suggest that doctrine requires PHP 7 with Laravel 5.4 so maybe that's the issue as I'm running PHP 5.6
Seems it is an issue relating to Laravel because if I remove "laravel/framework": "5.4.*" from composer.json then the other updates work ok without error.

Resources