Parse error for Russian users of the Gallery Parse error for Russian users of the Gallery
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Parse error for Russian users of the Gallery

Started by thedanu, October 15, 2007, 03:30:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thedanu

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

Hein Traag

Update first, you are running 1.4.12 ( <!--Coppermine Photo Gallery 1.4.12 (stable)--> )

thedanu

Thank you very much! I'll try to do it now, and if the problem stays I'll come back for help again  :)

Fallonized

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

???

François Keller

Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Fallonized

So updating all of the files is sure to not f up everything that I already did solve?

Nibbler

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.

Fallonized

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';
?>

Joachim Müller

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.