aver2000
aver2000
Offline
0
I bought Music Collection from you and it works great on php 7.1. But on php 7.3 the "Search" module stops working, and the page with this module simply does not load. When the module is turned off, the rest of the component works normally. Can we do something about it?

Accepted Answer

aver2000
aver2000
Offline
Thursday, January 18 2024, 01:16 PM - #Permalink
0
aver2000 wrote:

For everyone asking the solution.
I found two solutions, I don’t know which one will work for you, try it yourself, but it will definitely work.
------------------
Option 1.
In the file /modules/mod_muscol_search_bars/tmpl/default.php replace
<?php echo MusColHelper::searchalbums_form_content(MusColHelper::getGenresData()); ?>

on
<?php echo MusColHelper::searchalbums_form_content(MusColHelper::getGenresData(), 0); ?>

------------------
Option 2.
In the file /components/com_muscol/helpers/helpers.php replace on line 592
static function searchalbums_form_content($genre_list, $itemid  , $options = array()){

on
static function searchalbums_form_content($genre_list, $itemid = false , $options = array()){

------------------
This is all, it will work.
The reply is currently minimized Show
Responses (18)
  • Accepted Answer

    Friday, October 15 2021, 09:07 AM - #Permalink
    0
    Hi Aver2000,

    My live site runs on php 7.4.24 and my local testsite on 7.4.9 on both of them the search is working great.
    In the past they were running on php 7.3.... and I never had a problem with the search function than..

    Did you change anything?

    Appie
    The reply is currently minimized Show
  • Accepted Answer

    aver2000
    aver2000
    Offline
    Friday, October 15 2021, 01:42 PM - #Permalink
    0
    Of course, I changed something in the component settings to customize it for the site, but not in the search module, there is nothing to change there. Under php 7.4, an error is thrown:
    "Too few arguments to function MusColHelper :: searchalbums_form_content (), 1 passed in /public_html/modules/mod_muscol_search_bars/tmpl/default.php on line 4 and at least 2 expected".
    But under php 7.1 everything works, no errors.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, October 16 2021, 09:40 AM - #Permalink
    0
    Dont know the solution for that error sorry for that.. looks like their is something missing??

    BUT i have just set back my live site to use php 7.3.31 and all is working fine at my site. btw you know its (php 7.3) not longer getting updated so better to upgrade anyway if you can..
    The reply is currently minimized Show
  • Accepted Answer

    aver2000
    aver2000
    Offline
    Saturday, October 16 2021, 04:44 PM - #Permalink
    0
    The search itself works for me, if you connect it through the menu. The site freezes when I use the mod_muscol_search_bars module. Where I put this module, the page does not load, giving an error. Have you tried this module?
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, October 17 2021, 03:17 PM - #Permalink
    0
    Just tried the module on my test site..
    And I can confirm this does not work, indeed getting the same error as you.

    I did a search here on the forum and there are more people with this problem. Germinal is looking in to it says he in one of the topics..

    Hopefully this get sorted soon or with the new version to come..
    The reply is currently minimized Show
  • Accepted Answer

    aver2000
    aver2000
    Offline
    Sunday, October 17 2021, 04:03 PM - #Permalink
    0
    You just calmed me down. I thought that for me alone.
    The reply is currently minimized Show
  • Accepted Answer

    aver2000
    aver2000
    Offline
    Sunday, October 17 2021, 08:31 PM - #Permalink
    0
    lol. A programmer friend of mine found and fixed an error in the code in just 5 minutes. Now everything works on any php version.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 18 2024, 07:55 AM - #Permalink
    0
    Same problem... Anyone can post the solution?
    Thank you
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 18 2024, 11:22 AM - #Permalink
    0
    aver2000 wrote:

    lol. A programmer friend of mine found and fixed an error in the code in just 5 minutes. Now everything works on any php version.


    Would it be possible to let us know what he changed in what file? Or upload the file for us also to fix the problem?

    Thanks
    The reply is currently minimized Show
  • Accepted Answer

    aver2000
    aver2000
    Offline
    Thursday, January 18 2024, 01:11 PM - #Permalink
    0
    For everyone asking the solution.
    I found two solutions, I don’t know which one will work for you, try it yourself, but it will definitely work.
    ------------------
    Option 1.
    In the file /modules/mod_muscol_search_bars/tmpl/default.php replace

    on

    ------------------
    Option 2.
    In the file /components/com_muscol/helpers/helpers.php replace on line 592
    static function searchalbums_form_content($genre_list, $itemid , $options = array()){
    on
    static function searchalbums_form_content($genre_list, $itemid = false , $options = array()){
    ------------------
    This is all, it will work.
    The reply is currently minimized Show
  • Accepted Answer

    aver2000
    aver2000
    Offline
    Thursday, January 18 2024, 01:13 PM - #Permalink
    0
    aver2000 wrote:

    For everyone asking the solution.
    I found two solutions, I don’t know which one will work for you, try it yourself, but it will definitely work.
    ------------------
    Option 1.
    In the file /modules/mod_muscol_search_bars/tmpl/default.php replace

    on

    ------------------
    Option 2.
    In the file /components/com_muscol/helpers/helpers.php replace on line 592
    static function searchalbums_form_content($genre_list, $itemid , $options = array()){
    on
    static function searchalbums_form_content($genre_list, $itemid = false , $options = array()){
    ------------------
    This is all, it will work.
    The reply is currently minimized Show
  • Accepted Answer

    aver2000
    aver2000
    Offline
    Thursday, January 18 2024, 01:13 PM - #Permalink
    0
    aver2000 wrote:

    aver2000 wrote:

    For everyone asking the solution.
    I found two solutions, I don’t know which one will work for you, try it yourself, but it will definitely work.
    ------------------
    Option 1.
    In the file /modules/mod_muscol_search_bars/tmpl/default.php replace
    ""
    on
    " "
    ------------------
    Option 2.
    In the file /components/com_muscol/helpers/helpers.php replace on line 592
    static function searchalbums_form_content($genre_list, $itemid , $options = array()){
    on
    static function searchalbums_form_content($genre_list, $itemid = false , $options = array()){
    ------------------
    This is all, it will work.
    The reply is currently minimized Show
  • Accepted Answer

    aver2000
    aver2000
    Offline
    Thursday, January 18 2024, 01:15 PM - #Permalink
    1
    aver2000 wrote:

    aver2000 wrote:

    aver2000 wrote:

    For everyone asking the solution.
    I found two solutions, I don’t know which one will work for you, try it yourself, but it will definitely work.
    ------------------
    Option 1.
    In the file /modules/mod_muscol_search_bars/tmpl/default.php replace
    <?php echo MusColHelper::searchalbums_form_content(MusColHelper::getGenresData()); ?>

    on
    <?php echo MusColHelper::searchalbums_form_content(MusColHelper::getGenresData(), 0); ?>

    ------------------
    Option 2.
    In the file /components/com_muscol/helpers/helpers.php replace on line 592
    static function searchalbums_form_content($genre_list, $itemid , $options = array()){
    on
    static function searchalbums_form_content($genre_list, $itemid = false , $options = array()){
    ------------------
    This is all, it will work.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 18 2024, 01:31 PM - #Permalink
    0
    I tryed the second option andit works! Thank you very much.
    The only problem in the module is that I don't see the symbols to search and open details as I attached.
    How can I solve?
    The reply is currently minimized Show
  • Accepted Answer

    aver2000
    aver2000
    Offline
    Thursday, January 18 2024, 01:44 PM - #Permalink
    0
    Most likely you do not have the "Glyphicons Halflings" font connected, it is the one that gives the icons.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 22 2024, 06:48 AM - #Permalink
    0
    It is strange because in the component it works fine but not in the module. So I think it is not a font connection problem maybe.
    I attached screenshots to see the difference
    The reply is currently minimized Show
  • Accepted Answer

    aver2000
    aver2000
    Offline
    Monday, January 22 2024, 12:20 PM - #Permalink
    0
    What version of PHP are you working with? It is logical to assume that since this module already had code errors that did not work under older versions of PHP, then there are more.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 22 2024, 01:19 PM - #Permalink
    0
    I tryed all the php versions from 7.1 to 8.1 tha I'm using now but the problem remains.
    It is very uncorrect that there is not support at all for a component which is not free and without a possibility to be refund
    The reply is currently minimized Show
Your Reply