Skip to content

PHP 8.1 errors running console dbstructure update #11499

@xukashi

Description

@xukashi
  • I have searched open and closed issues for duplicates

Actual Result:

Fatal error: Uncaught Exception: Missing database structure config file static/dbstructure.config.php in /fr.deveth0.de/src/Database/DBStructure.php:306

Expected Result:

bash-4.4$ /usr/local/php81/bin/php bin/console.php dbstructure update
 
Deprecated: Return type of Friendica\App\Page::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /fr.deveth0.de/src/App/Page.php on line 102
 
Deprecated: Return type of Friendica\App\Page::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /fr.deveth0.de/src/App/Page.php on line 119
 
Deprecated: Return type of Friendica\App\Page::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /fr.deveth0.de/src/App/Page.php on line 139
 
Deprecated: Return type of Friendica\App\Page::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /fr.deveth0.de/src/App/Page.php on line 156
 
Deprecated: Return type of Friendica\Model\Log\ParsedLogIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /fr.deveth0.de/src/Model/Log/ParsedLogIterator.php on line 205
 
Deprecated: Return type of Friendica\Model\Log\ParsedLogIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /fr.deveth0.de/src/Model/Log/ParsedLogIterator.php on line 163
 
Deprecated: Return type of Friendica\Model\Log\ParsedLogIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /fr.deveth0.de/src/Model/Log/ParsedLogIterator.php on line 194
 
Deprecated: Return type of Friendica\Model\Log\ParsedLogIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /fr.deveth0.de/src/Model/Log/ParsedLogIterator.php on line 216
 
Deprecated: Return type of Friendica\Model\Log\ParsedLogIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /fr.deveth0.de/src/Model/Log/ParsedLogIterator.php on line 180
 
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /fr.deveth0.de/src/Database/Database.php on line 108
 
Fatal error: Uncaught Exception: Missing database structure config file static/dbstructure.config.php in /fr.deveth0.de/src/Database/DBStructure.php:306
Stack trace:
#0 /fr.deveth0.de/src/Database/Database.php(87): Friendica\Database\DBStructure::definition('/var/www/vhosts...', false)
#1 [internal function]: Friendica\Database\Database->__construct(Object(Friendica\Core\Config\ValueObject\Cache), Object(Friendica\Util\Profiler), Object(Psr\Log\NullLogger))
#2 /fr.deveth0.de/vendor/level-2/dice/Dice.php(132): ReflectionMethod->invokeArgs(Object(Friendica\Database\Database), Array)
#3 /fr.deveth0.de/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}(Array, Array)
#4 /fr.deveth0.de/vendor/level-2/dice/Dice.php(247): Dice\Dice->create('Friendica\\Datab...', Array, Array)
#5 /fr.deveth0.de/vendor/level-2/dice/Dice.php(149): Dice\Dice->Dice\{closure}(Array, Array)
#6 /fr.deveth0.de/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}(Array, Array)
#7 /fr.deveth0.de/bin/console.php(36): Dice\Dice->create('Psr\\Log\\LoggerI...')
#8 {main}
  thrown in /fr.deveth0.de/src/Database/DBStructure.php on line 306
bash-4.4$ 

Platform Info

Friendica Version: 2022.03

Friendica Source: https://github.com/friendica/friendica/releases

PHP version: 8.1.5

SQL version: MySQL, v8.0.29

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions