Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Users cannot select language - returns script error  (Read 2456 times)

0 Members and 1 Guest are viewing this topic.

wellandweb

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Users cannot select language - returns script error
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Users cannot select language - returns script error
« Reply #1 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
Code: [Select]
$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
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 15 queries.