jQsafi / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

Unable to view site once logged in #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?
I expect to see the file explorer but see a blank web page.

What version of the product are you using? On what operating system?
Newest version 1.6.5.5 and Mac OS X Snow Leopard.

Please provide any additional information below.
I installed mollify using the installer and everything was accepted I created 
an admin and user, as of now both have RW privileges.  When I view the site I 
see the login box and any incorrect user/pass will not be accepted.  If I input 
the correct data nothing happens at all and when I refresh the page I see a 
blank screen.  I used '/mollify/backend/r.php/session/logout' to repeat the 
steps and verify what is happening.  

/* configuration file */
<?php

    $CONFIGURATION_PROVIDER = "file";

    $PUBLISHED_FOLDERS = array(
        "1" => array("name" => "Kiosk", "path" => "/kiosk/"),
        "2" => array("name" => "Groups", "path" => "/kiosk/groups/")
    );

    $USERS = array(
        "1" => array("name" => "Admin", "password" => "Kiosk_Admin", 
        "default_permission" => "RW", "folders" => array(
        "1" => NULL
        )),

        "2" => array("name" => "User", "password" => "Kiosk_User",  
        "default_permission" => "RW", "folders" => array(
         "2" => NULL
        ))
    );

    $SETTINGS = array(
   "permission_file" => "mollify.uac",
   "description_file" => "mollify.dsc"
    );

?>

Original issue reported on code.google.com by bluesnip...@gmail.com on 31 Aug 2010 at 2:38

GoogleCodeExporter commented 9 years ago
I've played around with the path formats ("kiosk","/kiosk","kiosk/", etc) with 
no success either.

Original comment by bluesnip...@gmail.com on 31 Aug 2010 at 3:16

GoogleCodeExporter commented 9 years ago
Here is my apache error log for when I enter the correct user data to login.

[Tue Aug 31 11:25:57 2010] [error] [client 172.31.4.98] MOLLIFY ERROR: 
Exception (NonExistingFolderException): Invalid folder definition, path does 
not exist [1], referer: 
http://172.31.4.98/mollify/client/B4EC0C01E6DD99A06C6C4677342D45C1.cache.html
[Tue Aug 31 11:25:57 2010] [error] [client 172.31.4.98] MOLLIFY ERROR: 
{0:{file:/Library/WebServer/Documents/mollify/backend/include/filesystem/Filesys
temController.class.php, line:127, function:assert, class:LocalFilesystem, 
type:->, args:{}}, 
1:{file:/Library/WebServer/Documents/mollify/backend/include/filesystem/Filesyst
emController.class.php, line:64, function:filesystem, 
class:FilesystemController, type:->, args:{0:{id:1, name:Kiosk, path:/kiosk/}, 
1:1}}, 
2:{file:/Library/WebServer/Documents/mollify/backend/include/filesystem/Filesyst
emController.class.php, line:46, function:getFolderDefs, 
class:FilesystemController, type:->, args:{0:}}, 
3:{file:/Library/WebServer/Documents/mollify/backend/include/filesystem/Filesyst
emController.class.php, line:108, function:getRootFolders, 
class:FilesystemController, type:->, args:{}}, 
4:{file:/Library/WebServer/Documents/mollify/backend/include/services/SessionSer
vices.class.php, line:77, function:getSessionInfo, class:FilesystemController, 
type:->, args:{}}, 
5:{file:/Library/WebServer/Documents/mollify/backend/include/services/SessionSer
vices.class.php, line:59, function:getSessionInfo, class:SessionServices, 
type:->, args:{0:1_5_0}}, 
6:{file:/Library/WebServer/Documents/mollify/backend/include/services/SessionSer
vices.class.php, line:50, function:authenticate, class:SessionServices, 
type:->, args:{}}, 
7:{file:/Library/WebServer/Documents/mollify/backend/include/services/ServicesBa
se.class.php, line:49, function:processPost, class:SessionServices, type:->, 
args:{}}, 
8:{file:/Library/WebServer/Documents/mollify/backend/include/MollifyBackend.clas
s.php, line:54, function:processRequest, class:ServicesBase, type:->, args:{}}, 
9:{file:/Library/WebServer/Documents/mollify/backend/r.php, line:47, 
function:processRequest, class:MollifyBackend, type:->, args:{0:Request}}}, 
referer: 
http://172.31.4.98/mollify/client/B4EC0C01E6DD99A06C6C4677342D45C1.cache.html

Original comment by bluesnip...@gmail.com on 31 Aug 2010 at 3:28

GoogleCodeExporter commented 9 years ago
Sorry for all the posts, obviously based on the server error my paths were 
wrong I put absolute paths instead and it worked.

Solved!

Original comment by bluesnip...@gmail.com on 31 Aug 2010 at 4:07

GoogleCodeExporter commented 9 years ago
No problem, I'm glad you solved it before I had time to react :)

Original comment by samuli.j...@gmail.com on 31 Aug 2010 at 5:15

GoogleCodeExporter commented 9 years ago
I have thу same problem, but my configuration.php without any paths to files.
but after installing, testing and then rebooting server a get a blank page
when i try to enter in admin mode i get "Invalid configuration
Invalid folder definition, path does not exist [1]" but nothing changed since i 
reboot it..

Original comment by usachev....@gmail.com on 1 Aug 2011 at 11:03

GoogleCodeExporter commented 9 years ago
Surely something has changed, things don't just stop working.

The error is quite clear, the path found in the db with id 1 does not exist. 
You should start with that. I recommend using absolute paths, they cannot be 
interpreted wrong.

Original comment by samuli.j...@gmail.com on 1 Aug 2011 at 12:23

GoogleCodeExporter commented 9 years ago
Sorry, i am new in linux,lamp,etc. so i don't understand in which file should 
find this line
what is the db with id 1 ?

Original comment by usachev....@gmail.com on 1 Aug 2011 at 12:50

GoogleCodeExporter commented 9 years ago
It's in db table "folders", you should have phpMyAdmin etc so you can modify 
them. Of course admin tool could let you in even with invalid folders, but at 
the moment it doesn't.

Original comment by samuli.j...@gmail.com on 1 Aug 2011 at 1:37

GoogleCodeExporter commented 9 years ago
I opened my phpmyadmin but don't find any paths. Can you look on my screenshots 
and I will be very happy if you help me. 
It's db problem, but i can't solve it by myself..

Original comment by usachev....@gmail.com on 2 Aug 2011 at 7:31

Attachments:

GoogleCodeExporter commented 9 years ago
You are looking at the db structure, not content. I think there should be 
browse tab somewhere, but you could also run "select * from folder" and "update 
folder set path='NEW_PATH' where id='ID'" (of course replace NEW_PATH and ID 
with correct values)

Another way could be to run "delete from folder" and "delete from user_folder", 
and then reopen admin tool and add folders again, now with absolute paths.

Original comment by samuli.j...@gmail.com on 2 Aug 2011 at 7:49