[SM-USERS] shared_calendar plugin

2022-04-19 Thread James B. Byrne via squirrelmail-users
FreeBSD-13.0
SM 1.4.23

I have SM running from a FreeBSD binary package for PHP81.  I likewise have
installed the shared_calendar plugin and its dependencies from FreeBSD
packages. I have configured SM to load this plugin.  I also copied a
data/config.php file from another installation of SM where the shared_calendar
plugin is in use. I compared the config.php.sample files from both
installations and they are identical. The modified file config.php differs from
the sample only in that the names of the calendar administrators are present.

The problem is that the shared_calendar plugin does not appear when a user is
logged on to that instance of SM.  I cannot find any log file entries
indicating a problem but the plugin is not available to use.

How can I tell what is happening when SM starts up and find out why the plugin
does not function?

-- 
***  e-Mail is NOT a SECURE channel  ***
Do NOT transmit sensitive data via e-Mail
   Unencrypted messages have no legal claim to privacy
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrnemailto:byrn...@harte-lyne.ca
Harte & Lyne Limited  http://www.harte-lyne.ca
9 Brockley Drive  vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada  L8E 3C3



-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] PHP-8.0 SM plugins (quicksave) (calander file backend)

2022-04-19 Thread Paul Lesniewski



On Thu, April 14, 2022 3:52 pm, James B. Byrne via squirrelmail-users wrote:
> OS FreeBSD-13.0
>
> I am migrating SM from one host to another.  The new host runs php80.  The
> old
> runs php73.  I am using the FreeBSD port for SM on FreeBSD-13.0.
>
> There is a plugin that I installed many years ago called quicksave. I
> cannot
> find this in the prepackaged SM plugin ports.  The version I found on the
> SM
> website dates from 2010.
>
> The existing plugin gives this error when squirrelmail is opened:
>
> [Thu Apr 14 11:05:10.097504 2022] [php:error] [pid 92477] [client
> 216.185.71.41:46251] PHP Fatal error:  Array and string offset access
> syntax
> with curly braces is no longer supported in
> /usr/local/www/squirrelmail/plugins/quicksave/login_functions.php on line
> 308,

You can contact me offlist for an updated version of that plugin or just
change the curly braces in most cases to square braces in your copy of the
code.

> I also have run into this error which is unrelated to quicksave but which
> I
> could use some help with.  The calander file backend is a ported plugin
> but it
> seems not to work.
>
> [Thu Apr 14 11:25:22.943031 2022] [php:error] [pid 91870] [client
> 216.185.71.41:15239] PHP Fatal error:  Uncaught Error: Non-static method
> Calendar::getCalendarFromICal() cannot be called statically in
> /usr/local/www/squirrelmail/plugins/calendar_file_backend/calendar_functions.php:483\n

This is likely a bug in the Shared Calendar plugin
(calendar/classes/calendar.php) in the getCalendarFromICal function
(likely the use of $this-> or similar) but I don't have a copy of that
older code handy at the moment.

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php




-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] shared_calendar plugin

2022-04-19 Thread Paul Lesniewski



On Tue, April 19, 2022 6:13 pm, James B. Byrne via squirrelmail-users wrote:
> FreeBSD-13.0
> SM 1.4.23
>
> I have SM running from a FreeBSD binary package for PHP81.  I likewise
> have
> installed the shared_calendar plugin and its dependencies from FreeBSD
> packages. I have configured SM to load this plugin.  I also copied a
> data/config.php file from another installation of SM where the
> shared_calendar
> plugin is in use. I compared the config.php.sample files from both
> installations and they are identical. The modified file config.php differs
> from
> the sample only in that the names of the calendar administrators are
> present.
>
> The problem is that the shared_calendar plugin does not appear when a user
> is
> logged on to that instance of SM.  I cannot find any log file entries
> indicating a problem but the plugin is not available to use.
>
> How can I tell what is happening when SM starts up and find out why the
> plugin
> does not function?

Did you watch for PHP errors? Do the calendar administrative options show
up for users listed in $cal_admins in the plugin configuration? Are you
sure it is enabled in the right SM instance? Did you run configtest? I
have newer code than will be from the port you get, so I personally can't
help as much, but you can insert debug lines in the code to see where the
code path ends before printing out the calendar link that you expect to
see.

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php




