freebsd-version ; uname -a 13.0-RELEASE-p11 FreeBSD webmail-1.hamilton.harte-lyne.ca 13.0-RELEASE-p7 FreeBSD 13.0-RELEASE-p7 #0: Mon Jan 31 18:24:03 UTC 2022 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 pkg info squirrelmail-shared_calendars-plugin-php81 squirrelmail-shared_calendars-plugin-php81-2.0.1_3 Name : squirrelmail-shared_calendars-plugin-php81 Version : 2.0.1_3 Installed on : Thu Apr 21 09:44:17 2022 EDT Origin : mail/squirrelmail-shared_calendars-plugin Architecture : FreeBSD:13:* Prefix : /usr/local Categories : mail www Problem: shared_calendars plugin does not appear in squirrelmail user page. Calendar Administration does not appear on Options page. Reproducible: Always squirrelmail-shared_calendars-plugin-php81 was installed using pkg. This installed the requisite dependencies as well: pkg info -x squirrelmail squirrelmail-calendar_file_backend-plugin-php81-1.0_3 squirrelmail-compatibility-plugin-php81-2.0.16_1 squirrelmail-php81-20211024 squirrelmail-shared_calendars-plugin-php81-2.0.1_3 /usr/local/www/squirrelmail/configure was used to configure squirrelmail. The active plugins are: Plugins Installed Plugins 1. administrator 2. bug_report 3. calendar_file_backend 4. compatibility 5. delete_move_next 6. filters 7. info 8. listcommands 9. message_details 10. newmail 11. sent_subfolders 12. shared_calendars 13. squirrelspell 14. translate The shared_calendars plugin administrators were configured. Apache-2.4.53 was configured to access squirrelmail. mod_php81-8.1.5_2 is installed and enabled in httpd.conf. When the squirrelmail page is visited the login page opens, accepts credentials, and proceeds to display the user's mail folders and message list. The calendar plugin is not added to the page header. The administration kink is not present on the Options page.
The error log contains this entry: PHP Warning: Undefined variable $thread_name in /usr/local/www/squirrelmail/functions/mailbox_display.php on line 845,
As Default php has been bumped to php82 is it still the case?
I have recently installed squirrelmail-php83 and I will test this.
Problem still exists for shared calendars and perhaps other plugins.
This plugin was last updated in 2005! https://squirrelmail.org/plugin_view.php?id=105 Requires: PHP 4.1.0, SquirrelMail 1.4.0, Compatibility Plugin, Calendar backend plugin Why is this still in ports? :)
At a guess I would say because it has not, to my knowledge, been deprecated upstream. Most of the squirrelmail plugins do not change very much if at all.
Created attachment 248094 [details] patch to squirrelmail/plugins/shared_calendars/classes/calendar.php refactors code to comply with PHP8
Created attachment 248095 [details] patch to squirrelmail/plugins/shared_calendars/classes/event.php refactors code to comply with PHP8
Created attachment 248096 [details] patch to squirrelmail/plugins/shared_calendars/classes/property.php Refactors code to comply with PHP8
Created attachment 248097 [details] patch to squirrelmail/functions/imap_messages.php Refactors code to comply with PHP8
Created attachment 248098 [details] patch to squirrelmail/functions/mailbox_display.php.php Refactors code to comply with PHP8
squirrelmail/plugins/shared_calendars/classes/calendar.php.patch squirrelmail/plugins/shared_calendars/classes/event.php.patch squirrelmail/plugins/shared_calendars/classes/property.php.patch squirrelmail/functions/imap_messages.php.patch squirrelmail/functions/mailbox_display.php.patch have been submitted upstream as well.