coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: wellandweb on November 23, 2004, 04:38:57 PM

Title: Users cannot select language - returns script error
Post by: wellandweb on November 23, 2004, 04:38:57 PM
I am using cpg132 with the Mac OSX theme on a Unix server.

The gallery has installed fine except that users cannot select the display language from either the language selection list or by clicking on the flags at the bottom of the screen.

When the mouse hovers over the flags, the browser shows the link as  http://mysitenamehere.co.uk/execscriptdir/php.cgi?lang=whatever_language_you_click_on

This is obviously the wrong path to the language files but I cannot find how to change this to the correct path of http://mysitenamehere.co.uk/cpg132/lang/

Thank You
Title: Re: Users cannot select language - returns script error
Post by: Joachim Müller on December 02, 2004, 09:14:23 AM
This is usually caused by improper server setup - make sure your server vars are properly populated (in your case: $_SERVER["SCRIPT_NAME"] ). If you can't do this, edit include/functions.inc.php and populate it manually be editing the line $cpgChangeUrl = $_SERVER["SCRIPT_NAME"]."?";(not recommended though, as this var is being used in other places as well, so you're bound to run into troubles in other places as well).

Joachim