Error when calling configuration in AWOcoupon PHP 8.0.27


  • Default avatar
    teresa6    
     10 months ago
    0

    Hi,
    the following error occurred when clicking on the configuration:

    0 in_array(): Argument #2 ($haystack) must be of type array, string given

    Error reporting gives these two lines:
    Deprecated: Required parameter $varname follows optional parameter $container in /var/www/vhosts/weingut-mehling.de/httpdocs/administrator/components/com_awocoupon/awocoupon/library/class-awocoupon-library-deepcopy.php on line 122

    Deprecated: Required parameter $var follows optional parameter $defined_vars in /var/www/vhosts/weingut-mehling.de/httpdocs/administrator/components/com_awocoupon/awocoupon/library/class-awocoupon-library-deepcopy.php on line 144

    Kind regards,

    Frank
  • Default avatar
    teresa6    
     10 months ago  last edited 10 months ago
    0

    Joomla 3.10.11
    AWOcoupon 3.6.0.9
  • Your avatar
    seyi    
     10 months ago
    0

    Hello,

    Those warnings will not cause that error.  Something else is off.  If you turn debug mode on temporarily and reload the page, do you get any more detail?
  • Default avatar
    teresa6    
     10 months ago
    0

    Have sent a PM...
  • Your avatar
    seyi    
     10 months ago
    0

    Thanks for the access, here is more detail on the error:



    So to fix, you will need ftp access to the web root.  In the file
    /administrator/components/com_awocoupon/awocoupon/admin/view/config/edit.php
    line 393
    is this
    <?php
                                    
    if ( in_array$orderstatus->order_status_codeAC()->param->get'giftcert_order_status', array() ) ) ) {
    ?>

    Please change it to this
    <?php
                                    
    if ( in_array$orderstatus->order_status_code, (array) AC()->param->get'giftcert_order_status', array() ) ) ) {
    ?>

    That should fix it.  Happy to do it directly if you can pm me access.

  • Default avatar
    teresa6    
     10 months ago
    0

    Hello Seyi,

    thanks for the quick response. I made the modifikation and it works fine!

    Have a nice day..

    Kind regards,
    Frank
  • Default avatar
    ssnobben    
     9 months ago
    0

    Is these products tested with php 8.2.+ and Joomla 4.3.3 ?

    Cheers!
  • Your avatar
    seyi    
     9 months ago
    0

    Has been used with php 8.2 but not necessarily stress tested.  But if there are any issues you find, happy to get them fixed.
  • Default avatar
    ssnobben    
     9 months ago
    0

    Ok great hope that is solved and working tested with php 8.2.+ then .

    thks