Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Parse error
Old 02-20-2008, 10:40 AM   #1
socalmom
Calendar User
 
socalmom is offline
Join Date: Feb 2008
Posts: 5
Default Parse error

The calendar has been working fine, but today, we get the following error:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/donna100/public_html/modules/escal/calendar.php on line 41

I have a support ticket out to my host to find out if they did anything on the server end.

In the meantime, here is what line 41 looks like:

echo "<link href="theme/$currentTheme/esstyle.css" rel="stylesheet" type="text/css">";


I am not knowledgeable to figure out what is extraneous or missing. Can you help?

Thank you!

.. Donna
-------------
Donna Schwartz Mills
http://www.socalmom.net
 

Old 02-20-2008, 10:48 AM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

That line should read:

echo "<link href=\"theme/$currentTheme/esstyle.css\" rel=\"stylesheet\" type=\"text/css\">";
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Thank you for your quick response
Old 02-20-2008, 11:23 AM   #3
socalmom
Calendar User
 
socalmom is offline
Join Date: Feb 2008
Posts: 5
Default Thank you for your quick response

I made the change and am now getting a parse error in line 42:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/donna100/public_html/modules/escal/calendar.php on line 42

This is line 42:

echo "<link href="theme/categories/categories.css" rel="stylesheet" type="text/css">";

I tried adding the \ character that was missing in line 41, but got a different error. So then I tried mirroring line 41 more exactly, but that did not work either, so put the script back the way it was.

I'm sorry for being so clueless! I only know enough HTML to be dangerous (and put up easy-to-install scripts like this one).

Thank you again.

.. Donna
 

Old 02-20-2008, 11:56 AM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

It seems your server may have re-written that file and not properly escaped the quote marks.

The quickest/easiest way to fix this is to up load a new calendar.php file then log into the Setup Manager to fix the paths. Then be sure to secure the file so the server can't re-write the file.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Thanks again!
Old 02-20-2008, 02:45 PM   #5
socalmom
Calendar User
 
socalmom is offline
Join Date: Feb 2008
Posts: 5
Default Thanks again!

It's working now!

I changed the permissions to 646 -- is that the best one to ensure the server doesn't rewrite it again? (Sorry to be such a nimnull... like I said, a little knowledge is dangerous.)

Thank you again, Brian.

.. Donna
 

Old 02-20-2008, 03:23 PM   #6
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

644 for the permissions.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

644 Doesn't work
Old 02-20-2008, 03:44 PM   #7
socalmom
Calendar User
 
socalmom is offline
Join Date: Feb 2008
Posts: 5
Default 644 Doesn't work

Hi, Gervais. I tried it at 644 and got an error message telling me to change it to at least 646.

It is a three-year-old version of Easy PHP Calendar (like I said, everything has worked fine for a very long time!)

Thank you!
 

Old 02-20-2008, 04:00 PM   #8
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Is it a full error, or just a warning? If only a warning, I'd live with it as that way you're sure that nothing will write to the file.

The new version actually gives you a warning if your file is not secure
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Not sure...
Old 02-20-2008, 04:09 PM   #9
socalmom
Calendar User
 
socalmom is offline
Join Date: Feb 2008
Posts: 5
Default Not sure...

...if it's a full warning, but I am unable to access the control panels until I change it back to 646.

I am tempted to buy the upgrade except that I put the calendar up for our PTA site when I was their volunteer webmaster, and my daughter doesn't even go to that school any longer! I'm only fixing things because the moms who are left on the PTA are even more clueless than I am.

Thank you again!
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: parse error, unexpected T_STRING, kerry General Support 10 01-07-2008 05:01 PM
Parse Error kk7x General Support 3 05-28-2007 05:28 PM
Parse error kpitzer General Support 3 02-10-2006 01:07 PM
Parse Error in calendar.php Damocles General Support 6 02-07-2006 07:44 AM
Parse error gordo General Support 1 06-29-2004 05:45 PM



All times are GMT -4. The time now is 02:15 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |