View Full Version : PHP error message
cferrero
7th of March 2005 (Mon), 02:32
Hi,
I've just been checking my server's error log, and the following messages recur quite frequently:
[Mon Mar 7 08:26:18 2005] [error] PHP Notice: Undefined index: photos_in_total_plural in /[mywebsite]/gallery/fetchsettings.php on line 1992
[Mon Mar 7 08:26:18 2005] [error] PHP Notice: Undefined index: photos_in_total_single in /[mywebsite]/gallery/fetchsettings.php on line 1991
It doesn't seem to be affecting the end-users' experience of the site as I've tested a lot and not noticed any visible errors. But still, it would be nice to fix whatever is causing this problem.
Any ideas?
Cheers,
Charlie
Pekka
9th of March 2005 (Wed), 05:19
There is a translation bit missing in your language file for the language you use. The file is languages/xxx/index.php and it should have also lines:
$translated["photos_in_total_single"] = "photo";
$translated["photos_in_total_plural"] = "photos";
cferrero
10th of March 2005 (Thu), 03:13
Hmmm, in
/gallery/languages/eng/index.php
I already have those two lines.
The full file reads
<?php
$translated["enter_exhibition"] = "enter exhibition";
$translated["photos_in_total_single"] = "photo";
$translated["photos_in_total_plural"] = "photos";
$translated["photos_from_contd"] = "photos from e.g.:";
$translated["photos_from_fullist"] = "photos from:";
$translated["unique_feedback"] = "give and read feedback";
$translated["global_feedback"] = "give and read feedback for all exhibitions";
$translated["some_random"] = "some random microthumbs from this exhibition";
$translated["ee_served"] = "has served here";
$translated["photo_pages"] = "photo pages";
$translated["version"] = "version";
$translated["most_popular_photos"] = "most popular photos (hits per day since launched)";
$translated["latest_photos"] = "latest photos";
$translated["random_photos"] = "some random photos";
$translated["latest_news"] = "latest news";
$translated["no_public_exhibs"] = "there are no public exhibitions";
$translated["in_this_group"] = "in this group";
$translated["come_back_later"] = "please come back later";
$translated["thanks"] = "thank you";
$translated["exhib_wrongpass"] = "there are no exhibitions under password";
$translated["has_been_viewed_a"] = " ";
$translated["has_been_viewed_b"] = "photo pages have been viewed to date on this site";
// ouput 5 stuff
$translated["select_exhib_from_menu"] = "select exhibition from menu";
$translated["featured_exhibitions"] = "featured exhibitions";
$translated["latest_exhibitions"] = "latest exhibitions";
$translated["orphan_exhibitions"] = "unsorted exhibitions";
?>
wkitty42
10th of March 2005 (Thu), 21:05
Hmmm, in
/gallery/languages/eng/index.php
I already have those two lines.
what other languages do you have installed?? are those lines in all of them??
cferrero
11th of March 2005 (Fri), 02:40
I have the default installation. I have not added any new languages.
Pekka
11th of March 2005 (Fri), 05:37
The error message is caused by a bug in list.php code.
if you add line
$getlang = $toroot . "languages/" . $lang . "/index.php";
include($getlang);
after other similar language calls starting from line 404 in list.php that should fix the error.
cferrero
14th of March 2005 (Mon), 02:55
Thanks - that fixed it. :)
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.