Vital
Vital
Offline
0
I am having a problem with my Music Collection component.
whenever I try to create a new album, it gives me this erorr
Fatal error: Call to undefined function: str_ireplace() in /homepages/33/d233046666/htdocs/v-talik.com-joomla/administrator/components/com_muscol/tables/album.php on line 118
and I have went and tried looking for line 118, but on all album.php files, there is a line saying a command as: str_ireplace
I attached the file, and if anyone would be able to take a look at it?
I'm totally lost here... Thanks. [file name=album.zip size=1737]http://www.joomlamusicsolutions.com/images/fbfiles/files/album.zip[/file]
Attachments:
Responses (6)
  • Accepted Answer

    Sunday, May 31 2009, 09:58 AM - #Permalink
    0
    hello.

    there are several threads on this forum about this.

    This happens because you are running PHP 4 when you should be running PHP 5. the function str_ireplace is only available from php 5

    but no big deal, all you have to do is replace the calling to this function to a call to "str_replace" (without the "i") and everything shold work fine.

    If I'm not wrong, the same happens on file tables/artist.php

    also, search for "str_ireplace" and replace with "str_reaplce"

    all will work great then
    The reply is currently minimized Show
  • Accepted Answer

    Vital
    Vital
    Offline
    Monday, June 01 2009, 07:34 PM - #Permalink
    0
    Thank you for your reply. but the problem is that I canNOT find the line saying "str_ireplace" in the album.php file. I attached the file to this post, you can see for yourself, I can't find it... Thank you for your help!
    The reply is currently minimized Show
  • Accepted Answer

    Vital
    Vital
    Offline
    Monday, June 01 2009, 10:41 PM - #Permalink
    0
    Hi. I've actually found the line through another editor. Seems that the one I used doesn't show all functions. But there is still a problem, that whenever I put a new song, you can preview it, but all these other errors show up such as:
    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /homepages/33/d233046666/htdocs/v-talik.com-joomla/components/com_muscol/models/album.php on line 202

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /homepages/33/d233046666/htdocs/v-talik.com-joomla/components/com_muscol/models/song.php on line 58

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/33/d233046666/htdocs/v-talik.com-joomla/components/com_muscol/views/file/view.raw.php on line 20

    And If my hosting service has PHP4 installed, is there anyway I can upgrade to PHP5?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 02 2009, 02:00 PM - #Permalink
    0
    hello,
    post alink to your site and I'll check it myself
    The reply is currently minimized Show
  • Accepted Answer

    Vital
    Vital
    Offline
    Tuesday, June 02 2009, 06:30 PM - #Permalink
    0
    My website is www.v-talik.com
    Thank you
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 02 2009, 07:20 PM - #Permalink
    0
    hello Vital

    before going on, could you please refer me your purchase order number or reference?
    I tried to search it but could not found it... maybe you did the purchase under a different name?

    thanks :)

    Germi
    The reply is currently minimized Show
Your Reply