?
avatar infograf768
infograf768
2 Nov 2017

Steps to reproduce the issue

Log in frontend ( I did as superadmin).
Login form module is set to display on all pages.
Edit an article.
Logout through the module

You get that Warning. Logout is done OK

Note: test done on a clean staging multilingual site

avatar infograf768 infograf768 - open - 2 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - change - 2 Nov 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Nov 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Nov 2017

Can't confirm. Logout by Module (display on all Pages) give:
bildschirmfoto 2017-11-02 um 10 47 30

avatar infograf768
infograf768 - comment - 2 Nov 2017

You get that, but the Warning shows in the PHP error logs, not on the page.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Nov 2017

Had looked before Comment in php_error.log, didn't get it there too.

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Nov 2017
Category Authentication Front End
avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Nov 2017
Status New Discussion
avatar infograf768
infograf768 - comment - 2 Nov 2017

weird

avatar Quy
Quy - comment - 19 Dec 2017

@infograf768 I can reproduce the warning in the error log.

avatar infograf768
infograf768 - comment - 20 Dec 2017

@Quy @franz-wohlkoenig
I see that Franz did his test while using a test sample data while I just had used the default multilang setting when installing J.
Quy, what your were your settings?

avatar Quy
Quy - comment - 20 Dec 2017

Installed Test English (GB) Sample Data demo.
Edit an article in the front end.
Click the Log out button.
View error log.

avatar infograf768
infograf768 - comment - 20 Dec 2017

Thanks for info.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Dec 2017

Test again on clean Install: No Warning in php_error.log.

System information

3.8.4-dev
Multilanguage Site (4 Lang.) & Test English (GB) Sample Data
macOS Sierra, 10.12.6
Firefox 57 (64-bit)

MAMP 4.2

  • PHP 7.0.22
  • MySQLi 5.6.35
avatar infograf768
infograf768 - comment - 20 Dec 2017

@franz-wohlkoenig
Have you tested when the article is in the edit state, i.e. not saved yet?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Dec 2017

2 Versions:

  • Open Article, change something, click on Log-out-Button of Module (there comes PopUp "Do you really wanna leave Page")
  • Open Article and click on Log-out-Button of Module

In both Cases no Warning.

avatar infograf768
infograf768 - comment - 20 Dec 2017

I think I found why we have that.
the method is
public static function handleError(&$error) in /plugins/system/logout/logout.php
If I change to public static function handleError($error)
No more Warning
It may be related to the PHP version as using the reference is there for compatibility with php 5.3
What is weird is that @franz-wohlkoenig does not get the issue although he uses a 7.x php version.
Maybe it is related to his 7.0.22 bersion?
My version of PHP is 7.1.8

avatar infograf768
infograf768 - comment - 20 Dec 2017

I confirm: using php 7.0.22 does NOT throw the warning

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Dec 2017

@infograf768 confirm: got Error after changing PHP-Version to 7.1.8 in Mamp.

avatar infograf768
infograf768 - comment - 20 Dec 2017

@Quy
What is your PHP version?

avatar Quy
Quy - comment - 20 Dec 2017

PHP 7.1.11 & PHP 7.2.0

avatar Quy
Quy - comment - 29 Dec 2017

Maybe this will give some insights: https://forum.joomla.org/viewtopic.php?t=930067

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Dec 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-12-30 16:18:22
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 30 Dec 2017
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 30 Dec 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 30 Dec 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 30 Dec 2017

closed as having Pull Request #19233

Add a Comment

Login with GitHub to post a comment