Re: [Tiki-users] Observations while upgrading to Tiki-25.1, unsupported PHP-8.1

[email protected] Sun, 11 Jun 2023 16:24:55 -0400
Newsgroups gmane.comp.cms.tiki.user
Message-ID <[email protected]>
An update:

PHP8 is at 13.2%
https://w3techs.com/technologies/details/pl-php

Debian 12 (bookworm) has just been released, with PHP 8.2
https://www.debian.org/News/2023/20230610

Tiki 26.0 will be released in July 2023 with a minimum requirement of 
PHP 8.1+
https://doc.tiki.org/PHP8
https://doc.tiki.org/Tiki26

If you'd like to help with testing, please contact me off-list. I'll 
supply you with admin access to these sites:
https://php81.monitored-by-glitchtip.dev4.evoludata.com
https://php82.monitored-by-glitchtip.dev4.evoludata.com
Your job is to provoke errors that are then reported to developers as 
per 
https://dev.tiki.org/Using-GlitchTip-as-part-of-the-Tiki-development-process

We have fixed hundreds of issues, small and big via this process in the 
last few months.

Best regards,

Marc



On 2023-04-02 18:17, Marc Laporte wrote:
> Hi!
> 
> Some issues can be figured out from error messages. For others, a
> developer should have access to the machine to see how the error is
> provoked.
> 
> Since this is not always practical, we added support for GlitchTip
> https://doc.tiki.org/GlitchTip and this provides a lot more info.
> 
> Most warnings and notices are harmless. But some are indicating a real
> problem. We are now
> https://dev.tiki.org/Using-GlitchTip-as-part-of-the-Tiki-development-process
> and Tiki 26 will be much cleaner for this.
> 
> I am hopeful Tiki26 will officially support PHP 8.x
> 
> It is sad that PHP 8 is just at 11%:
> https://w3techs.com/technologies/details/pl-php
> https://doc.tiki.org/PHP8
> 
> Best regards,
> 
> Marc
> 
> 
> On Fri, 31 Mar 2023 12:28:35 +0200 Tiki users mailing list
> [email protected] said
> 
>> I've just upgraded from 25.0 to 25.1, and I'm guilty using PHP 8.1.
>> 
>> I've spent time on clearing up my database: drop old tables, 
>> converting
>> non-InnoDB tables to InnoDB and securing utf8mb4 encoding.
>> 
>> 1.
>> While generating cache, I run into this:
>> sudo -u apache php console.php cache:generate
>> Generating all caches
>> A error was encountered while running a command
>> array_map(): Argument #2 ($array) must be of type array, null given on
>> line 373 of
>> /var/www/localhost/htdocs/tikiwiki/lib/smarty_tiki/function.menu.php
>> 
>> Is this because of PHP 8.1?
>> 
>> 2.
>> I could not proceed with tiki-install.php (happens since 16.2). The
>> minimum requirements should be adjusted, since mbstring.func_overload 
>> has
>> been dropped - but this is not really a problem.
>> I was happy to see a meaningful error message:
>> Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must 
>> be
>> of type resource, bool given in
>> /var/www/localhost/htdocs/tikiwiki/installer/installlib.php:79 Stack
>> trace: #0 
>> /var/www/localhost/htdocs/tikiwiki/installer/installlib.php(79):
>> fwrite() #1
>> /var/www/localhost/htdocs/tikiwiki/installer/tiki-installer.php(453):
>> write_local_php() #2
>> /var/www/localhost/htdocs/tikiwiki/tiki-install.php(120):
>> include_once('...') #3 {main} thrown in
>> /var/www/localhost/htdocs/tikiwiki/installer/installlib.php on line 79
>> 
>> Exactly where it tries to write?
>> I'm asking this, because the environment is restrictive around the
>> installation. If I know where it tries to write, I'd be able to grant
>> access to that target directory.
>> 
>> I proceeded with issuing:
>> sudo -u apache php console.php -n database:update
>> - this went fine, without errors
>> 
>> Upon logging in as an admin, I see these PHP error messages upon 
>> clicking
>> on show at the bottom of the page. Any suggestions about these?
>> ERROR (E_WARNING): Undefined array key "rss_blog"
>> At line 40 in
>> vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php(52)
>> : eval()'d code
>> ERROR (E_WARNING): Undefined array key "filegals_manager"
>> At line 30 in
>> temp/templates_c/en_basic^bf8df3eb6fb49d7391aa3511d8206266ac985d7c_0.file.layout_fullscreen_check.tpl.php
>> ERROR (E_WARNING): Attempt to read property "value" on null
>> At line 30 in
>> temp/templates_c/en_basic^bf8df3eb6fb49d7391aa3511d8206266ac985d7c_0.file.layout_fullscreen_check.tpl.php
>> ERROR (E_WARNING): Undefined array key "print_page"
>> At line 30 in
>> temp/templates_c/en_basic^bf8df3eb6fb49d7391aa3511d8206266ac985d7c_0.file.layout_fullscreen_check.tpl.php
>> ERROR (E_WARNING): Attempt to read property "value" on null
>> At line 30 in
>> temp/templates_c/en_basic^bf8df3eb6fb49d7391aa3511d8206266ac985d7c_0.file.layout_fullscreen_check.tpl.php
>> ERROR (E_WARNING): Undefined array key "navbar_brand"
>> At line 40 in
>> temp/templates_c/en_basic^e0446a460d3b2b390f0e2be8e20214a6f2d71eaf_0.file.mod-menu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 72 in
>> temp/templates_c/en_basic^e0446a460d3b2b390f0e2be8e20214a6f2d71eaf_0.file.mod-menu.tpl.php
>> NOTICE (E_USER_NOTICE): Icon not found: home48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: contactus48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: stats48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: categories48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: date48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: debug48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: userfiles48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: users48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: wikipages48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: stock_bold48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: blogs48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: stock_index48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: directory48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: file-manager48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: stock_dialog_question48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: quizzes48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: spreadsheet48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: gnome-settings-font48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: surveys48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: stats48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: messages48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: messages48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: messages48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: categories48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: vcard48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: tikicalendar48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: xfce4-appfinder48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: stock_bold48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: accounting48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: wizard_user48x48
>> At line 184 in lib/theme/iconsetlib.php
>> NOTICE (E_USER_NOTICE): Icon not found: icon-configuration48x48
>> At line 184 in lib/theme/iconsetlib.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu_static"
>> At line 29 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> ERROR (E_WARNING): Undefined array key "megamenu"
>> At line 41 in
>> temp/templates_c/en_basic^b4a507f0ac6202e3ad452cfff2773eef2705af62_0.file.bootstrap_smartmenu.tpl.php
>> 
>> Thanks:
>> Dw.
>> -- dr Tóth Attila, Radiológus, 06-20-825-8057
>> Attila Toth MD, Radiologist, +36-20-825-8057
>> 
>> 
>> 
>> _______________________________________________
>> TikiWiki-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
>> 
> 
> 
> 
> _______________________________________________
> TikiWiki-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-users


_______________________________________________
TikiWiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users