Fatal error: Call to undefined function getuserlocale() in

Fatal error: Call to undefined function getuserlocale() in /mysite/zenphoto/zp-core/setup.php on line 87

Trying to install the software on a HostGator server and go this message after plugging in my MySql database info... did I do something wrong, or is this a bug with todays installation package?

Comments

  • Are there no other errors? That function is part of the release and should have been loaded before that call. Perhaps the load failed.

    Is it a new install or an upgrade? If a new install, please check to see if it created a zp-config.php file in the zp-core folder.
  • zp-config.php was created in the zp-core folder. It is a new install... any ideas?
  • I've got the error too :-(
    What to do? The software looks really nice! infact.. I love it! video support FTW!
    Please! help us solve this problem.. I get this when I try to reach the setup.php

    Fatal error: Call to undefined function getUserLocale() in C:\wamp\www\zenphoto\zp-core\setup.php on line 87
  • The only thing I can think of is to try uploading the zp release again.
  • that does not work sbillard.. :-(
  • Maybe you could try the nightly build.
  • The nightly build?
    Where do i download it? whats the difference with the usual rel?
  • well.. I've got an error on a different line now..
    Fatal error: Call to undefined function getUserLocale() in C:\wamp\www\zenphoto\zp-core\setup.php on line 91
  • Line numbers change over time. I have added some debugging output to setup.php to try to locate this issue. Please try the 7/8 nightly (tonight) build. But when you run setup add ?debug to the address: www.mydomain.com/zenphoto/zp-core/setup.php?debug

    This will produce a file named setup_log.txt in the zp-core folder. Attach that file to a ticket ( http://www.zenphoto.org/trac/newticket ) and maybe we will see what is happening.
  • Not sure how I got it fixed, but it is up and running now. I think it must have been a miskey of the MYSQL info. I tried several different ways and the last worked ( I really should have written down what I did each time) . Love the program, and now that I have figured out the FTP (only wish that the program had a bulk uploader instead of having to upload individual files or using a FTP client..) client stuff, it is working wonderfully. Thanks for the support and the wonderful program.
  • acrylian Administrator, Developer
    You can also upload zip-archives with several images.
  • It's like magic.. it worked. but i get this:

    PHP gettext() support [is not present]

    Localization of Zenphoto currently requires native PHP gettext() support

    How do i add phpgettext support? :-(
  • acrylian Administrator, Developer
    Gettext is a php extension that needs to be installed on your server to use the i18n feature. I suggest to ask your host about it.
  • i have done everything on here and am not authorized to give tickets, i am still having the same problems

    Fatal error: Call to undefined function getUserLocale() in C:\wamp\www\widget_corp\zenphoto\zp-core\setup.php on line 91

    any ideas?
  • You have to register to create a ticket. http://www.zenphoto.org/trac/account

    However, your best bet is to upgrade to the nightly build. We have been working on internationalization and many fixes are there. `getUserLocale()` is part of the internationalization implementation.
  • ok it is working but i still get these errrors

    PHP gettext() support [is not present]

    Localization of Zenphoto currently requires native PHP gettext() support

    PHP setlocale() failed

    Locale functionality is not implemented on your platform or the specified locale does not exist. Language translation may not work.

    i know you said that i should talk to my host about the gettext but i am hosting it on wamp it should be working from what i can tell,

    any suggestions?

    also i have never used this before will it be fairly easy to display these photo albums and everything, i am assuming yes but keep running into problems with the simple intallation
  • actually i do not need to use any other languages but am still running into many problems,

    when i upload a picture am i supposed to see the picture? anytime i click to view a gallery i get nothing i get the error

    Not Found

    The requested URL /mysite/zenphoto/a/038_38.JPG.php was not found on this server.
  • i'm having the same getUserLocale() problem with setup.php - i've worked out that the
    `if (!$connection) { // setup a primitive environment` code block at lines 82-86 isn't being called - editing out the `if` statement and letting the block run regardless lets the setup work properly.
  • If you are not using the current nightly build, you should do so.
  • I got the solution !!!
    if u r running for first time then run first setup.php,,so atleast it can create/change ur zp-config file...
    go through 'zp-config.php' file and just check it out database name (its a name which u given on time of installation).Go to MYSQL command prompt and create a database which u got from 'zp-config.php' file..now run PATH/zp-core/index.php..it will give error of NO tables found..and also give u a link of 'run setup script again',,click on it,,,now again it redirect to u SETUP page,but this time u ll not get any error,,click on GO button (at end of the page) and it ll ask u to create Admin name,Password etc etc

    Hope it ll help....
  • TO SWISSBEETS

    UPGRADE UR PHP to resolve gettext() problem
  • I too am getting this error. I installed the latest nightly build and it still does not work.
    Fatal error: Call to undefined function: getuserlocale() on line 87

    I am particularly frustrated because it worked brilliantly on dreamhost. Please, help!
  • So, what nightly build exactly did you load? None of the calls on `getuserlocale()` are on line 87 in the current build. In fact, that line is where the call was in setup.php on the 1.1.7 release, so maybe you did not mangage to upgrade to the nightly build.

    Usually the error messages also include a function name--that is really helpful to people who are trying to diagnose your problems.
  • hmmm you are correct, it looks like I downloaded the nightly build from july >_<

    edit: http://www.zenphoto.org/files/nightly/
  • The latest nightly build combined with a new Database seemed to fix the problem. Thanks for your help!
Sign In or Register to comment.