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]
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]
Responses (6)
-
Accepted Answer
0hello.
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 -
Accepted Answer
-
Accepted Answer
0Hi. 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? -
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 »