1. REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Fixed Apache error log "Required parameter x follows optional parameter x" (possible PHP 8 bug)

Discussion in 'Sportsbook Resolved Bug Reports' started by madness85, May 7, 2022.

  1. madness85

    madness85 New Member Sportsbook

    Hi @Bob

    I'm on php 8.0 & SB 2.2.3

    Seem to be getting this in the logs.

    [proxy_fcgi:error] [pid 2008:tid 139749021079104] AH01071: Got error 'PHP message: PHP Deprecated: Required parameter $ownerWager follows optional parameter $settleMessage in /var/www/html/src/addons/XenAddons/Sportsbook/Repository/Bet.php on line 269PHP message: PHP Deprecated: Required parameter $challengerWager follows optional parameter $settleMessage in /var/www/html/src/addons/XenAddons/Sportsbook/Repository/Bet.php on line 335PHP message: PHP Deprecated: Required parameter $challengerWager follows optional parameter $settleMessage in /var/www/html/src/addons/XenAddons/Sportsbook/Repository/Bet.php on line 335',
     
  2. Bob

    Bob Developer Staff Member

    Looks like a PHP 8.0 issue. Sportsbook is not 100% PHP 8.x ready yet, so PHP 8.x errors are some what expected at this point.

    I'll move this into the bugs so that it can be tracked.
     
  3. madness85

    madness85 New Member Sportsbook

    Thanks Bob. Ive just recently updated our server to 22.04 and php 8.0 seemed a sensible move after checking xenforo requirements.
     
  4. Bob

    Bob Developer Staff Member

    You should be fine :) Those are just warnings, they are not preventing features in Sportsbook from working. If you come across any more, please let me know (that is how XF is dealing with PHP 8.0 and 8.1 bugs as well).

    btw. I am running PHP 8.1 and have not come across anything critical yet.
     
    madness85 likes this.
  5. madness85

    madness85 New Member Sportsbook

    My mind is at rest. Thanks Bob :)
     
    Bob likes this.
  6. madness85

    madness85 New Member Sportsbook

    The prefix is fixed. Should I just download the files again?
     
  7. Bob

    Bob Developer Staff Member

    I've marked this as fixed, however, the fix was made in Sportsbook 2.3.0 Beta 1, which has not been released yet. I might be able to get a maintenance release out before XF 2.3 (which would be Sportsbook 2.2.5).

    If you are already running the latest version (SB 2.2.4), there is no need. There is also nothing wrong with downloading the latest version and updating the addon :)
     
    madness85 likes this.
  8. Bob

    Bob Developer Staff Member

    @madness85 just letting you know that I've tagged this now with release version Sportsbook 2.2.5, which will be released soon (could be today, could be sometime next week).
     
  9. madness85

    madness85 New Member Sportsbook

    Appreciate the cleaner logs. Thanks Bob :)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.