• 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)

Status
Not open for further replies.

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',
 
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.
 
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.
Thanks Bob. Ive just recently updated our server to 22.04 and php 8.0 seemed a sensible move after checking xenforo requirements.
 
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.
 
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.
My mind is at rest. Thanks Bob :)
 
  • Like
Reactions: Bob
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 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).
 
Status
Not open for further replies.
Back
Top