473,395 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Parse error

matheussousuke
249 100+
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:

Expand|Select|Wrap|Line Numbers
  1. <?
  2.  
  3. define("CLIENTAREA",true);
  4.  
  5. require("dbconnect.php");
  6. require("includes/functions.php");
  7. require("includes/clientareafunctions.php");
  8.  
  9. $pagetitle = $_LANG['messengertitle'];
  10. $pageicon = "http://bytes.com/images/messenger.gif";
  11. $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>';
  12. $breadcrumbnav .= '<a href="http://mghospedagem.com/portal/messenger.php">messenger</a>'; 
  13.  
  14. initialiseClientArea($pagetitle,$pageicon,$breadcrumbnav);
  15.  
  16. if ($_SESSION['uid']) {
  17.   # User is Logged In - put any code you like here
  18.  
  19.  
  20. # Define the template filename to be used without the .tpl extension
  21.  
  22. $templatefile = "messenger";  << change this to the name of your tpl file.
  23.  
  24. outputClientArea($templatefile);
  25.  
  26. ?>

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¨:

http://mghospedagem.com/portal/knowledgebase.php



Thanks
Sep 17 '09 #1
5 1418
Atli
5,058 Expert 4TB
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.
Sep 17 '09 #2
TheServant
1,168 Expert 1GB
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.
Sep 17 '09 #3
matheussousuke
249 100+
¬¬" 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?
Sep 17 '09 #4
TheServant
1,168 Expert 1GB
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.
Sep 17 '09 #5
matheussousuke
249 100+
yup, u right, thnks for all again. see ya

^^
Sep 17 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Steven | last post by:
I got a "Parse error: parse error in ..." in this line: if(empty($_POST){ ..... But if I fist assign $ssn=$_POST; and then if(empty($ssn){ ... it is working. Any advice? Thanks in advance.
1
by: H.L Bai | last post by:
hi, everybody i meet a parse error when i used the xml4c. any proposal is helpful. The error is following .../XMLRegionHandler.h:59 parse error before '*' .../XMLRegionHandler.h:60 parse...
2
by: Vittal | last post by:
Hello All, I am trying to compile my application on Red Hat Linux 8 against gcc 3.2.2. Very first file in application is failing to compile. I tried compiling my application on Linux 7.2...
21
by: BWIGLEY | last post by:
Basically I've just started making a game. So far it makes an array 25 by 20 and tries to make five rooms within it. In scr_make_room() there's parse errors: 20 C:\c\Rooms\Untitled1.c parse error...
6
by: trevor | last post by:
Incorrect values when using float.Parse(string) I have discovered a problem with float.Parse(string) not getting values exactly correct in some circumstances(CSV file source) but in very similar...
5
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C++ programming. FYI Although I have called...
1
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C programming. FYI Although I have called this...
1
by: Phaelle | last post by:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' What does that error mean? I can´t find the mistake!! In another script, I have got another kind of mistake : parse...
2
by: Lawrence Krubner | last post by:
Imagine a template system that works by getting a file, as a string, and then putting it through eval(), something like this: $formAsString = $controller->command("readFileAndReturnString",...
5
by: goldtech | last post by:
SAX XML Parse Python error message Hi, My first attempt at SAX, but have an error message I need help with. I cite the error message, code, and xml below. Be grateful if anyone can tell me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.