Hi guys,
For three days i've been trying everything to get Zenphoto up and running, but i'm stuck at the setup page. Everything is green I only get three orange Warnings. But there is no Go button.
Here are the Warnings:
PHP-Version 5.2.17
Warnung!
Version 5.0.0 oder neuer ist notwendig. Version 5.3 oder neuer ist ausdrücklich empfohlen. Verwenden Sie ältere Version auf eigenes Risiko.
PHP magic_quotes_gpc [sind aktiviert]
Warnung!
Wir empfehlen dringend, magic_quotes_gpc zu deaktivieren. Für mehr Information lesen Sie bitte What is magic_quotes_gpc and why should it be disabled? im Zenphoto troubleshooting guide.
(I already tried fixing this by php.ini and htaccess but it doesn't work)
MySql Version 5.0.84
Warnung!
Version 5.0.0 oder neuer ist notwendig. Version 5.5.0 oder neuer ist ausdrücklich empfohlen. Verwenden Sie ältere Version auf eigenes Risiko.
It ends with:
SHOW TABLES [keine Tabellen gefunden] (no tables found)(no warning but it got me a little confused that the setup didn't generate any tables.)
I would really appreciate any suggestions you could give me!
Comments
Is this a new install or an upgrade. If a new install it is normal that no tables would be shown as they have not yet been created.
Anyway, most likely there is some kind of an error that has been generated. You will need to locate your server error logs and see what is reported.
thank you for answering so quickly. This is a new install. I think the error is related to mysql. I couldn't really find a log file or rather I found one but it only listed all the files that were accessed and didn't show any errors.
When I uploaded everything again and I didn't enter my mysql credentials it showed all the status checks. After entering the mysql data it stops at SHOW TABLES again.
The following step is a file system check, so if there is some access permissions issues that could fail. But of course, somewhere there should be the error message telling of that. Also I do not see why that would fail only if the database is connected.
So I think it gets back to the fact that we really do not have a guess as to what is wrong. So somehow you will need to find your PHP error logs.
Fatal error: Call to undefined function ngettext() in /home/sites/site15/web/zp-core/setup.php on line 1025
This is something you will have to ask your service provider about. I have never before heard of that function not being present. Certainly there is no way Zenphoto will run without it.
Thank you very much for your help!
Actually we have the lib-gettext so at least no fatal error appears if these are missing. So I guess that fallback does not work correctly then.
add the following to functions-basic.php
`
function ngettext($msgid1,$msgid2,$n) {
if ($n==0 || $n>1) {
return $msgid2;
}
return $msgid1;
}
`
Seems your install has the `gettext()` function so we do not load the alternate implementation, but it does not have the `ngettext()` function so it fails. The above is the alternate for that function. Note, though, that translations will not work in some cases (where `ngettext()` is used.
Again, thank you very much!
Ok one last question.
Do I need the ngettext function if I want to display everything in English? I'm setting up a site for a friend in the States. The default locale should then always be English or not?