0
Hello everyone,

I am new to Music Collection and PHP

I just setup music collection added three artists but when i try to do a search i get the following error:

Fatal error: Call to undefined function: str_ireplace() in /home/XYZ/XYZ/public_html/XYZ/components/com_muscol/models/search.php on line 259

Anybody has had this problem?

Thanks
Huerfanitos
Responses (10)
  • Accepted Answer

    Tuesday, January 11 2011, 06:03 PM - #Permalink
    0
    this problem occurs if you are running PHP 4.

    you need PHP 5 to run Music Collection! (it's said before you buy!)

    if you cannot upgrade to php5, then you'll just need to change this function to str_replace()...

    not a big problem
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 11 2011, 08:37 PM - #Permalink
    0
    According to my Hosting I am running version 5

    A simple PHP Info Query shows:

    Current PHP version: 5.2.14
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 11 2011, 08:42 PM - #Permalink
    0
    wow.. that makes no sense.. this function is perfectly defined in PHP5! look:

    http://php.net/manual/en/function.str-ireplace.php

    in any case, you can try opening that file and replacing this function for str_replace
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 11 2011, 10:02 PM - #Permalink
    0
    I have replaced str_ireplace with str_replace and the error went away but it shows no results in the search.

    It says No records found

    Anything else there is to do?

    Thanks for all your answers.

    Huerfanitos
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 12 2011, 11:26 AM - #Permalink
    0
    please put a link
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 12 2011, 12:00 PM - #Permalink
    0
    I have enabled the module.

    Visit huerfanitos.net and hit the "coleccion" link in the menu at the left; that will show the search form in the content area.

    I have only added three artists to the database:
    Archae
    Rocafuerte
    Eduardo escalera

    Do a search on any of them with the default filters.

    Additionally, if i click in the corresponding letter (A,R,E) the artist shows up.

    Let me know your findings.

    Maybe I have not populated enough fileds within the artist's record? :dry:

    Thanks,
    Huerfanitos
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 12 2011, 12:07 PM - #Permalink
    0
    Sorry! Menu at the right not the left
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 12 2011, 12:17 PM - #Permalink
    0
    its a bit strange.

    let me tell you how it works: the system always searches on the KEYWORDS field, of the album form

    maybe, for some reason, this field is emapty in your albums...

    this is weird, because the system fills them up automaticaly when you create the album... it concats album name + artist name...
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 12 2011, 03:36 PM - #Permalink
    0
    Solved!

    You were right.

    I read in other threads that keywords were needed for the search engine to work so I added keywords to the ARTIST but not the album.

    By adding keywords to the album the search engine was able to find the artist, album, song.

    But raised some other questions for me.

    So the important keywords for the search engine are the ones that are in the record of the:
    Album?
    Artist?
    Both?

    Is there a particular reason why the search only uses keywords as a means of finding records instead querying other fields like artist name, album name, etc?

    If you say that the system fills the keywords automatically when the album is created, then what went wrong? I know there are many variables but any hint or pointer to further investigate will be appreciated.

    Thank You,
    Huerfanitos
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 13 2011, 08:50 PM - #Permalink
    0
    the search system is a bit particular.

    the good thing is to have both album and artist name on the keywords.

    search system looks for "entire" works.
    so if you have "abbey road the beatles" and you type "abb" on the search, it will return nothing. you need to write, at least "abbey"

    on the other hand, the order does not matter. it looks at every word independanly. so "beatles road" will return the album, as well, for instance.
    The reply is currently minimized Show
Your Reply