0
So I just bought the Music Collection and installed it and right away I am getting a parse error on the page that I linked my menu item to. The error reads the following:
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /home/content/h/o/p/hopealivemedia/html/components/com_muscol/models/album.php on line 205
I am using joomla 1.5 with php5.
My website is hopealivemedia.org - - - the link that's not working is the first one in the top left menu - "Hope Alive Records".
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /home/content/h/o/p/hopealivemedia/html/components/com_muscol/models/album.php on line 205
I am using joomla 1.5 with php5.
My website is hopealivemedia.org - - - the link that's not working is the first one in the top left menu - "Hope Alive Records".
Responses (7)
-
Accepted Answer
0hello
open file /components/com_muscol/models/album.php
go to line 203, and replace the whole function for this one:
function get_ids_same_format_group(){
if (empty( $this->_ids_same_format_group )) {
$album = $this->getData() ;
$artist_id = $album->artist_id;
$format_id = $album->format_id;
$display_group = $album->display_group;
$query = " SELECT #__muscol_albums.id FROM #__muscol_albums
LEFT JOIN #__muscol_format ON #__muscol_format.id = #__muscol_albums.format_id
WHERE artist_id = $artist_id
AND (display_group = '$format_id' OR format_id = '$format_id' OR format_id = '$display_group')
ORDER BY year,month";
$this->_db->setQuery( $query );
$this->_ids_same_format_group = $this->_db->loadResultArray();
}
//print_r( $this->_ids_same_format_group);
return $this->_ids_same_format_group;
} -
Accepted Answer
0Thanks,
This got the page working but I am still getting other parse errors.
The music wont play when I hit either of the play buttons. In addition when I click on the song name I get the following error:
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /home/content/h/o/p/hopealivemedia/html/components/com_muscol/models/song.php on line 61
When I click on the download link i get this error:
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/h/o/p/hopealivemedia/html/components/com_muscol/views/file/view.raw.php on line 22
I left the page up as is on my site for you to check it out:
http://hopealivemedia.org
click the "hope alive records" menu link up top
Thanks. -
Accepted Answer
0well, I can tell you all these are the same error
this is so strange.. this parse errors are natural on PHP 4... I know you are running php 5, but... can you check again??jus to be sure...
open components/com_muscol/models/song.php
go to line 61 and replace this:
$album_id = $this->getData()->album_id;
for this:
$album = $this->getData();
$album_id = $album->album_id;
-
Accepted Answer
0for the other problem, its kinda the same...
but there's something going on here with your PHP configuration.. I'm sure there is some parameter on php that you can change so all this problems are avoid... :S
open components/com_muscol/models/song.php
go to line 22, replace
global $mainframe, $option;
for
global $mainframe;
global $option;
-
Accepted Answer
-
Accepted Answer
-
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 »