ae3d
ae3d
Offline
0
Found an error on my MC main page where i am displaying the ARTIST module. I have made no changes to the code for this or any other MC file.
Message: Notice: Undefined variable: where in .../.../joomlasite.com/modules/mod_muscol_artists/helper.php on line 58

In the HELPER.php file i see "where" "order" and "limit" all have no defining variable unless its being set elsewhere.

 $query = 	' SELECT ar.*, ar.picture AS image, ge.genre_name, ar.artist_name AS name FROM #__muscol_artists as ar '.
' LEFT JOIN #__muscol_genres as ge ON ge.id = ar.genre_id ' .
$where .
$order .
$limit;
Responses (4)
  • Accepted Answer

    ae3d
    ae3d
    Offline
    Saturday, April 28 2018, 12:14 AM - #Permalink
    0
    Anything on this one? Its been almost a week and a half.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 29 2018, 09:52 AM - #Permalink
    0
    hello

    sorry I missed this one.
    yes, in PHP varaibles do not necessaruly need to be set before used..
    if you want, I can add those for you.

    if you're confortable editing code, all you need to do is add those at the beginning of that function, like so:

    static function getArtists(&$params){
    $where = "";
    $order = "";
    $limit = "";
    The reply is currently minimized Show
  • Accepted Answer

    ae3d
    ae3d
    Offline
    Tuesday, February 02 2021, 04:29 PM - #Permalink
    0
    still an issue on this one Sir.

    Please see here on the Artists Page.
    This appears on ALL artists pages.


    https://www.antifmradio.com/the-music/musicdatabase/1/104-4-strings

    Youll see the error
    : Undefined property: stdClass::$creation_year in
    /homepages/38/d692002752/htdocs/antifmradio.com/components/com_muscol/views/artist/tmpl/default_details.php
    on line
    34






    This is two years old.
    The reply is currently minimized Show
  • Accepted Answer

    ae3d
    ae3d
    Offline
    Friday, February 26 2021, 08:20 PM - #Permalink
    0
    Germi. My subscription is running out and i am still not getting my issues resolved
    The reply is currently minimized Show
Your Reply