coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: thedanu on October 15, 2007, 03:30:40 PM

Title: Parse error for Russian users of the Gallery
Post by: thedanu on October 15, 2007, 03:30:40 PM
I've already have some complain from russian users, stating that they get an error when they try to access my site. I got it myself aswell when I tried to change the language to Russian, so I tried removing the menu for choosing the language, but that didn't solve the problem either.
The exact error they get is the following:

Parse error: syntax error, unexpected T_STRING in /home/loudarts/public_html/cpg1412/lang/russian.php on line 66

Unluckily enough I don't know PHP, so I can't fix that error.
The link the the main page of the gallery is this:

http://www.loudarts.net/cpg1412/index.php

If anybody would need any more details I'd be most glad to provide them.
Thank you very much in advance,


Ane
Title: Re: Parse error for Russian users of the Gallery
Post by: Hein Traag on October 15, 2007, 03:34:28 PM
Update first, you are running 1.4.12 ( <!--Coppermine Photo Gallery 1.4.12 (stable)--> )
Title: Re: Parse error for Russian users of the Gallery
Post by: thedanu on October 15, 2007, 03:39:39 PM
Thank you very much! I'll try to do it now, and if the problem stays I'll come back for help again  :)
Title: Re: Parse error for Russian users of the Gallery
Post by: Fallonized on November 07, 2007, 06:59:18 PM
I'm having the same problem and I'm using cpg1.4. I see that there is a 1414 but I'm afraid that if I replace all of the files, it's all going to get messed up again. I've already fixed three things but then it just leads to another problem.


Parse error: syntax error, unexpected T_STRING in /home/.dom/fallonized/fallonized.org/FallonizeYourEyes/include/config.inc.php on line 12

???
Title: Re: Parse error for Russian users of the Gallery
Post by: François Keller on November 07, 2007, 07:05:43 PM
do as Hein suggest, update first
Title: Re: Parse error for Russian users of the Gallery
Post by: Fallonized on November 07, 2007, 07:07:56 PM
So updating all of the files is sure to not f up everything that I already did solve?
Title: Re: Parse error for Russian users of the Gallery
Post by: Nibbler on November 07, 2007, 07:42:18 PM
You need to fix this first before you can update. Download include/config.inc.php and open it in a text editor. Look for anything that's been added at the end that shouldn't be there. If you can't see the problem then attach the file to your next post, being sure to remove your login and password.
Title: Re: Parse error for Russian users of the Gallery
Post by: Fallonized on November 09, 2007, 04:38:28 AM
I altered line 12 with everything I could think of, prompting the message to tell me different things but never what I needed so I give up trying to figure out the problem myself.

Here's what I've got


<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =                         'mysql.fallonized.org';        // Your database server
$CONFIG['dbuser'] =                         '######';        // Your mysql username
$CONFIG['dbpass'] =                         '#####';                // Your mysql password
$CONFIG['dbname'] =                         'jimmyfallon';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] = ''fallonized.cpg132_config';
?>
Title: Re: Parse error for Russian users of the Gallery
Post by: Joachim Müller on November 09, 2007, 08:09:19 AM
Replace$CONFIG['TABLE_PREFIX'] = ''fallonized.cpg132_config';with$CONFIG['TABLE_PREFIX'] = 'fallonized.cpg132_config';(two single quotes at the start of the string). You must have edited the file manually in the first place - this isn't something that happens randomly.