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
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,
referer: https://webmail-1.hamilton.harte-lyne.ca/src/left_main.php

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
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
Stack trace:\n#0
 /usr/local/www/squirrelmail/plugins/calendar_file_backend/calendar_functions.php(442):
getCalendarFromFile('/var/lib/squirr...')\n#1
 /usr/local/www/squirrelmail/plugins/calendar_file_backend/setup.php(238):
cal_file_get_calendar_do('sm_cal_20060424...', false)\n#2
 /usr/local/www/squirrelmail/functions/plugin.php(79):
cal_file_get_calendar(Array, NULL)\n#3
 /usr/local/www/squirrelmail/plugins/shared_calendars/backend_functions.php(209):
do_hook_function('get_calendar', Array)\n#4
 /usr/local/www/squirrelmail/plugins/shared_calendars/small_calendar.php(103):
get_calendar('sm_cal_20060424...')\n#5
 /usr/local/www/squirrelmail/plugins/shared_calendars/setup.php(107):
render_small_calendar_do()\n#6
 /usr/local/www/squirrelmail/functions/plugin.php(52):
render_small_calendar(Array)\n#7
 /usr/local/www/squirrelmail/src/left_main.php(484):
do_hook('left_main_after')\n#8
 {main}\n
  thrown in
/usr/local/www/squirrelmail/plugins/calendar_file_backend/calendar_functions.php
on line 483


The code appears to be:

475  function getCalendarFromFile($file)
476  {
477
478     // read the file all at once
479     //
480     $fileContents = file($file);
481
482
483     return Calendar::getCalendarFromICal($fileContents);
484
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          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@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users



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

  Powered by Linux