Advertisement:
GCWebhosting

Author Topic: ManageLanguages.php (Line 396): Illegal string offset 'writable'  (Read 1503 times)

Offline m4z

  • Jr. Member
  • **
  • Posts: 149
SMF2.1rc2 on Debian 8, PHP5.4(?), Postgresql 9.4, ...


Immediately followed by another error:

This apparently happens when looking at the pre-install-screen for language packs (after searching and clicking on "Install", when permissions are checked). The language pack ID is for "German".
"Faith is what you have in things that don't exist."
--Homer Simpson

Offline albertlast

  • Development Contributor
  • Full Member
  • *
  • Posts: 581
Re: ManageLanguages.php (Line 396): Illegal string offset 'writable'
« Reply #1 on: April 12, 2019, 11:27:25 AM »
in the admin area you can check which php version you run,
please had mind that you run with you php version 5.4 and pg 9.4 on the lowest spec which is supported by 2.1.
Higher php version 7.0+ and pg 9.5+ would be better.

Offline m4z

  • Jr. Member
  • **
  • Posts: 149
Re: ManageLanguages.php (Line 396): Illegal string offset 'writable'
« Reply #2 on: April 12, 2019, 12:38:53 PM »
in the admin area you can check which php version you run,
please had mind that you run with you php version 5.4 and pg 9.4 on the lowest spec which is supported by 2.1.
Higher php version 7.0+ and pg 9.5+ would be better.

This is what comes with Debian 8. If it really is a version issue, I can try and see if newer prepackaged versions are available for D8 somewhere, but I'd prefer to avoid it.
Quote
Forum version: SMF 2.1 RC2
Current SMF version: SMF 2.1 RC2
GD version: 2.1.1-dev
PostgreSQL engine: PostgreSQL
PostgreSQL version: 9.4.21
PHP: 5.6.40-0+deb8u2
Server version: lighttpd/1.4.35
"Faith is what you have in things that don't exist."
--Homer Simpson

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,051
  • Gender: Male
    • Macedonian electronics forum
Re: ManageLanguages.php (Line 396): Illegal string offset 'writable'
« Reply #3 on: April 12, 2019, 07:57:15 PM »
PHP 5.6 is EOL, so it's not recommended for use any more. 2.1.x supports PHP 7.x out of the box ;).

https://www.php.net/supported-versions.php
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline albertlast

  • Development Contributor
  • Full Member
  • *
  • Posts: 581
Re: ManageLanguages.php (Line 396): Illegal string offset 'writable'
« Reply #4 on: April 13, 2019, 02:11:15 AM »
Any way when you upper your version number wouldn't fixed the issue,
so it'S only general advice.

To your problem,
can you try to add this line in front of
Code: [Select]
// Mark those which are now writable as such.
foreach ($context['files'] as $type => $data)
to
Code: [Select]
                print_r($context['files']);
// Mark those which are now writable as such.
foreach ($context['files'] as $type => $data)

and give us the html output?

Offline m4z

  • Jr. Member
  • **
  • Posts: 149
Re: ManageLanguages.php (Line 396): Illegal string offset 'writable'
« Reply #5 on: April 13, 2019, 03:24:30 AM »
Thanks for your replies.


PHP 5.6 is EOL, so it's not recommended for use any more. [...]

https://www.php.net/supported-versions.php

That, and the fact which version is recommended, seems to be undocumented in the wiki (maybe because 2.1 isn't released yet). The tarballed readme.html (which I only found just now, days after install ::)) says: req: php >= 5.4; rec: php >= 7.0.0.


2.1.x supports PHP 7.x out of the box ;).

Debian 8, which is still LTS, does not. Even Debian 9, which my hoster doesn't support yet (almost two years after release), only has 7.0 (already EOL), and probably will until 2022.


