Jump to content

Parse error: syntax error, unexpected T_STRING


zghayes

Recommended Posts

Hi all

I'm a PHP & MySQL newbie and could use some help with an error that seems to have appeared out of nowhere on my website.

Here is a link to the site:  www.mr-sparkle.com

I'm using WordPress with Gallery 2 embedded.

The WordPress fuctionality of my site has no problems, it's somethng wrong with G2.  The site was having no issues and then yesterday, without me changing anything, this error popped up:

[quote]Parse error: syntax error, unexpected T_STRING in /home/zghayes/public_html/gallery2/main.php on line 115[/quote]

I've attached the main.php file for my site with the hope that someone here will be kind enough to help me out.  My site is mainly for sharing pictures with family, and my wife and I just had a baby daughter a couple weeks ago, so needless to say this outage is causing a lot of complaints from relatives.

Thanks in advance!

[attachment deleted by admin]
Link to comment
Share on other sites

Thanks for the quick reply, that problem is fixed..

Turns out though that somehow the entire file was corrupted.  I downloaded the main.php file from the Gallery 2 installer and it was 600+ lines of code vs my file which was 230ish.  After further inspection that wasn't the only file that happened to.  Looks like I'm spending part of the day reinstalling Gallery...
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.