Welcome Guest, Not a member yet? Register   Sign In
v4.3.0 released
#11

(This post was last modified: 01-11-2023, 12:06 AM by luckmoshy.)

Code:
C:\xampp\htdocs\allwebdevelopers\jabeth
λ php spark serve

Fatal error: Uncaught Error: Call to undefined method Composer\InstalledVersions::getAllRawData() in C:\xampp\htdocs\allwebdevelopers\jabeth\vendor\codeigniter4\framework\system\Autoloader\Autoloader.php:376
Stack trace:
#0 C:\xampp\htdocs\allwebdevelopers\jabeth\vendor\codeigniter4\framework\system\Autoloader\Autoloader.php(143): CodeIgniter\Autoloader\Autoloader->loadComposerNamespaces(Object(Composer\Autoload\ClassLoader), Array)
#1 C:\xampp\htdocs\allwebdevelopers\jabeth\vendor\codeigniter4\framework\system\Autoloader\Autoloader.php(125): CodeIgniter\Autoloader\Autoloader->loadComposerInfo(Object(Config\Modules))
#2 C:\xampp\htdocs\allwebdevelopers\jabeth\vendor\codeigniter4\framework\system\bootstrap.php(105): CodeIgniter\Autoloader\Autoloader->initialize(Object(Config\Autoload), Object(Config\Modules))
#3 C:\xampp\htdocs\allwebdevelopers\jabeth\spark(75): require('C:\\xampp\\htdocs...')
#4 {main}
  thrown in C:\xampp\htdocs\allwebdevelopers\jabeth\vendor\codeigniter4\framework\system\Autoloader\Autoloader.php on line 376


Code:
C:\xampp\htdocs\allwebdevelopers\jabeth
λ composer --version
Composer version 2.0.12 2021-04-01 10:14:59

C:\xampp\htdocs\allwebdevelopers\jabeth
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply
#12

@luckmoshy
Please show the result of the following command:
Code:
$ composer --version
And your PHP version?

Remove vendor/ directory, and run composer update again.
Reply
#13

(01-11-2023, 12:04 AM)kenjis Wrote: @luckmoshy
Please show the result of the following command:
Code:
$ composer --version
And your PHP version?

Remove vendor/ directory, and run composer update again.

I think is php V???@kenji!!!!

Code:
C:\xampp\htdocs\allwebdevelopers\jabeth
λ php --version
PHP 7.4.19 (cli) (built: May  4 2021 14:24:38) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

C:\xampp\htdocs\allwebdevelopers\jabeth
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply
#14

(This post was last modified: 01-11-2023, 12:13 AM by kenjis.)

@luckmoshy Aren't you using Composer?

You are using Composer. You installed CI via Composer.
Code:
vendor\codeigniter4\framework\system\Autoloader\Autoloader.php
Reply
#15

(This post was last modified: 01-11-2023, 01:03 AM by luckmoshy.)

(01-11-2023, 12:11 AM)kenjis Wrote: @luckmoshy Aren't you using Composer?

You are using Composer. You installed CI via Composer.
Code:
vendor\codeigniter4\framework\system\Autoloader\Autoloader.php

I always use composer to CI but this is my first troubleshooting I have different localhost Laragon,xamper,wamper all failed with this critical issue

Code:
C:\laragon\www
λ composer check
Checking platform requirements for packages in the vendor dir
ext-ctype      7.4.19      success
ext-dom        20031129    success
ext-intl      7.4.19      success
ext-json      7.4.19      success
ext-libxml    7.4.19      success
ext-mbstring  7.4.19      success
ext-phar      7.4.19      success
ext-tokenizer  7.4.19      success
ext-xml        7.4.19      success
ext-xmlwriter  7.4.19      success
php            7.4.19      success

C:\laragon\www
λ


Code:
This is in live give this This page isn’t working https://jabethafricasafaris.com is currently unable to handle this request.
HTTP ERROR 500
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply
#16

@luckmoshy
Thank you. You are using PHP 7.4.19 and Composer 2.0.12.

This does not help?
Remove vendor/ directory, and run composer update again.
Reply
#17

(01-11-2023, 01:11 AM)luckmoshy Wrote: It is working ok but with normal downloading but with composer it does not why ?????!!!!!!

It seems a bug in Composer. The method does not exist.

> Call to undefined method Composer\InstalledVersions::getAllRawData()

But I cannot reproduce the error.
Reply
#18

(This post was last modified: 01-11-2023, 03:13 AM by kenjis.)

(01-10-2023, 05:21 PM)kenjis Wrote:
(01-10-2023, 09:02 AM)Uffe Wrote: Hi,
Updated with composer from CI 4.2.12 to CI 4.3.0 and gets a fatal error.

Fatal error: Uncaught Error: Call to undefined method Composer\InstalledVersions::getAllRawData() in C:\wamp64\www\dm06\vendor\codeigniter4\framework\system\Autoloader\Autoloader.php on line 376

Please show the result of the following command:
Code:
$ composer --version
And your PHP version?

Remove vendor/ directory, and run composer update.

Thanks for the info!
I use Composer version 2.0.11 and PHP version 8.1.11 and tried "Remove vendor/ directory, and run composer update.", but same problem.

I then updated Composer to the latest version 2.5.1 and did the steps above including the instructions for Upgrading from 4.2.9 to 4.3.0.

I now have another Fatal error - Fatal error: Uncaught Error: Call to a member function run() on int in C:\wamp64\www\my_ci4\public\index.php:44 Stack trace: #0 C:\wamp64\www\my_ci4\vendor\codeigniter4\framework\system\Commands\Server\rewrite.php(47): require_once() #1 {main} thrown in C:\wamp64\www\my_ci4\public\index.php on line 44

Upgrading from 4.2.9 to 4.3.0
Reply
#19

The error is the same as https://stackoverflow.com/questions/7251...o-a-member
Reply
#20

(This post was last modified: 01-11-2023, 04:09 AM by nc03061981.)

Dear,

After run command: composer update --no-dev
---> framework removed

Code:
composer update --no-dev
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Lock file operations: 37 installs, 18 updates, 2 removals
  - Removing fzaninotto/faker (dev-master 5ffe7db)
  - Removing phpunit/php-token-stream (4.0.4)
  - Locking codeigniter/coding-standard (v1.7.1)
  - Locking composer/pcre (3.1.0)
  - Locking composer/semver (3.3.2)
  - Locking composer/xdebug-handler (3.0.3)
  - Locking doctrine/annotations (1.14.2)
  - Locking doctrine/deprecations (v1.0.0)
  - Upgrading doctrine/instantiator (1.4.1 => 1.5.0)
  - Locking doctrine/lexer (2.1.0)
  - Locking fakerphp/faker (v1.21.0)
  - Locking friendsofphp/php-cs-fixer (v3.13.0)
  - Locking nexusphp/cs-config (v3.8.0)
  - Locking nikic/php-parser (v4.15.2)
  - Upgrading phpunit/php-code-coverage (7.0.15 => 9.2.23)
  - Upgrading phpunit/php-file-iterator (2.0.5 => 3.0.6)
  - Locking phpunit/php-invoker (3.1.1)
  - Upgrading phpunit/php-text-template (1.2.1 => 2.0.4)
  - Upgrading phpunit/php-timer (2.1.3 => 5.0.3)
  - Upgrading phpunit/phpunit (8.5.31 => 9.5.27)
  - Locking predis/predis (v2.0.3)
  - Locking psr/cache (3.0.0)
  - Locking psr/container (2.0.2)
  - Locking psr/event-dispatcher (1.0.0)
  - Locking sebastian/cli-parser (1.0.1)
  - Locking sebastian/code-unit (1.0.8)
  - Upgrading sebastian/code-unit-reverse-lookup (1.0.2 => 2.0.3)
  - Upgrading sebastian/comparator (3.0.5 => 4.0.8)
  - Locking sebastian/complexity (2.0.2)
  - Upgrading sebastian/diff (3.0.3 => 4.0.4)
  - Upgrading sebastian/environment (4.2.4 => 5.1.4)
  - Upgrading sebastian/exporter (3.1.5 => 4.0.5)
  - Upgrading sebastian/global-state (3.0.2 => 5.0.5)
  - Locking sebastian/lines-of-code (1.0.3)
  - Upgrading sebastian/object-enumerator (3.0.4 => 4.0.4)
  - Upgrading sebastian/object-reflector (1.1.2 => 2.0.4)
  - Upgrading sebastian/recursion-context (3.0.1 => 4.0.4)
  - Upgrading sebastian/resource-operations (2.0.2 => 3.0.3)
  - Upgrading sebastian/type (1.1.4 => 3.2.0)
  - Upgrading sebastian/version (2.0.1 => 3.0.2)
  - Locking symfony/console (v6.0.17)
  - Locking symfony/deprecation-contracts (v3.0.2)
  - Locking symfony/event-dispatcher (v6.0.17)
  - Locking symfony/event-dispatcher-contracts (v3.0.2)
  - Locking symfony/filesystem (v6.0.13)
  - Locking symfony/finder (v6.0.17)
  - Locking symfony/options-resolver (v6.0.3)
  - Locking symfony/polyfill-ctype (v1.27.0)
  - Locking symfony/polyfill-intl-grapheme (v1.27.0)
  - Locking symfony/polyfill-intl-normalizer (v1.27.0)
  - Locking symfony/polyfill-mbstring (v1.27.0)
  - Locking symfony/polyfill-php80 (v1.27.0)
  - Locking symfony/polyfill-php81 (v1.27.0)
  - Locking symfony/process (v6.0.11)
  - Locking symfony/service-contracts (v3.0.2)
  - Locking symfony/stopwatch (v6.0.13)
  - Locking symfony/string (v6.0.17)
Writing lock file
Installing dependencies from lock file
Package operations: 0 installs, 0 updates, 1 removal
  - Removing codeigniter4/framework (v4.2.10)
10 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
1 package you are using is looking for funding.
Use the `composer fund` command to find out more!
Class CodeIgniter\ComposerScripts is not autoloadable, can not call post-update-cmd script

Framework removed and can not run project?????

How to update from version: 4.2.10 to 4.2.11 with command: composer update --no-dev

Learning CI4 from my works, from errors and how to fix bugs in the community

Love CI & Thanks CI Teams

Reply




Theme © iAndrew 2016 - Forum software by © MyBB