Re: gallery2 - installation problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Timothy Murphy wrote:

> Is anyone successfully using gallery2 under Fedora-6?
> 
> Having installed gallery2 with "yum install gallery2*"
> when I enter the first (Authenticate) step
> I get the message
> "Error: could not locate login.txt"
> even though the correct login.txt is in the same gallery2 directory
> as main.php, as advised.
> 
> I've googled for this message, and found many hits,
> but nowhere have I seen a coherent solution.

After spending a whole day on this,
I have come to the conclusion that there is a serious error in gallery2
as packaged by Fedora-6.
The file .../gallery2/install/steps/AuthenticationStep.class
contains two incomprehensible errors,
as described in the correction patch below.

I don't understand how whoever put this package together
failed to see this error,
since the program cannot have run as far as I can see.

-----------------------------------------
[tim@alfred steps]$ diff -u AuthenticateStep.class.orig
AuthenticateStep.class
--- AuthenticateStep.class.orig 2006-08-17 22:26:07.000000000 +0100
+++ AuthenticateStep.class      2007-02-18 03:05:33.000000000 +0000
@@ -52,7 +52,7 @@
     }

     function loadTemplateData(&$templateData) {
-       $authenticationDir = '/srv/gallery2';
+       $authenticationDir = '/var/www/html/gallery2';
        if (isset($_SERVER['DOCUMENT_ROOT'])
                && preg_match('#^' . $_SERVER['DOCUMENT_ROOT'] . '/(.*)#',
                              $authenticationDir, $matches)) {
@@ -62,7 +62,7 @@
        if (!$this->isComplete()) {
            /* Authenticate */
            $authenticated = false;
-           $authFile = '/srv/gallery2/login.txt';
+           $authFile = '/var/www/html/gallery2/login.txt';
            if (!file_exists($authFile)) {
                if (!$this->_firstTime) {
                    $templateData['errors'][] =
-----------------------------------------


-- 
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux