Parse error: syntax error, unexpected T_STRING in /home/losille2/public_html/gallery2/main.php on line 115

losille
losille's picture

Joined: 2005-08-21
Posts: 39
Posted: Sat, 2008-09-06 08:15

I have two galleries one stopped working and I get this error when I try to open it.
Parse error: syntax error, unexpected T_STRING in /home/losille2/public_html/gallery2/main.php on line 115


Gallery version (not just "2"):Gallery v1
PHP version :5.2.6
PHPInfo Link (see FAQ):
Webserver :Apache 1.3.41 (Unix)
Database :MySql 4.1.22-standard
Activated toolkits (e.g. NetPbm, GD):
Operating system :Linux
Browser : Firefox 2.0.0.16

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25940
Posted: Sat, 2008-09-06 17:46
 
losille
losille's picture

Joined: 2005-08-21
Posts: 39
Posted: Sun, 2008-09-07 00:11

I apologize for not having the exact information on the bottom of the form and the mistake on the version. When I clicked on the information for my other gallery that version came up.

The gallery has been up and functioning properly for several months.

I reloaded the both of the index.php files. The errors did not change.

Link: http://www.losille.com/gallery2/install/index.php
Error: Parse error: syntax error, unexpected T_STRING in /home/losille2/public_html/gallery2/install/templates/MainPage.html on line 159

Link: http://www.losille.com/gallery2/upgrade/index.php
Error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/losille2/public_html/gallery2/lib/adodb/adodb.inc.php on line 2295

http://www.losille.com/gallery2
Gallery version (not just "2"):Gallery 2.1.2
PHP version :5.2.6
PHPInfo Link (see FAQ): http://www.losille.com/gallery2/phpinfo.php
Webserver :Apache 1.3.41 (Unix)
Database :MySql 4.1.22-standard
Activated toolkits (e.g. NetPbm, GD): netpbm-10.26.38
Operating system :Linux
Browser : Firefox 2.0.0.16

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25940
Posted: Sun, 2008-09-07 01:58

What did the file integrity say?
Seems to be a host issue as:
http://www.losille.com/gallery2/lib/support/ even has the same issue.
php info link:
FAQ: What information is required when I ask for help in the forums?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
losille
losille's picture

Joined: 2005-08-21
Posts: 39
Posted: Sun, 2008-09-07 04:51
Quote:
php info link:
FAQ: What information is required when I ask for help in the forums?

I am confused are you saying the php info link I listed is not working or that I put the file in the wrong location?
PHPInfo Link (see FAQ): http://www.losille.com/gallery2/phpinfo.php

If it was a host issue, wouldn't this gallery on the same server also crash?
http://www.losille.com/gallery/index.php

Thanks for all your help.
Losille

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25940
Posted: Sun, 2008-09-07 06:43

For the 3rd time, what did the file integrity say?

Quote:
If it was a host issue, wouldn't this gallery on the same server also crash?

That is G1. If you want to test install another G2 and see if it works.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
losille
losille's picture

Joined: 2005-08-21
Posts: 39
Posted: Mon, 2008-09-08 04:30
Quote:
For the 3rd time, what did the file integrity say?

I am not sure why you are getting so upset with me. I told you in a previous post:

"I reloaded the both of the index.php files. The errors did not change.

Link: http://www.losille.com/gallery2/install/index.php
Error: Parse error: syntax error, unexpected T_STRING in /home/losille2/public_html/gallery2/install/templates/MainPage.html on line 159

Link: http://www.losille.com/gallery2/upgrade/index.php
Error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/losille2/public_html/gallery2/lib/adodb/adodb.inc.php on line 2295"

These are the instructions for getting file integrity, is it not?

"Browse to http://www.example.com/gallery/upgrade/index.php or http://www.example.com/gallery/install/index.php and advance to the System checks step. Make sure there are no warnings, and especially that the file integrity check passes (no missing / modified files). If there are missing / modified files, read this FAQ entry to fix it."

Is there a way to get the integrity file without using one of these indexes?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25940
Posted: Mon, 2008-09-08 13:39
Quote:
Is there a way to get the integrity file without using one of these indexes?

not that I know about.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25940
Posted: Tue, 2008-09-09 02:00
Quote:
Gallery version (not just "2"):Gallery 2.1.2

Are you sure that is right? because previously ( first post ) you said Gallery v1
If not then lets verify with vsersion.dat in the g2data directory.

Then lets over write the files you have with a fresh set of files from that version. here is 2.1.2:
http://sourceforge.net/project/downloading.php?groupname=gallery&filename=gallery-2.1.2-full.zip
verify a few files by looking at the top of the file for the @version $Revision: ####### $ to see if you have the right version.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team