Hi,
I accessed the post-install messages display page, and I have:
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 524
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 529
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 534
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 539
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 552
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 561
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 566
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 580
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 609
With PHP 7, continue with a switch can be considered a break.
We must add an argument:
http://php.net/manual/en/control-structures.continue.php
Note: In PHP the switch statement is considered a looping structure for the purposes of continue. continue behaves like break (when no arguments are passed). If a switch is inside a loop, continue 2 will continue with the next iteration of the outer loop.
Joomla! 3.9.1 Stable [ Amani ] 27-November-2018 15:00 GMT
PHP 7.3.0-2 (Debian)
Regards.
As we have made clear to the Joomla! project we discontinued the extended support for FOF 2 in June 2016. This is 2 years longer than what we had originally been asked to provide.
Since Joomla! decided back in 2013 to remove FOF from future versions you should have rewritten the post-installation messages component to use core MVC. That component was never meant to be a final version. It was a quick and dirty solution to a pressing problem shortly before release. I guess institutional memory was lost when the people involved left (or where made to leave) the project.
Seriously, FOF 2's code is long gone from working memory and has mostly faded from my long term memory as well. I haven't touched it in nearly 4 years. Feel free to replace continue
with continue 2
and add a note after the copyright header that this file is a modified version of the original. That's the GPL-compatible way to go about it.
How can it be that with PHP 7.3 the problem occurs but not with 7.2?
Joomla! 3.9.3-rc Release Candidate [ Amani ] 9-February-2019 19:20 GMT
Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
PHP Version 7.3.1
System | Windows NT DESKTOP-5Q3Q8BN 10.0 build 17134 (Windows 10) i586
Build Date | Jan 9 2019 22:19:38
Compiler | MSVC15 (Visual C++ 2017)
Loaded Configuration File | C:\xampp\php\php.ini
Because php changed
but if the support ended already in June 2016,
and the Joomla!-installation is working with PHP 7.2.14 (Released: 07 Feb 2019),
then why doesn't it work with PHP 7.3?
Doesn't that mean that the change must have happened from PHP 7.2 to PHP 7.3?!
Sorry if I'm asking stupid questions. Just wanted to point it out for others who might come across similar problem, or for Joomla! to update (?) dispatcher.php
The change in behaviour was indeed introduced in PHP 7.3.0.
The use of continue
inside a switch
statement did NOT throw a warning in PHP 5 and PHP 7.0 to 7.2 inclusive. In PHP 7.3 it started throwing a PHP Warning. In PHP 7.4 or 8.0 (it's not yet set in stone) it will be not allowed and throw a PHP Error.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-02-10 18:46:43 |
Closed_By | ⇒ | Quy |
Closed_By | Quy | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23338
Please test PR #23866
Status | Pending | ⇒ | New |
Closed_Date | 0000-00-00 00:00:00 | ⇒ |
Status | Closed | ⇒ | Pending |
Closed_Date | 2019-02-10 18:46:43 | ⇒ | |
Closed_By | joomla-cms-bot | ⇒ |
Set to "open" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23338
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-02-11 12:48:51 |
Closed_By | ⇒ | Quy |
Closed_By | Quy | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23338
Please test PR #23873
Hello,
On a local XAMPP installation with PHP 7.3.4 and Joomla 3.9.4 I still have this issue.
Is this normal or should it have been solved?
Regards,
Peter
But now it is in:
libraries\f0f\dispatcher\dispatcher.php on line 524
so f0f instead fof.
Replacing the displatcher.php in f0f with that of fof (and editing fof-->f0f) solved the problem (file added with changed filetype)dispatcher.txt
so f0f instead fof.
f0f
is not part of the Joomla core. Normally all current Akeeba extensions use a newer FOF (e.g. fof30
) and not f0f
any more.
This said I think that you use another extension that uses an outdated version of f0f
or your extensions aren't up to date.
Your issue is not a core issue and you should ask in a forum.
Thank you! I think it is 'Autotweet'.
The map: f0f is there because of remains of an older installation I guess
Thank you! Your decision helped me!
I use J2Store.
@nikosdion :)