jitendratvu getting error on php 8.2 version. Error: Fatal error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false in C:\xampp82php\htdocs\community_com\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php on line 70 Could anyone please help out me Thanks
luceos jitendratvu did you run composer update with php 8.2 in commandline, then this error shouldn't happen.
jitendratvu @luceos Yes, run composer update with php 8.2 in command line and still getting same error. Problem 1 - zendframework/zend-httphandlerrunner[1.0.0, ..., 1.1.0] require php 7.1 -> your php version (8.2.0) does not satisfy that requirement. - laminas/laminas-httphandlerrunner[1.0.0, ..., 1.2.0] require php 7.1 -> your php version (8.2.0) does not satisfy that requirement. - laminas/laminas-httphandlerrunner[1.3.0, ..., 1.4.0] require php 7.3 8.0.0 -> your php version (8.2.0) does not satisfy that requirement. - laminas/laminas-httphandlerrunner 1.5.0 requires php 7.3 8.0.0 || 8.1.0 -> your php version (8.2.0) does not satisfy that requirement. - askvortsov/flarum-copy-links v0.1.1 requires flarum/core 0.1.0-beta.8 -> satisfiable by flarum/core[v0.1.0-beta.8, ..., v0.1.0-beta.16]. - flarum/core v0.1.0-beta.16 requires laminas/laminas-httphandlerrunner 1.2.0 -> satisfiable by laminas/laminas-httphandlerrunner[1.2.0, 1.3.0, 1.4.0, 1.5.0]. - flarum/core[v0.1.0-beta.12, ..., v0.1.0-beta.15] require laminas/laminas-httphandlerrunner 1.0 -> satisfiable by laminas/laminas-httphandlerrunner[1.0.0, ..., 1.5.0]. - flarum/core[v0.1.0-beta.8, ..., v0.1.0-beta.11.1] require zendframework/zend-httphandlerrunner 1.0 -> satisfiable by laminas/laminas-httphandlerrunner[1.0.0, ..., 1.5.0], zendframework/zend-httphandlerrunner[1.0.0, 1.0.1, 1.0.2, 1.1.0]. - Root composer.json requires askvortsov/flarum-copy-links 0.1.1 -> satisfiable by askvortsov/flarum-copy-links[v0.1.1].
CyberGene Is there any advantage in using 8.2 vs 8.1? I see I can use 8.2 on my hosting but wondering if it will be worth it?
jitendratvu CyberGene , I need to use 8.2 version, because other applications are working on same server with PHP 8.2. and this is client side requirement to run application on PHP 8.2 version.
jitendratvu @luceos composer update command with PHP 8.2 is not working, As i mentioned above the command line errors. Please have a look.
jitendratvu Problem 1 - laminas/laminas-httphandlerrunner 1.2.0 requires php ^7.1 -> your php version (8.2.0) does not satisfy that requirement. - laminas/laminas-httphandlerrunner[1.3.0, ..., 1.4.0] require php ^7.3 || ~8.0.0 -> your php version (8.2.0) does not satisfy that requirement. - laminas/laminas-httphandlerrunner 1.5.0 requires php ^7.3 || ~8.0.0 || ~8.1.0 -> your php version (8.2.0) does not satisfy that requirement. - flarum/core[v1.6.0, ..., v1.6.2] require laminas/laminas-httphandlerrunner ^1.2.0 -> satisfiable by laminas/laminas-httphandlerrunner[1.2.0, 1.3.0, 1.4.0, 1.5.0]. - Root composer.json requires flarum/core ^1.6 -> satisfiable by flarum/core[v1.6.0, v1.6.1, v1.6.2].
jitendratvu Hi luceos, getting below error with above command. Is flarum support PHP 8.2 version? Problem 1 - doctrine/dbal v2.9.3 requires php ^7.1 -> your php version (8.2.0) does not satisfy that requirement. - flarum/core v0.1.0-beta.12 requires doctrine/dbal ^2.7 -> satisfiable by doctrine/dbal[v2.9.3]. - flarum/core is locked to version v0.1.0-beta.12 and an update of this package was not requested.
luceos jitendratvu yes it does. Please share your composer.json. You can probably run composer install with --ignore-platform-reqs
jitendratvu { "name": "flarum/flarum", "description": "Delightfully simple forum software.", "type": "project", "keywords": [ "forum", "discussion" ], "homepage": "https://flarum.org/", "license": "MIT", "authors": [ { "name": "Franz Liedke", "email": "franz@develophp.org" }, { "name": "Daniel Klabbers", "email": "daniel@klabbers.email", "homepage": "https://luceos.com" }, { "name": "David Sevilla Martin", "email": "me+flarum@datitisev.me", "homepage": "https://datitisev.me" }, { "name": "Clark Winkelmann", "email": "clark.winkelmann@gmail.com", "homepage": "https://clarkwinkelmann.com" }, { "name": "Matthew Kilgore", "email": "matthew@kilgore.dev" } ], "support": { "issues": "https://github.com/flarum/core/issues", "source": "https://github.com/flarum/flarum", "docs": "https://flarum.org/docs/" }, "require": { "askvortsov/flarum-copy-links": "^0.1.1", "ejin/upload-video": "^0.1.4", "flagrow/upload": "*", "flarum/approval": "^0.1.0@beta", "flarum/auth-facebook": "^0.1.0", "flarum/auth-github": "^0.1.0", "flarum/auth-twitter": "^0.1.0", "flarum/bbcode": "^0.1.0", "flarum/core": "^0.1.0", "flarum/emoji": "^0.1.0", "flarum/flags": "^0.1.0", "flarum/lang-english": "^0.1.0", "flarum/likes": "^0.1.0", "flarum/lock": "^0.1.0", "flarum/markdown": "^0.1.0", "flarum/mentions": "^0.1.0", "flarum/pusher": "^0.1.0", "flarum/statistics": "^0.1.0", "flarum/sticky": "^0.1.0", "flarum/subscriptions": "^0.1.0", "flarum/suspend": "^0.1.0", "flarum/tags": "^0.1.0", "fof/links": "^0.3.0", "fof/share-social": "^0.1.2", "reflar/polls": "^1.3", "sijad/flarum-ext-links": "^0.1.0@beta", "tpokorra/flarum-ext-post-notification": "^0.3.6", "zhujia18/chevereto": "^0.1.2" }, "config": { "preferred-install": "dist", "sort-packages": true, "allow-plugins": { "kylekatarnls/update-helper": true } }, "minimum-stability": "beta", "prefer-stable": true }
jitendratvu Hi @luceos, After running below upgradation command, still getting below error: composer update with -W composer update --ignore-platform-reqs Deprecated: Return type of Illuminate\Container\Container::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/community.tvunetworks.com.cn/vendor/illuminate/container/Container.php on line 1209 Could you please help me for this. Thank You