Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2024.03] Fatal Errors #13763

Closed
tobiasd opened this issue Dec 24, 2023 · 16 comments
Closed

[2024.03] Fatal Errors #13763

tobiasd opened this issue Dec 24, 2023 · 16 comments
Labels
Milestone

Comments

@tobiasd
Copy link
Collaborator

tobiasd commented Dec 24, 2023

Please report here any PHP Fatal error message obtained running the 2023.12 stable or 2024.03-dev/rc versions.

Replaces #13156

@tobiasd tobiasd added the Bug label Dec 24, 2023
@tobiasd tobiasd added this to the 2024.03 milestone Dec 24, 2023
@tobiasd tobiasd pinned this issue Dec 24, 2023
@Raroun
Copy link

Raroun commented Dec 28, 2023

Again I had to block a contact server wide, causing endless loops.

https://mastodon.social/@persagen

Post
https://mastodon.social/@persagen/110697509011152834
is referencing to post
https://mastodon.social/@persagen/110662765514723258

and vice versa.

@MrPetovan
Copy link
Collaborator

Thank you for the report, it looks like we only handle same-posts self-references at the moment.

@Friendlica
Copy link

Friendlica commented Dec 29, 2023

latest dev

PHP Fatal error:  Uncaught mysqli_sql_exception: Connection refused in /src/Database/Database.php:191
Stack trace:
#0 /src/Database/Database.php(191): mysqli->__construct()
#1 /src/Database/Database.php(97): Friendica\Database\Database->connect()
#2 [internal function]: Friendica\Database\Database->__construct()
#3 /vendor/level-2/dice/Dice.php(132): ReflectionMethod->invokeArgs()
#4 /vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
#5 /vendor/level-2/dice/Dice.php(247): Dice\Dice->create()
#6 /vendor/level-2/dice/Dice.php(132): Dice\Dice->Dice\{closure}()
#7 /vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
#8 /vendor/level-2/dice/Dice.php(247): Dice\Dice->create()
#9 /vendor/level-2/dice/Dice.php(132): Dice\Dice->Dice\{closure}()
#10 /vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
#11 /bin/worker.php(59): Dice\Dice->create()
#12 {main}
  thrown in /src/Database/Database.php on line 191

@MrPetovan
Copy link
Collaborator

Please check your database credentials on the Friendica side in the config/local.config.php file, then the database credentials in the database itself (reference table is mysql.user) including the host part, then the database utilization, raising the maximum connection limit if needed.

@haheute
Copy link

haheute commented Jan 9, 2024

I hope this is okay to add here. I currently use the dev version, but it was with rc , too.

I still see many:
Fatal Error (E_ERROR): Allowed memory size of 536870912 bytes exhausted (tried to allocate 94388224 bytes)

in:
/var/www/localhost/friendica/src/Database/Database.php

on line:
568

If a trace would help, please someone tell me how to create one.

@Quix0r
Copy link

Quix0r commented Jan 16, 2024

src/Database/Database.php
568

That line is in develop: https://github.com/friendica/friendica/blob/develop/src/Database/Database.php#L568 And I don't see any problems there.

Edit: Maybe a huge data set was fetched?

@haheute
Copy link

haheute commented Jan 17, 2024

I don't know. It is this: #12777 (comment)

@Friendlica
Copy link

worker [ERROR]: DB Error  - {"file":"Database.php","line":789,"function":"e","request-id":"65adfc2e21ccc","stack":"Database::e (1037), Database::insert (89), Database::put (454), Photo::store (641), Photo::importProfilePhoto (2400), Contact::updateAvatar (2900), Contact::updateFromProbeArray (2686), Contact::updateFromProbe (46), UpdateContact::execute, Worker::execFunction (386), Worker::execute (121), Worker::processQueue (87)","uid":"71efe1","process_id":2466800}
worker [ERROR]: Uncaught exception in worker execution {"class":"Friendica\\Core\\Storage\\Exception\\StorageException","message":"Database storage failed to update ","code":500,"file":"/src/Core/Storage/Type/Database.php:94","trace":"
#0 /src/Model/Photo.php(454): Friendica\\Core\\Storage\\Type\\Database->put()\n
#1 /src/Model/Photo.php(641): Friendica\\Model\\Photo::store()\n
#2 /src/Model/Contact.php(2400): Friendica\\Model\\Photo::importProfilePhoto()\n
#3 /src/Model/Contact.php(2900): Friendica\\Model\\Contact::updateAvatar()\n
#4 /src/Model/Contact.php(2686): Friendica\\Model\\Contact::updateFromProbeArray()\n
#5 /src/Worker/UpdateContact.php(46): Friendica\\Model\\Contact::updateFromProbe()\n
#6 [internal function]: Friendica\\Worker\\UpdateContact::execute()\n
#7 /src/Core/Worker.php(572): call_user_func_array()\n
#8 /src/Core/Worker.php(386): Friendica\\Core\\Worker::execFunction()\n
#9 /src/Core/Worker.php(121): Friendica\\Core\\Worker::execute()\n
#10 /bin/worker.php(87): Friendica\\Core\\Worker::processQueue()\n
#11 {main}","previous":"Exception: Got a packet bigger than 'max_allowed_packet' bytes in /src/Core/Storage/Type/Database.php:94\n

@AlfredSK

This comment was marked as resolved.

@Friendlica
Copy link

Friendlica commented Feb 17, 2024

PHP Fatal error: gd-webp cannot allocate temporary buffer in /src/Object/Image.php on line 225

@MrPetovan
Copy link
Collaborator

@Friendlica What PHP version are you using?

@Friendlica
Copy link

Friendlica commented Feb 18, 2024

@Friendlica What PHP version are you using?

PHP 8.1.2 maybe it has something with this to do #13906

@MrPetovan
Copy link
Collaborator

Unlikely, I asked because lower versions of PHP don't support WebP but it doesn't seem to be the issue in your case.

@annando
Copy link
Collaborator

annando commented Feb 19, 2024

@MrPetovan
Copy link
Collaborator

I found the same page, hence my PHP version question. It doesn't seem to be relevant in this case.

@Friendlica

This comment was marked as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants