Search
Items tagged with: 7
Blank pages should have a related Fatal Error in the PHP log.
Uncaught Exception ValueError: "DOMDocument::loadHTML(): Argument #1 ($source) must not be empty" at /../domaincom/src/Model/Item.php line 3558
exception
Uncaught Exception ValueError:
"DOMDocument::loadHTML(): Argument #1 ($source) must not be empty" at /../domaincom/src/Model/Item.php line 3558exception
ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in /../domaincom/src/Model/Item.php:3558
Stack trace:
#0 /../domaincom/src/Model/Item.php(3558): DOMDocument->loadHTML()
#1 /../domaincom/src/Model/Item.php(3481): Friendica\Model\Item::replacePlatformIcon()
#2 /../domaincom/src/Object/Post.php(451): Friendica\Model\Item:😛repareBody()
#3 /../domaincom/src/Object/Thread.php(190): Friendica\Object\Post->getTemplateData()
#4 /../domaincom/src/Content/Conversation.php(666): Friendica\Object\Thread->getTemplateData()
#5 /../domaincom/src/Content/Conversation.php(569): Friendica\Content\Conversation->getThreadList()
#6 /../domaincom/src/Module/Conversation/Network.php(223): Friendica\Content\Conversation->render()
#7 /../domaincom/src/BaseModule.php(236): Friendica\Module\Conversation\Network->content()
#8 /../domaincom/src/App.php(668): Friendica\BaseModule->run()
#9 /../domaincom/index.php(41): Friendica\App->runFrontend()
#10 {main}]
First ever instance crash. Suggestions for avoiding this in the future?
!Friendica Support
I had my first-ever server crash of https://my-place.social. This is in syslog:
2024-11-18T21:34:49.022603-05:00 my-place php: PHP Fatal error: Uncaught mysqli_sql_exception: Too many connections in /var/www/html/src/Database/Database.php:201
2024-11-18T21:34:49.022822-05:00 my-place php: Stack trace:
2024-11-18T21:34:49.022855-05:00 my-place php: #0 /var/www/html/src/Database/Database.php(201): mysqli->__construct()
2024-11-18T21:34:49.022885-05:00 my-place php: #1 /var/www/html/src/Database/Database.php(106): Friendica\Database\Database->connect()
2024-11-18T21:34:49.022911-05:00 my-place php: #2 [internal function]: Friendica\Database\Database->__construct()
2024-11-18T21:34:49.022933-05:00 my-place php: #3 /var/www/html/vendor/level-2/dice/Dice.php(132): ReflectionMethod->invokeArgs()
2024-11-18T21:34:49.022958-05:00 my-place php: #4 /var/www/html/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.022985-05:00 my-place php: #5 /var/www/html/vendor/level-2/dice/Dice.php(247): Dice\Dice->create()
2024-11-18T21:34:49.023014-05:00 my-place php: #6 /var/www/html/vendor/level-2/dice/Dice.php(132): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.023049-05:00 my-place php: #7 /var/www/html/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.023074-05:00 my-place php: #8 /var/www/html/vendor/level-2/dice/Dice.php(247): Dice\Dice->create()
2024-11-18T21:34:49.023100-05:00 my-place php: #9 /var/www/html/vendor/level-2/dice/Dice.php(132): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.023125-05:00 my-place php: #10 /var/www/html/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.023147-05:00 my-place php: #11 /var/www/html/index.php(34): Dice\Dice->create()
2024-11-18T21:34:49.023172-05:00 my-place php: #12 {main}
2024-11-18T21:34:49.023208-05:00 my-place php: thrown in /var/www/html/src/Database/Database.php on line 201
show variables like 'max_connections'; shows 151 max_connections.
I did: SET GLOBAL max_connections = 200;
I also edited /etc/mysql/mariadb.conf.d/50-server.cnf and set max_connections = 200
Is this too high? Too low? Did I do this the correct way?
Thank you!
Thanks!
PHP error log thrown in /src/Database/Database.php on line 191
hi there, I have this message in my php.error.log
what should I do?
I didn't have a look at gitHub
php.error.log Database.php on line 191
thrown in /var/www/html/src/Database/Database.php on line 191[14-Nov-2023 14:15:30 UTC] PHP Fatal error: Uncaught mysqli_sql_exception: Connection refused in /var/www/html/src/Database/Database.php:191
Stack trace:
#0 /var/www/html/src/Database/Database.php(191): mysqli->__construct()
#1 /var/www/html/src/Database/Database.php(97): Friendica\Database\Database->connect()
#2 [internal function]: Friendica\Database\Database->__construct()
#3 /var/www/html/vendor/level-2/dice/Dice.php(132): ReflectionMethod->invokeArgs()
#4 /var/www/html/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
#5 /var/www/html/src/DI.php(98): Dice\Dice->create()
#6 /var/www/html/src/DI.php(66): Friendica\DI::dba()
#7 /var/www/html/src/DI.php(54): Friendica\DI::setCompositeRootDependencyByHand()
#8 /var/www/html/index.php(35): Friendica\DI::init()
#9 {main}
thrown in /var/www/html/src/Database/Database.php on line 191
Platform Info: 2023.05 - stable
Friendica Version: 2023.05 - stableFriendica Source: gitHub
PHP version: 8.1.2-1ubuntu2.14
SQL version: MySQL / MariaDB
memory_limit 256M
4 Core CPU, 8 GB Ram with 300GB NVME Disk
Introduction Not Found Exception
I am getting the following error for a number of pending contacts.
Can you help with the meaining and if anything needs to be done?
Friendica\Network\HTTPException\NotFoundException in /var/www/html/src/BaseRepository.php:156
Stack trace:
#0 /var/www/html/src/Contact/Introduction/Repository/Introduction.php(57): Friendica\BaseRepository->_selectOne()
#1 /var/www/html/src/Contact/Introduction/Repository/Introduction.php(134): Friendica\Contact\Introduction\Repository\Introduction->selectOne()
#2 /var/www/html/src/Model/Contact.php(1210): Friendica\Contact\Introduction\Repository\Introduction->selectForContact()
#3 /var/www/html/src/Module/Contact.php(559): Friendica\Model\Contact:😛hotoMenu()
#4 /var/www/html/src/Module/Directory.php(79): Friendica\Module\Contact::getContactTemplateVars()
#5 /var/www/html/src/BaseModule.php(244): Friendica\Module\Directory->content()
#6 /var/www/html/src/App.php(746): Friendica\BaseModule->run()
#7 /var/www/html/index.php(44): Friendica\App->runFrontend()
#8 {main}
Next Friendica\Contact\Introduction\Exception\IntroductionNotFoundException: There is no Introduction for the contact 676 in /var/www/html/src/Contact/Introduction/Repository/Introduction.php:136
Stack trace:
#0 /var/www/html/src/Model/Contact.php(1210): Friendica\Contact\Introduction\Repository\Introduction->selectForContact()
#1 /var/www/html/src/Module/Contact.php(559): Friendica\Model\Contact:😛hotoMenu()
#2 /var/www/html/src/Module/Directory.php(79): Friendica\Module\Contact::getContactTemplateVars()
#3 /var/www/html/src/BaseModule.php(244): Friendica\Module\Directory->content()
#4 /var/www/html/src/App.php(746): Friendica\BaseModule->run()
#5 /var/www/html/index.php(44): Friendica\App->runFrontend()
#6 {main}
Vorbereitung 1: alias php='/usr/local/php74/bin/php'
Vorbereitung 2: Über Filezilla die Berechtigung für bin/console auf 744 (sonst kommt "permission denied")
Versionstest (falls das was hilft) + Fehler:
bash-4.4$ php -v
PHP 7.4.30 (cli) (built: Jun 14 2022 12:37:00) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with the ionCube PHP Loader + ionCube24 v11.0.1, Copyright (c) 2002-2022, by ionCube Ltd.
with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies
bash-4.4$ bin/console relay
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 /solchefreu.de/httpdocs/friendica/src/App/Page.php on line 128
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 /solchefreu.de/httpdocs/friendica/src/App/Page.php on line 145
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 /solchefreu.de/httpdocs/friendica/src/App/Page.php on line 165
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 /solchefreu.de/httpdocs/friendica/src/App/Page.php on line 182
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 /solchefreu.de/httpdocs/friendica/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 /solchefreu.de/httpdocs/friendica/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 /solchefreu.de/httpdocs/friendica/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 /solchefreu.de/httpdocs/friendica/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 /solchefreu.de/httpdocs/friendica/src/Model/Log/ParsedLogIterator.php on line 180
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /solchefreu.de/httpdocs/friendica/src/Database/Database.php on line 108
Fatal error: Uncaught Exception: Missing database structure config file static/dbstructure.config.php in /solchefreu.de/httpdocs/friendica/src/Database/DBStructure.php:306
Stack trace:
#0 /solchefreu.de/httpdocs/friendica/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 /solchefreu.de/httpdocs/friendica/vendor/level-2/dice/Dice.php(132): ReflectionMethod->invokeArgs(Object(Friendica\Database\Database), Array)
#3 /solchefreu.de/httpdocs/friendica/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}(Array, Array)
#4 /solchefreu.de/httpdocs/friendica/vendor/level-2/dice/Dice.php(247): Dice\Dice->create('Friendica\\Datab...', Array, Array)
#5 /solchefreu.de/httpdocs/friendica/vendor/level-2/dice/Dice.php(149): Dice\Dice->Dice\{closure}(Array, Array)
#6 /solchefreu.de/httpdocs/friendica/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}(Array, Array)
#7 /solchefreu.de/httpdocs/friendica/bin/console.php(36): Dice\Dice->create('Psr\\Log\\LoggerI...')
#8 {main}
thrown in /solchefreu.de/httpdocs/friendica/src/Database/DBStructure.php on line 306
what was the reason for this error when deleting a user?
Exception thrown in /var/www/src/App/BaseURL.php:451
Stack trace:
#0 /var/www/src/BaseModule.php(189): Friendica\App\BaseURL->redirect()
#1 /var/www/src/Module/Admin/Users/Index.php(89): Friendica\BaseModule::checkFormSecurityTokenRedirectOnError()
#2 [internal function]: Friendica\Module\Admin\Users\Index::content()
#3 /var/www/src/App/Page.php(333): call_user_func()
#4 /var/www/src/App/Page.php(390): Friendica\App\Page->initContent()
#5 /var/www/src/App.php(707): Friendica\App\Page->run()
#6 /var/www/index.php(42): Friendica\App->runFrontend()
#7 {main}
I forgot it again...
PHP Error
ist das folgende etwas, was für den RC von Bedeutung sein könnte, oder ist da einfach ein Post nicht ganz in Ordnung gewesen?
PHP Fatal error: Uncaught GuzzleHttp\Exception\TransferException: Could not retrieve headers in /var/www/src/Network/HTTPClient.php:223
Stack trace:
#0 /var/www/src/Protocol/Feed.php(300): Friendica\Network\HTTPClient->finalUrl('https://mastodo...')
#1 /var/www/src/Network/Probe.php(1871): Friendica\Protocol\Feed::import('<?xml version="...')
#2 /var/www/src/Network/Probe.php(1884): Friendica\Network\Probe::feed('https://mastodo...', false)
#3 /var/www/src/Network/Probe.php(757): Friendica\Network\Probe::feed('https://mastodo...')
#4 /var/www/src/Network/Probe.php(357): Friendica\Network\Probe::detect('https://mastodo...', '', 0, Array)
#5 /var/www/src/Model/Contact.php(2048): Friendica\Network\Probe::uri('https://mastodo...', '', 0)
#6 /var/www/src/Worker/UpdateContact.php(35): Friendica\Model\Contact::updateFromProbe(8774)
#7 [internal function]: Friendica\Worker\UpdateContact::execute(8774)
#8 /var/www/src/Core/Worker.php(458): call_user_func_array('Friendica\\Worke...', Array)
in /var/www/src/Network/HTTPClient.php on line 223
Internal Server Error → squeet.me/dfrn_request
'https://squeet.me/dfrn_request/jesuisatirebitpickup&addr=6269747069636b75704066656469766572732e747570616d6261652e636f6d is not a relative path, please use System::externalRedirectTo
Exception thrown in /var/www/virtual/../htdocs/src/App/BaseURL.php:451
Stack trace:
#0 /var/www/virtual/../htdocs/src/Model/Contact.php(2198): Friendica\App\BaseURL->redirect()
#1 /var/www/virtual/../htdocs/mod/follow.php(188): Friendica\Model\Contact::createFromProbe()
#2 /var/www/virtual/../htdocs/mod/follow.php(125): follow_process()
#3 /var/www/virtual/../htdocs/src/LegacyModule.php(90): follow_content()
#4 /var/www/virtual/../htdocs/src/LegacyModule.php(64): Friendica\LegacyModule::runModuleFunction()
#5 [internal function]: Friendica\LegacyModule::content()
#6 /var/www/virtual/../htdocs/src/App/Page.php(332): call_user_func()
#7 /var/www/virtual/../src/App/Page.php(389): Friendica\App\Page->initContent()
#8 /var/www/virtual/../src/App.php(562): Friendica\App\Page->run()
#9 /var/www/virtual/../index.php(40): Friendica\App->runFrontend()
#10 {main}