Warning Message

R. Ekin
R. Ekin
Offline
0
Warning: Creating default object from empty value in

/home/XXXXXXXXXX/public_html/components/com_muscol/models/search.php on line 335


How can I fix this problem?
Check attached screenshot please.


Thank you
Attachments:
Responses (3)
  • Accepted Answer

    Joan Vilà
    Joan Vilà
    Offline
    Thursday, July 09 2015, 08:49 AM - #Permalink
    0
    Hello,

    Thank you for sharing the problem.

    You can fix it by adding the line
    $genre = new stdClass();
    between the line 334 and 335.

    if ($genre_id > 0) {
    $genre = new stdClass();
    $genre->id = $genre_id ;
    ...

    We will solve it too for the next versions of Music Collection.

    Thank you,
    Joan
    The reply is currently minimized Show
  • Accepted Answer

    R. Ekin
    R. Ekin
    Offline
    Thursday, July 09 2015, 10:15 AM - #Permalink
    0
    Hello,

    When I add, I saw this error (Check please attached screen) , so I removed what you give me code.

    if ($genre_id > 0) {
    $genre = new stdClass();
    $genre->id = $genre_id ;


    I added between 334 - 335 (Maybe I added wrong way, can you check?

    Thank you
    The reply is currently minimized Show
  • Accepted Answer

    Joan Vilà
    Joan Vilà
    Offline
    Thursday, July 09 2015, 10:38 AM - #Permalink
    0
    Oh, sorry, I wasn't clear,

    You only need to add
    $genre = new stdClass();
    between the line 334 and 335.

    The code below was the resulting code when the line is added.

    Tell me if that works,
    Joan
    The reply is currently minimized Show
Your Reply