Hi all!
I tried upgrading some omeka classic sites to PHP 8.1 and i started getting a stack of errors related to the plugin. I know this plugin hasn’t been updated in years, but does anyone know how to fix this or am I stuck on php 7.4?
Deprecated : Return type of CsvImportPlus_RowIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/philippi/bbcwa.philippinestudies.uk/plugins/CsvImportPlus/models/CsvImportPlus/RowIterator.php on line 102
Deprecated : Return type of CsvImportPlus_RowIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/philippi/bbcwa.philippinestudies.uk/plugins/CsvImportPlus/models/CsvImportPlus/RowIterator.php on line 124
Deprecated : Return type of CsvImportPlus_RowIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/philippi/bbcwa.philippinestudies.uk/plugins/CsvImportPlus/models/CsvImportPlus/RowIterator.php on line 113
Deprecated : Return type of CsvImportPlus_RowIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/philippi/bbcwa.philippinestudies.uk/plugins/CsvImportPlus/models/CsvImportPlus/RowIterator.php on line 187
Deprecated : Return type of CsvImportPlus_RowIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/philippi/bbcwa.philippinestudies.uk/plugins/CsvImportPlus/models/CsvImportPlus/RowIterator.php on line 75
Deprecated : Return type of CsvImport_RowIterator::seek($index) should either be compatible with SeekableIterator::seek(int $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/philippi/bbcwa.philippinestudies.uk/plugins/CsvImport/models/CsvImport/RowIterator.php on line 123
Deprecated : Return type of CsvImport_RowIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/philippi/bbcwa.philippinestudies.uk/plugins/CsvImport/models/CsvImport/RowIterator.php on line 82
Deprecated : Return type of CsvImport_RowIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/philippi/bbcwa.philippinestudies.uk/plugins/CsvImport/models/CsvImport/RowIterator.php on line 104
Deprecated : Return type of CsvImport_RowIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/philippi/bbcwa.philippinestudies.uk/plugins/CsvImport/models/CsvImport/RowIterator.php on line 93
Deprecated : Return type of CsvImport_RowIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/philippi/bbcwa.philippinestudies.uk/plugins/CsvImport/models/CsvImport/RowIterator.php on line 166
Deprecated : Return type of CsvImport_RowIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/philippi/bbcwa.philippinestudies.uk/plugins/CsvImport/models/CsvImport/RowIterator.php on line 55
This is the system info:
System
Omeka 3.1.2
PHP 8.1.31 (cgi-fcgi)
OS Linux 4.18.0-553.27.1.el8_10.x86_64 x86_64
MySQL Server 10.6.20
MySQL Client mysqlnd 8.1.31
PHP Extensions
Regular bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, ionCube Loader, json, ldap, libxml, mbstring, monarxprotect, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib
Zend the ionCube PHP Loader
Plugins
CsvImport 2.0.4
CsvImportPlus 2.3.3
ItemDuplicator 1.4
Scripto 2.4
SimplePages 3.2.1
Themes
berlin 2.7.5
bigpicture 1.4.2
default 2.7.1
foundation 1.2.1 (current)
seasons 2.7
Thanks for looking at this!