Results 1 to 6 of 6

Thread: Reporting outdated/wrongful documentation

  1. #1
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Reporting outdated/wrongful documentation

    Where would I report problems with the documentation? I found a problem in the documentation that logs error messages if used in that way. The problem is not really in the Contao core php code so it is not a bug. Who maintains the Contao website? Is that Leo?

    The following part of the hooks documentation is incorrect and also generates error messages inside the log file if used as documented: http://www.contao.org/hooks.html#postLogout The hook is also executed for backend users...

    See here for more information: viewtopic.php?f=4&t=3248&p=14031&hilit=postLogout# p14026

    And my error message:
    [29-Jul-2011 09:48:07] PHP Recoverable error: Argument 1 passed to MemberLogout::redirectLoggedOutMember() must be an instance of FrontendUser, instance of BackendUser given, called in C:\xampp\htdocs\domein.nl\system\libraries\User.ph p on line 438 and defined in C:\xampp\htdocs\domein.nl\system\modules\member_lo gout\MemberLogout.php on line 3

  2. #2
    User
    Join Date
    01-20-11.
    Location
    Germany
    Posts
    77

    Default Re: Reporting outdated/wrongful documentation

    Hello,

    did you create a theme with a page layout and assigned that as default layout or assigned it to your page?

    Jan
    Free support only here in the forum.
    Please report bugs for my extensions using http://www.contao-forge.org. Thanks!
    Requests for Contao support and development please send mail to jan@theofel.de

  3. #3
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: Reporting outdated/wrongful documentation

    Did you mean to post here? viewtopic.php?f=4&t=3300
    Your answer has nothing to do with my query...

  4. #4
    User
    Join Date
    06-19-09.
    Posts
    328

    Default Re: Reporting outdated/wrongful documentation

    Hi Ruud,

    can you try your code in a clean installation?

    Quote Originally Posted by Ruud
    [29-Jul-2011 09:48:07] PHP Recoverable error: Argument 1 passed to MemberLogout::redirectLoggedOutMember() must be an instance of FrontendUser, instance of BackendUser given, called in C:\xampp\htdocs\domein.nl\system\libraries\User.ph p on line 438 and defined in C:\xampp\htdocs\domein.nl\system\modules\member_lo gout\MemberLogout.php on line 3
    My system/libraries/User.php do not have any call to the postLogout HOOK on line 438 and I can not find it in the online repository for version 2.9.5
    Consulenza Contao CMS https://www.intco.it

  5. #5
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: Reporting outdated/wrongful documentation

    I found the problem. First off, I'm using 2.10 rc1, the hook was recently added. I didn't check tickets at first because I hadn't expected that the hook got added for a second time... The problem I'm describing has already been identified by Andreas in the ticket that belongs to this change: http://dev.contao.org/issues/2710

    So the documentation should change to not include the type for the user object. If it doesn't I'll go and ask...

  6. #6
    User
    Join Date
    06-19-09.
    Posts
    328

    Default Re: Reporting outdated/wrongful documentation

    Quote Originally Posted by Ruud
    I found the problem. First off, I'm using 2.10 rc1, the hook was recently added. I didn't check tickets at first because I hadn't expected that the hook got added for a second time... The problem I'm describing has already been identified by Andreas in the ticket that belongs to this change: http://dev.contao.org/issues/2710

    So the documentation should change to not include the type for the user object. If it doesn't I'll go and ask...
    I am sure the documentation will be updated when the 2.10 will be released as stable.

    You can test the type of User by using the instanceof operator
    Consulenza Contao CMS https://www.intco.it

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •