PHP-8.0 SM plugins (quicksave) (calander file backend)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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] 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,

The code for this is:

306   for ($i = 0; $i < $length; $i++)
307   {
308      $temp[$i] = ord($value{$i});
309      $temp2[$i] = isset($value{($i + 1)}) ? ord($value{($i + 1)}) : 0;
310      //temp[$i] = uniord($value{$i});
311      //temp2[$i] = isset($value{($i + 1)}) ? uniord($value{($i + 1)}) : 0;
312   }

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] PHP Fatal error:  Uncaught Error: Non-static method
Calendar::getCalendarFromICal() cannot be called statically in
Stack trace:\n#0
cal_file_get_calendar_do('sm_cal_20060424...', false)\n#2
cal_file_get_calendar(Array, NULL)\n#3
do_hook_function('get_calendar', Array)\n#4
  thrown in
on line 483

The code appears to be:

475  function getCalendarFromFile($file)
476  {
478     // read the file all at once
479     //
480     $fileContents = file($file);
483     return Calendar::getCalendarFromICal($fileContents);
485 }

Any help getting this sorted out is appreciated.

***          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. Byrne                mailto:ByrneJB@xxxxxxxxxxxxx
Harte & Lyne Limited
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

squirrelmail-users mailing list
Posting guidelines:
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives:
List info (subscribe/unsubscribe/change options):

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux