Dopo che Altervista ha deciso di aggiornate la versione PHP alla 7.3.25 e phpBB alla 3.2.4, l'estensione ha smesso di funzionare e ha iniziato a generare errori.
Premetto che stiamo per trasferire il forum su nostro nuovo dominio con PHP 7.4 e phpBB 3.3.4, a me interesserebbe che funzionasse con quest'ultime versioni.
Ecco il link GitHub dell'estensione
Per chi non la conosce, questa estensione crea una miniatura della prima immagine in allegato al post, prima del titolo nell'elenco dei post del forum L'errore generato è il seguente, e si verifica all'apertura del forum dove dovrebbe generare le miniature:
Codice: Seleziona tutto
SQL ERROR [ mysqli ]
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'Sql1573107_1.a.attach_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by [1055]
SQL
SELECT a.attach_id, a.post_msg_id, a.extension, p.post_id, p.topic_id, p.post_time, p.post_visibility FROM phpbbsl_attachments a, phpbbsl_posts p WHERE a.post_msg_id = p.post_id AND (mimetype = "image/jpeg" OR mimetype = "image/png" OR mimetype = "image/gif") AND p.post_visibility = 1 GROUP BY a.post_msg_id DESC LIMIT 9
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 1023
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 195
CALL: phpbb\db\driver\driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/mysql_base.php
LINE: 45
CALL: phpbb\db\driver\mysqli->sql_query()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 296
CALL: phpbb\db\driver\mysql_base->_sql_query_limit()
FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 337
CALL: phpbb\db\driver\driver->sql_query_limit()
FILE: [ROOT]/ext/bb3mobi/imgposts/core/helper.php
LINE: 474
CALL: phpbb\db\driver\factory->sql_query_limit()
FILE: [ROOT]/ext/bb3mobi/imgposts/cron/task/tidy_images.php
LINE: 78
CALL: bb3mobi\imgposts\core\helper->clear_cache()
FILE: [ROOT]/ext/bb3mobi/imgposts/cron/task/tidy_images.php
LINE: 71
CALL: bb3mobi\imgposts\cron\task\tidy_images->cron_tidy_images()
FILE: [ROOT]/phpbb/cron/task/wrapper.php
LINE: 85
CALL: bb3mobi\imgposts\cron\task\tidy_images->should_run()
FILE: [ROOT]/phpbb/cron/manager.php
LINE: 124
CALL: phpbb\cron\task\wrapper->is_ready()
FILE: [ROOT]/phpbb/controller/helper.php
LINE: 362
CALL: phpbb\cron\manager->find_one_ready_task()
FILE: [ROOT]/phpbb/controller/helper.php
LINE: 315
CALL: phpbb\controller\helper->set_cron_task()
FILE: [ROOT]/includes/functions.php
LINE: 4257
CALL: phpbb\controller\helper->display_footer()
FILE: [ROOT]/posting.php
LINE: 2074
CALL: page_footer()
Altra cosa che può essere utile per la risoluzione del problema è che quando attivo e/o disattivo e/o ripulisco i dati dell'estensione, appaiono queste righe di codice in alto alla pagina:
Codice: Seleziona tutto
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/zendframework/zend-stdlib/src/ArrayObject.php on line 426: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/zendframework/zend-code/src/Reflection/MethodReflection.php on line 272: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/zendframework/zend-code/src/Reflection/MethodReflection.php on line 275: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/zendframework/zend-code/src/Reflection/MethodReflection.php on line 281: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/zendframework/zend-code/src/Reflection/MethodReflection.php on line 287: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/zendframework/zend-code/src/Reflection/MethodReflection.php on line 296: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/zendframework/zend-code/src/Reflection/MethodReflection.php on line 314: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/zendframework/zend-code/src/Reflection/MethodReflection.php on line 319: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Grazie a tutti