Aworewards and PHP7


  • Default avatar
    sklep    
     8 years ago
    0

    Hello


    I have: joomla 3.6.4, VM 3.0.18, PHP 7.0.12, Aworewards 2.2.9


    After upgrading to new joomla and PHP7  Aworewards stopped working at all and I couldn't reach it even in backend.

    1) I wanted to uninstall Aworewards but I couldn't. I could only uninstall all modules and plugins but the main component.

    2) I removed all aworewards files from serwer and Aworewards from Mysql table extension 

    3) I tried to install new version of Aworewards but it ends with blank screen with the only message that SQL tables were installed but it wasn't install properly.


    OPC Rupostel plugin emailed me about blank screens:

    RuposTel OPC plugin detected a problem with your site. 
    Your site caused a blank screen upon a visit of this URL: 
    https://www.e-dziewiarka.pl:443/qwerty/administrator/index.php?option=com_aworewards
    Error message data: 
    64 'continue' not in the 'loop' or 'switch' context in file: /home/admin/domains/e-dziewiarka.pl/public_html/qwerty/administrator/components/com_aworewards/helpers/helper.php line: 201 timestamp: 2016-10-30T09:06:48+00:00Please help meRadek
  • Your avatar
    seyi    
     8 years ago
    0

    Hello,

    It seems in php7 there is a fatal error at the end of the install process.  So find the file: /home/admin/domains/e-dziewiarka.pl/public_html/qwerty/administrator/components/com_aworewards/helpers/helper.php

    And in 2 places you will see the line

    <?php
    if (!count($files)) continue;
    ?>

    Delete them, that should fix the error.

  • Default avatar
    sklep    
     8 years ago
    0

    Thank you Seyi


    I will check if removing mentioned code helps.



    so far:


    I turned back to PHP 5.6 and I installed AwoRewards properly, then I switched to PHP7 (it's a huge better performance on my website).

    I had to turn off all AwoRewards plugins in order to VM work properly (plugins breaks orders during changing order status).


    Please test your component on PHP7. It's very useful tool and I can't do without it :-) but I need also PHP7 .

    My customers will hung me if I don't manage to solve this problem.

    Radek

  • Your avatar
    seyi    
     8 years ago
    0

    Hello,

    The fix I gave you above should also fix the issue when changing order status with AwoRewards plugin enabled.
  • Default avatar
    sklep    
     8 years ago
    0

    Thank you Seyi


    It seems work. I will test it.


    Radek