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
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.
Responses (18)
-
Accepted Answer
-
Accepted Answer
0Of 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. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0Just 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.. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0For 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. -
Accepted Answer
0aver2000 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. -
Accepted Answer
0aver2000 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. -
Accepted Answer
1aver2000 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. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »