terminal42 / contao-url-rewrite

Provides a back end module in Contao that allows you to specify url rewrites that are added to the Symfony Route collection
MIT License
15 stars 4 forks source link

Installation with Manager (C4.9.41) stops #41

Closed pixlemedia closed 1 year ago

pixlemedia commented 1 year ago

I`ve tried to install the latest version 1.72 but contao manager aborts installation:

composer update terminal42/contao-url-rewrite contao/conflicts --no-install

Resolving dependencies using Composer Cloud v3.6.0-1-g9d9036c [6.6MiB/0.20s] Loading composer repositories with package information [64.6MiB/7.54s] Updating dependencies [82.2MiB/7.80s] Your requirements could not be resolved to an installable set of packages. [82.2MiB/7.81s]

Problem 1

Would be great to know, how to fix this. Any ideas?

Toflar commented 1 year ago

You cannot install 1.7 as this is only for 4.13 and 5.0. You can use 1.6 instead.

pixlemedia commented 1 year ago

Thanks for your support. I tried to follow your recommandation but:

`poser install $ /Applications/MAMP/bin/php/php7.4.33/bin/php -q -dmax_execution_time=0 -dmemory_limit=-1 -ddisplay_errors=0 -ddisplay_startup_errors=0 -derror_reporting=0 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Berlin /Users/bjarnerubin/Sites/localhost2/nissen-massivhaus.de/webseiten/web/contao-manager.phar.php composer install --no-dev --no-progress --no-ansi --no-interaction --optimize-autoloader Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Package operations: 3 installs, 0 updates, 0 removals

cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--] Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception In ScriptHandler.php line 97:

An error occurred while executing the "cache:warmup" command: 16:38:32 CRIT
ICAL [console] Error thrown while running command "cache:warmup --env=prod
--no-ansi". Message: "Cannot call constructor" ["exception" => Error { …},
"command" => "cache:warmup --env=prod --no-ansi","message" => "Cannot call
constructor"]

In UrlRewriteLoader.php line 42:

Cannot call constructor                                                    

cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--
verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--en
v ENV] [--]

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [...]

Process terminated with exit code 1

Result: General error`

Toflar commented 1 year ago

Why are you installing 1.6.0 and not 1.6.6? Just use ^1.6 instead of ^1.7 and you should be good :)

pixlemedia commented 1 year ago

Legitimate question ;) latest 1.6 version works just fine, thanks alot! Handling looks advanced at first glance. I just like to use your extension to remove WWW (if entered) because my htaccess does not follow my rules given;) Can you shorty explain what to do in order to fit my needs?

Toflar commented 1 year ago

I wouldn't use that bundle for that, it makes no sense. Feel free to use any of the community support options - I'm sure you'll get help regarding your .htaccess as well :) https://to.contao.org/support