Parse error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matheussousuke
    New Member
    • Sep 2009
    • 249

    Parse error

    Hi, how are you folks?



    I`m trying too add a link to my whmcs website but I`m receiving the following error

    Parse error: syntax error, unexpected T_SL in /home/mghosped/public_html/portal/messenger.php on line 23




    Here goes the code:

    Code:
    <?
    
    define("CLIENTAREA",true);
    
    require("dbconnect.php");
    require("includes/functions.php");
    require("includes/clientareafunctions.php");
    
    $pagetitle = $_LANG['messengertitle'];
    $pageicon = "http://bytes.com/images/messenger.gif";
    $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>';
    $breadcrumbnav .= '<a href="http://mghospedagem.com/portal/messenger.php">messenger</a>'; 
    
    initialiseClientArea($pagetitle,$pageicon,$breadcrumbnav);
    
    if ($_SESSION['uid']) {
      # User is Logged In - put any code you like here
    } 
    
    
    # Define the template filename to be used without the .tpl extension
    
    $templatefile = "messenger";  << change this to the name of your tpl file.
    
    outputClientArea($templatefile);
    
    ?>

    I tried removing quoatas from line 11 and 12 but even so got the same error, help me please.


    PS: I`m having another trouble, I add categories and articles inside whcms admnistration, and they works (only in admin)
    But they doesnt work on the site frontend

    See here, just click on the folder icons behind ¨Categorias¨:





    Thanks
    Last edited by Atli; Sep 17 '09, 02:10 AM. Reason: Added [code] tags.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hey.

    Is the "<< change this to the name of your tpl file." on line #23 really a part of your code, or did it get in there by accident?

    If it is there, that would be your problem. It should be removed.

    Comment

    • TheServant
      Recognized Expert Top Contributor
      • Feb 2008
      • 1168

      #3
      Yeah, PHP's comments are not "<<" but instead "//". I am guessing that that line was meant to be removed when you changed the name of your tpl file.

      Have a look here if you want to know more about comments.

      Comment

      • matheussousuke
        New Member
        • Sep 2009
        • 249

        #4
        ¬¬" that was really it, I had forget how comments begin and ignored that part XP

        Removed it, it's working fine now XD


        Thanks guys, u helped a lot. XD

        Sorry for that, but...

        There's just one more thing, what about the trouble with whmcs?

        Comment

        • TheServant
          Recognized Expert Top Contributor
          • Feb 2008
          • 1168

          #5
          Glad that's solved.

          You should start a new topic, and be a bit more specific with your question on whmcs. Remember, they do have their own customer support, we help people with PHP.

          Comment

          • matheussousuke
            New Member
            • Sep 2009
            • 249

            #6
            yup, u right, thnks for all again. see ya

            ^^

            Comment

            Working...