Setup doesn't continue

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

  • SHOW TABLES is the last thing shown on the page? If so, there must have been some sort of script error since there should another about 12 status checks displayed.

    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.
  • Hi sbillard,

    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 next "check" should be `Database field collations`. If SHOW TABLES found no tables that test should always succeed. It is checking to see if there are database tables whose collation sequence does not match the Zenphoto internal character set (presumably UTF-8). So I really do not know how you could get a stop before that point.

    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.
  • Got the error display working. After SHOW TABLES it says:

    Fatal error: Call to undefined function ngettext() in /home/sites/site15/web/zp-core/setup.php on line 1025
  • Ok, that would be an issue. That function is supposed to be part of PHP since PHP versin 4.2.0. Since we require PHP 5.0 or better it really should exist.

    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.
  • Alright my provider it is.
    Thank you very much for your help!
  • acrylian Administrator, Developer
    I thought actually that gettext is a optional PHP package that cannot be expected to be there always and should not be required to run Zenphoto at all unless you wish to use the multilingua features.

    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.
  • If you get nowhere with him there is a work-around you could make. But it does require hacking Zenphoto.

    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.
  • Brilliant, you just made my day. Now it works and it looks awesome.
    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?
  • acrylian Administrator, Developer
    No, you don't need any gettext functionality if you use only English as that is the native language of Zenphoto.
  • To be clear you need some version of the functions for Zenphoto not to error. For multiple languages you need working PHP gettext implementation, the alternate functions only give English.
Sign In or Register to comment.