-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] shared_calendar plugin

2022-04-19 Thread James B. Byrne via squirrelmail-users



On Tue, April 19, 2022 16:53, Paul Lesniewski wrote:

>
> Did you watch for PHP errors?
There are no PHP entries in /var/log/messages that cannot be accounted for.

> Do the calendar administrative options show up for users listed in
> $cal_admins in the plugin configuration?
No, they do not.

> Are you sure it is enabled in the right SM instance?
There only one SM instance of that host.

> Did you run configtest?
Yes, it found no errors:

SquirrelMail configtest

This script will try to check some aspects of your SquirrelMail configuration
and point you to errors whereever it can find them. You need to go run conf.pl
in the config/ directory first before you run this script.

SquirrelMail version:   1.4.23 [SVN]
Config file version:1.4.0
Config file last modified:  19 April 2022 14:35:58
Checking PHP configuration...
PHP version 8.1.5 OK.
Running as N/A(N/A) / N/A(N/A)
display_errors:
error_reporting: 22527
variables_order OK: GPCS.
PHP extensions OK. Dynamic loading is disabled.
Checking paths...
Data dir OK.
Attachment dir OK.
Plugins OK.
Themes OK.
Default language OK.
Base URL detected as: https://webmail-1.hamilton.harte-lyne.ca/src
(location base autodetected)
Checking outgoing mail service
SMTP server OK (220 mx32.harte-lyne.ca ESMTP Postfix)
Checking IMAP service
IMAP server ready (* OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE AUTH=PLAIN
SASL-IR] imap.hamilton.harte-lyne.ca Cyrus IMAP 3.0.17 server ready)
Capabilities: * CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxten
QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT
CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SEARCH=FUZZY SORT
SORT=MODSEQ SORT=DISPLAY SORT=UID THREAD=ORDEREDSUBJECT THREAD=REFERENCES
THREAD=REFS ANNOTATEMORE ANNOTATE-EXPERIMENT-1 METADATA LIST-EXTENDED
LIST-STATUS LIST-MYRIGHTS LIST-METADATA WITHIN QRESYNC SCAN XLIST XMOVE
MOVE SPECIAL-USE CREATE-SPECIAL-USE DIGEST=SHA1 X-REPLICATION URLAUTH
URLAUTH=BINARY AUTH=PLAIN SASL-IR COMPRESS=DEFLATE X-QUOTA=STORAGE
X-QUOTA=MESSAGE X-QUOTA=X-ANNOTATION-STORAGE X-QUOTA=X-NUM-FOLDERS IDLE
Checking internationalization (i18n) settings...
 gettext - Gettext functions are available. On some systems you must have
appropriate system locales compiled.
 mbstring - Mbstring functions are available.
 recode - Recode functions are unavailable.
 iconv - Iconv functions are available.
 timezone - Webmail users can change their time zone settings.
Checking database functions...
not using database functionality.

Congratulations, your SquirrelMail setup looks fine to me!




> I have newer code than will be from the port you get, so I personally can't
> help as much, but you can insert debug lines in the code to see where the
> code path ends before printing out the calendar link that you expect to
> see.
>

more later.

-- 
***  e-Mail is NOT a SECURE channel  ***
Do NOT transmit sensitive data via e-Mail
   Unencrypted messages have no legal claim to privacy
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrnemailto:byrn...@harte-lyne.ca
Harte & Lyne Limited  http://www.harte-lyne.ca
9 Brockley Drive  vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada  L8E 3C3



-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] shared_calendar plugin

2022-04-19 Thread Paul Lesniewski



On Tue, April 19, 2022 9:10 pm, James B. Byrne wrote:
>
>
> On Tue, April 19, 2022 16:53, Paul Lesniewski wrote:
>
>>
>> Did you watch for PHP errors?
> There are no PHP entries in /var/log/messages that cannot be accounted
> for.
>
>> Do the calendar administrative options show up for users listed in
>> $cal_admins in the plugin configuration?
> No, they do not.

In that case, I'd check the permissions on the plugin directory and files
therein.  Make sure the web server can even load the files.  And double
check the spelling of the plugin in config/config.php

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php




-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users