Parse Error - Need Help

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".
Responses (7)
  • Accepted Answer

    Thursday, January 21 2010, 03:43 PM - #Permalink
    0
    hello

    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;
    }
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 21 2010, 05:27 PM - #Permalink
    0
    Thanks,

    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.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 21 2010, 05:41 PM - #Permalink
    0
    well, 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;
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 21 2010, 05:44 PM - #Permalink
    0
    for 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;
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 21 2010, 05:45 PM - #Permalink
    0
    if you know some PHP you'll see all this fixes are in fact just different PARSING syntaxis... this shouldn't happen on PHP 5!! :)
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 21 2010, 05:56 PM - #Permalink
    0
    Ahhh...

    double checked and I was seeing my database set up as 5.0.

    Looks like the php was 4.1

    Sorry.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 21 2010, 06:01 PM - #Permalink
    0
    ARRRGGGGGGRRRRGRG :angry: :angry: :angry:

    ;) just kidding. check better next time!! ;)

    update to php 5 and all problems should be gone :)

    let me know if I can help you in anything else

    best,
    Germi
    The reply is currently minimized Show
Your Reply