The print_r output is rather huge (you can easily see which language pack I chose this time):
Code: [Select]
Array ( [lang] => Array ( [0] => Array ( [name] => Settings.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Settings.german_informal.php [generaldest] => Themes/default/languages/Settings.german_informal.php [size] => 256 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [1] => Array ( [name] => ManageCalendar.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageCalendar.german_informal.php [generaldest] => Themes/default/languages/ManageCalendar.german_informal.php [size] => 3924 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [2] => Array ( [name] => ManageSettings.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageSettings.german_informal.php [generaldest] => Themes/default/languages/ManageSettings.german_informal.php [size] => 33607 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC2 [cur_version] => [version_compare] => newer ) [3] => Array ( [name] => ManageMaintenance.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageMaintenance.german_informal.php [generaldest] => Themes/default/languages/ManageMaintenance.german_informal.php [size] => 21395 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [4] => Array ( [name] => Themes.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Themes.german_informal.php [generaldest] => Themes/default/languages/Themes.german_informal.php [size] => 11930 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [5] => Array ( [name] => Drafts.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Drafts.german_informal.php [generaldest] => Themes/default/languages/Drafts.german_informal.php [size] => 2313 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [6] => Array ( [name] => Modlog.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Modlog.german_informal.php [generaldest] => Themes/default/languages/Modlog.german_informal.php [size] => 7243 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [7] => Array ( [name] => index.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/index.german_informal.php [generaldest] => Themes/default/languages/index.german_informal.php [size] => 43861 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC2 [cur_version] => [version_compare] => newer ) [8] => Array ( [name] => Install.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Install.german_informal.php [generaldest] => Themes/default/languages/Install.german_informal.php [size] => 39131 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC2 [cur_version] => [version_compare] => newer ) [9] => Array ( [name] => Who.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Who.german_informal.php [generaldest] => Themes/default/languages/Who.german_informal.php [size] => 11147 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [10] => Array ( [name] => ManageSmileys.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageSmileys.german_informal.php [generaldest] => Themes/default/languages/ManageSmileys.german_informal.php [size] => 6190 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [11] => Array ( [name] => Admin.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Admin.german_informal.php [generaldest] => Themes/default/languages/Admin.german_informal.php [size] => 50837 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [12] => Array ( [name] => Timezones.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Timezones.german_informal.php [generaldest] => Themes/default/languages/Timezones.german_informal.php [size] => 4394 [writable] => 1 [default_copy] => 1 [exists] => [version] => ?? [cur_version] => [version_compare] => newer ) [13] => Array ( [name] => PersonalMessage.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/PersonalMessage.german_informal.php [generaldest] => Themes/default/languages/PersonalMessage.german_informal.php [size] => 10108 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [14] => Array ( [name] => Alerts.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Alerts.german_informal.php [generaldest] => Themes/default/languages/Alerts.german_informal.php [size] => 3570 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [15] => Array ( [name] => ManageMail.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageMail.german_informal.php [generaldest] => Themes/default/languages/ManageMail.german_informal.php [size] => 2273 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [16] => Array ( [name] => Manual.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Manual.german_informal.php [generaldest] => Themes/default/languages/Manual.german_informal.php [size] => 3238 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [17] => Array ( [name] => Post.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Post.german_informal.php [generaldest] => Themes/default/languages/Post.german_informal.php [size] => 16510 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [18] => Array ( [name] => Login.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Login.german_informal.php [generaldest] => Themes/default/languages/Login.german_informal.php [size] => 10183 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [19] => Array ( [name] => ModerationCenter.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/ModerationCenter.german_informal.php [generaldest] => Themes/default/languages/ModerationCenter.german_informal.php [size] => 11941 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [20] => Array ( [name] => Profile.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Profile.german_informal.php [generaldest] => Themes/default/languages/Profile.german_informal.php [size] => 38106 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [21] => Array ( [name] => Modifications.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Modifications.german_informal.php [generaldest] => Themes/default/languages/Modifications.german_informal.php [size] => 49 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC2 [cur_version] => [version_compare] => newer ) [22] => Array ( [name] => Errors.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Errors.german_informal.php [generaldest] => Themes/default/languages/Errors.german_informal.php [size] => 40492 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC2 [cur_version] => [version_compare] => newer ) [23] => Array ( [name] => EmailTemplates.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/EmailTemplates.german_informal.php [generaldest] => Themes/default/languages/EmailTemplates.german_informal.php [size] => 24110 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [24] => Array ( [name] => ManageScheduledTasks.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageScheduledTasks.german_informal.php [generaldest] => Themes/default/languages/ManageScheduledTasks.german_informal.php [size] => 5019 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [25] => Array ( [name] => Packages.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Packages.german_informal.php [generaldest] => Themes/default/languages/Packages.german_informal.php [size] => 21188 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC2 [cur_version] => [version_compare] => newer ) [26] => Array ( [name] => Search.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Search.german_informal.php [generaldest] => Themes/default/languages/Search.german_informal.php [size] => 11051 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [27] => Array ( [name] => ManageBoards.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageBoards.german_informal.php [generaldest] => Themes/default/languages/ManageBoards.german_informal.php [size] => 7648 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [28] => Array ( [name] => ManageMembers.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageMembers.german_informal.php [generaldest] => Themes/default/languages/ManageMembers.german_informal.php [size] => 9520 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [29] => Array ( [name] => Editor.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Editor.german_informal.php [generaldest] => Themes/default/languages/Editor.german_informal.php [size] => 2676 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [30] => Array ( [name] => ManagePermissions.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/ManagePermissions.german_informal.php [generaldest] => Themes/default/languages/ManagePermissions.german_informal.php [size] => 29612 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC2 [cur_version] => [version_compare] => newer ) [31] => Array ( [name] => Reports.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Reports.german_informal.php [generaldest] => Themes/default/languages/Reports.german_informal.php [size] => 9329 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC2 [cur_version] => [version_compare] => newer ) [32] => Array ( [name] => ManagePaid.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/ManagePaid.german_informal.php [generaldest] => Themes/default/languages/ManagePaid.german_informal.php [size] => 14437 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [33] => Array ( [name] => Help.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Help.german_informal.php [generaldest] => Themes/default/languages/Help.german_informal.php [size] => 83045 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) [34] => Array ( [name] => Stats.german_informal.php [destination] => /home/beta-smf/public_html/Themes/default/languages/Stats.german_informal.php [generaldest] => Themes/default/languages/Stats.german_informal.php [size] => 1842 [writable] => 1 [default_copy] => 1 [exists] => [version] => 2.1 RC1 [cur_version] => [version_compare] => newer ) ) [other] => Array ( [0] => Array ( [name] => index.php [destination] => /home/beta-smf/public_html/Themes/default/languages/index.php [generaldest] => Themes/default/languages/index.php [size] => 44 [writable] => 1 [default_copy] => 1 [exists] => different ) [1] => Array ( [name] => agreement.german_informal.txt [destination] => /home/beta-smf/public_html/agreement.german_informal.txt [generaldest] => agreement.german_informal.txt [size] => 2565 [writable] => [default_copy] => 1 [exists] => ) ) )
"Faith is what you have in things that don't exist."
--Homer Simpson

Offline albertlast

  • Development Contributor
  • Full Member
  • *
  • Posts: 581
Re: ManageLanguages.php (Line 396): Illegal string offset 'writable'
« Reply #6 on: April 13, 2019, 04:57:55 AM »
Well i should mention that you need to switch the view in your browser to source view,
to get the formated view of print_r

Offline m4z

  • Jr. Member
  • **
  • Posts: 149
Re: ManageLanguages.php (Line 396): Illegal string offset 'writable'
« Reply #7 on: April 13, 2019, 05:25:22 AM »
Thanks, I don't know much about PHP.

In the meantime I switched my forum from English to German, don't know if that changes the array below (but the error still appears anyway, so it probably doesn't matter).


Code: [Select]
Array
(
    [lang] => Array
        (
            [0] => Array
                (
                    [name] => Settings.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Settings.german_informal.php
                    [generaldest] => Themes/default/languages/Settings.german_informal.php
                    [size] => 256
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [1] => Array
                (
                    [name] => ManageCalendar.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageCalendar.german_informal.php
                    [generaldest] => Themes/default/languages/ManageCalendar.german_informal.php
                    [size] => 3924
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [2] => Array
                (
                    [name] => ManageSettings.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageSettings.german_informal.php
                    [generaldest] => Themes/default/languages/ManageSettings.german_informal.php
                    [size] => 33607
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC2
                    [cur_version] =>
                    [version_compare] => newer
                )

            [3] => Array
                (
                    [name] => ManageMaintenance.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageMaintenance.german_informal.php
                    [generaldest] => Themes/default/languages/ManageMaintenance.german_informal.php
                    [size] => 21395
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [4] => Array
                (
                    [name] => Themes.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Themes.german_informal.php
                    [generaldest] => Themes/default/languages/Themes.german_informal.php
                    [size] => 11930
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [5] => Array
                (
                    [name] => Drafts.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Drafts.german_informal.php
                    [generaldest] => Themes/default/languages/Drafts.german_informal.php
                    [size] => 2313
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [6] => Array
                (
                    [name] => Modlog.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Modlog.german_informal.php
                    [generaldest] => Themes/default/languages/Modlog.german_informal.php
                    [size] => 7243
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [7] => Array
                (
                    [name] => index.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/index.german_informal.php
                    [generaldest] => Themes/default/languages/index.german_informal.php
                    [size] => 43861
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC2
                    [cur_version] =>
                    [version_compare] => newer
                )

            [8] => Array
                (
                    [name] => Install.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Install.german_informal.php
                    [generaldest] => Themes/default/languages/Install.german_informal.php
                    [size] => 39131
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC2
                    [cur_version] =>
                    [version_compare] => newer
                )

            [9] => Array
                (
                    [name] => Who.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Who.german_informal.php
                    [generaldest] => Themes/default/languages/Who.german_informal.php
                    [size] => 11147
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [10] => Array
                (
                    [name] => ManageSmileys.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageSmileys.german_informal.php
                    [generaldest] => Themes/default/languages/ManageSmileys.german_informal.php
                    [size] => 6190
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [11] => Array
                (
                    [name] => Admin.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Admin.german_informal.php
                    [generaldest] => Themes/default/languages/Admin.german_informal.php
                    [size] => 50837
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [12] => Array
                (
                    [name] => Timezones.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Timezones.german_informal.php
                    [generaldest] => Themes/default/languages/Timezones.german_informal.php
                    [size] => 4394
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => ??
                    [cur_version] =>
                    [version_compare] => newer
                )

            [13] => Array
                (
                    [name] => PersonalMessage.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/PersonalMessage.german_informal.php
                    [generaldest] => Themes/default/languages/PersonalMessage.german_informal.php
                    [size] => 10108
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [14] => Array
                (
                    [name] => Alerts.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Alerts.german_informal.php
                    [generaldest] => Themes/default/languages/Alerts.german_informal.php
                    [size] => 3570
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [15] => Array
                (
                    [name] => ManageMail.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageMail.german_informal.php
                    [generaldest] => Themes/default/languages/ManageMail.german_informal.php
                    [size] => 2273
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [16] => Array
                (
                    [name] => Manual.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Manual.german_informal.php
                    [generaldest] => Themes/default/languages/Manual.german_informal.php
                    [size] => 3238
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [17] => Array
                (
                    [name] => Post.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Post.german_informal.php
                    [generaldest] => Themes/default/languages/Post.german_informal.php
                    [size] => 16510
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [18] => Array
                (
                    [name] => Login.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Login.german_informal.php
                    [generaldest] => Themes/default/languages/Login.german_informal.php
                    [size] => 10183
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [19] => Array
                (
                    [name] => ModerationCenter.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/ModerationCenter.german_informal.php
                    [generaldest] => Themes/default/languages/ModerationCenter.german_informal.php
                    [size] => 11941
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [20] => Array
                (
                    [name] => Profile.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Profile.german_informal.php
                    [generaldest] => Themes/default/languages/Profile.german_informal.php
                    [size] => 38106
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [21] => Array
                (
                    [name] => Modifications.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Modifications.german_informal.php
                    [generaldest] => Themes/default/languages/Modifications.german_informal.php
                    [size] => 49
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC2
                    [cur_version] =>
                    [version_compare] => newer
                )

            [22] => Array
                (
                    [name] => Errors.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Errors.german_informal.php
                    [generaldest] => Themes/default/languages/Errors.german_informal.php
                    [size] => 40492
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC2
                    [cur_version] =>
                    [version_compare] => newer
                )

            [23] => Array
                (
                    [name] => EmailTemplates.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/EmailTemplates.german_informal.php
                    [generaldest] => Themes/default/languages/EmailTemplates.german_informal.php
                    [size] => 24110
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [24] => Array
                (
                    [name] => ManageScheduledTasks.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageScheduledTasks.german_informal.php
                    [generaldest] => Themes/default/languages/ManageScheduledTasks.german_informal.php
                    [size] => 5019
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [25] => Array
                (
                    [name] => Packages.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Packages.german_informal.php
                    [generaldest] => Themes/default/languages/Packages.german_informal.php
                    [size] => 21188
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC2
                    [cur_version] =>
                    [version_compare] => newer
                )

            [26] => Array
                (
                    [name] => Search.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Search.german_informal.php
                    [generaldest] => Themes/default/languages/Search.german_informal.php
                    [size] => 11051
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [27] => Array
                (
                    [name] => ManageBoards.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageBoards.german_informal.php
                    [generaldest] => Themes/default/languages/ManageBoards.german_informal.php
                    [size] => 7648
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [28] => Array
                (
                    [name] => ManageMembers.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/ManageMembers.german_informal.php
                    [generaldest] => Themes/default/languages/ManageMembers.german_informal.php
                    [size] => 9520
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [29] => Array
                (
                    [name] => Editor.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Editor.german_informal.php
                    [generaldest] => Themes/default/languages/Editor.german_informal.php
                    [size] => 2676
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [30] => Array
                (
                    [name] => ManagePermissions.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/ManagePermissions.german_informal.php
                    [generaldest] => Themes/default/languages/ManagePermissions.german_informal.php
                    [size] => 29612
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC2
                    [cur_version] =>
                    [version_compare] => newer
                )

            [31] => Array
                (
                    [name] => Reports.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Reports.german_informal.php
                    [generaldest] => Themes/default/languages/Reports.german_informal.php
                    [size] => 9329
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC2
                    [cur_version] =>
                    [version_compare] => newer
                )

            [32] => Array
                (
                    [name] => ManagePaid.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/ManagePaid.german_informal.php
                    [generaldest] => Themes/default/languages/ManagePaid.german_informal.php
                    [size] => 14437
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [33] => Array
                (
                    [name] => Help.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Help.german_informal.php
                    [generaldest] => Themes/default/languages/Help.german_informal.php
                    [size] => 83045
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

            [34] => Array
                (
                    [name] => Stats.german_informal.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/Stats.german_informal.php
                    [generaldest] => Themes/default/languages/Stats.german_informal.php
                    [size] => 1842
                    [writable] => 1
                    [default_copy] => 1
                    [exists] =>
                    [version] => 2.1 RC1
                    [cur_version] =>
                    [version_compare] => newer
                )

        )

    [other] => Array
        (
            [0] => Array
                (
                    [name] => index.php
                    [destination] => /home/beta-smf/public_html/Themes/default/languages/index.php
                    [generaldest] => Themes/default/languages/index.php
                    [size] => 44
                    [writable] => 1
                    [default_copy] => 1
                    [exists] => different
                )

            [1] => Array
                (
                    [name] => agreement.german_informal.txt
                    [destination] => /home/beta-smf/public_html/agreement.german_informal.txt
                    [generaldest] => agreement.german_informal.txt
                    [size] => 2565
                    [writable] =>
                    [default_copy] => 1
                    [exists] =>
                )

        )

)
"Faith is what you have in things that don't exist."
--Homer Simpson

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,051
  • Gender: Male
    • Macedonian electronics forum
Re: ManageLanguages.php (Line 396): Illegal string offset 'writable'
« Reply #8 on: April 14, 2019, 01:34:53 AM »
That, and the fact which version is recommended, seems to be undocumented in the wiki (maybe because 2.1 isn't released yet). The tarballed readme.html (which I only found just now, days after install ::)) says: req: php >= 5.4; rec: php >= 7.0.0.

Yes, that's correct ;). PHP 7.x is recommended for 2.1 ;). Actually, since 7.0 is also EOL now, >= 7.1 is recommended now ::) :P.


Debian 8, which is still LTS, does not. Even Debian 9, which my hoster doesn't support yet (almost two years after release), only has 7.0 (already EOL), and probably will until 2022.

That's an OS support problem, has nothing to do with the fact that some PHP versions are going EOL.

And, let's face it, Debian is not the most recommended Linux OS for a server. Both CentOS 7.6 and 6.10, as well as RHEL 6.10 and 7.6 support PHP 7.3, even though both CentOS 6.10 and RHEL 6.10 are going to be EOL at the end of 2020.
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Sesquipedalian

  • The Mad Doctor
  • On Hiatus
  • Sr. Member
  • *
  • Posts: 908
  • Gender: Male
  • It works! ... in theory.
    • Sesquipedalian on GitHub
Re: ManageLanguages.php (Line 396): Illegal string offset 'writable'
« Reply #9 on: April 15, 2019, 02:18:20 AM »
The PHP version m4z is using is not relevant to this bug. The problem is a code mistake in ManageLanguages.php.

Tracked in https://github.com/SimpleMachines/SMF2.1/issues/5599
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Offline Sesquipedalian

  • The Mad Doctor
  • On Hiatus
  • Sr. Member
  • *
  • Posts: 908
  • Gender: Male
  • It works! ... in theory.
    • Sesquipedalian on GitHub
Re: ManageLanguages.php (Line 396): Illegal string offset 'writable'
« Reply #10 on: April 23, 2019, 01:09:33 PM »
Fix has been merged.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Offline m4z

  • Jr. Member
  • **
  • Posts: 149
Re: ManageLanguages.php (Line 396): Illegal string offset 'writable'
« Reply #11 on: April 23, 2019, 03:24:13 PM »
Thanks!
"Faith is what you have in things that don't exist."
--Homer Simpson