Skip to main content

Search

Items tagged with: php


My #Pixelfed node is back up again. I had forgotten to reinstall the bcmath extension when I downgraded #PHP from 7.4 to 7.3 because #Nextcloud on the same machine isn't compatible, which prevented #Composer to pull the latest dependencies, which triggered a PHP Fatal Error. 😅

Ah, the joys of #selfhost without containers! I'm more and more tempted to look into #Docker, but I'm afraid of the learning curve before I get the same setup I have now. Also it probably would involve converting about 20 #Apache configuration files to #nginx which I'm not looking forward to either.

Does anyone have any pointers for either task, containerization and/or migration from Apache to nginx? #help


I knew I could define a minimum version of #PHP in the composer.json but only last week I learned to use the config.platform.php key to force #Composer to update dependencies against the same minimum version regardless of the local PHP runtime version.


Yesterday I shot my #Nextcloud instance by switching my server's #PHP version from 7.3 to 7.4, I learned I should have waited for version 18, don't be like me.


15 years after I started using #PHP, I finally made my first contribution to the php.net documentation pages. 🥳

https://www.php.net/manual/en/function.exec.php#124878
#php


OpenStreetMap Addon


Hello !Friendica Support

this is a new error in my php-error.log

PHP Fatal error:  Uncaught Error: Class 'Friendica\Core\Cache' not found in /addon/openstreetmap/openstreetmap.php:134
Stack trace:
#0 /src/Core/Hook.php(202): openstreetmap_get_coordinates(Object(Friendica\App), Array)
#1 /src/Core/Hook.php(178): Friendica\Core\Hook::callSingle(Object(Friendica\App), 'Map::getCoordin...', Array, Array)
#2 /src/Util/Map.php(29): Friendica\Core\Hook::callAll('Map::getCoordin...', Array)
#3 /src/Protocol/ActivityPub/Transmitter.php(955): Friendica\Util\Map::getCoordinates('North Dakota/Ne...')
#4 /src/Protocol/ActivityPub/Transmitter.php(1329): Friendica\Protocol\ActivityPub\Transmitter::createLocation(Array)
#5 /src/Protocol/ActivityPub/Transmitter.php(903): Friendica\Protocol\ActivityPub\Transmitter::createNote(Array)
#6 /src/Module/Objects.php(45): Friendica\Protoc in /var/www/virtual/paddler/html/addon/openstreetmap/openstreetmap.php on line 134


#friendica #php #error

⇧