Page 1 of 1

Login to admin doesn't work - get only welcome admin message

Posted: 01 Jan 2009, 06:34
by Bmacuser
Update: It seems to be an issue if the whole gallery is in a protected (.htaccess) directory. I don't know why. But i'm still interesting about the error message below.

http://www.swiss-gallery.ch/test
user:test/PW:test


I only get the welcome message. My gallery in main directory is working fine without any errors.. This issue appears since Upgrade to X2.

i found a error file in the imagevue directory. This happens since update to X2.
Code
[01-Jan-2009 12:16:21] PHP Warning:  Unknown(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so: undefined symbol: zend_str_tolower_copy in Unknown on line 0
[01-Jan-2009 12:16:21] PHP Warning:  Unknown(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
[01-Jan-2009 12:16:21] PHP Warning:  Unknown(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so: undefined symbol: zend_make_callable in Unknown on line 0
[01-Jan-2009 12:16:21] PHP Warning:  Unknown(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce in Unknown on line 0
Any idea about this? otherwise i will ask my hoster.

Regards
Bjà¶rn[/code]

Posted: 01 Jan 2009, 15:02
by Nick
Something on your side. Those .so files some libraries Apache web server uses on your side.

Those errors are not related to Imagevue.

Posted: 02 Jan 2009, 03:22
by Bmacuser
ok, then i will ask my hoster about the error file. And the issue with the protected directory is also an Hosting issue? before update to X2 it was working to login to admin in a protected directory.

Posted: 02 Jan 2009, 04:59
by Nick
Not sure what you mean by error in protected directory - works fine for me.
Also if you using .htaccess to lock admin dir, please make sure you set same login and password for imagevue admin too.

Posted: 02 Jan 2009, 05:51
by Bmacuser
Can you access the admin Frontend? if i logon i only get the message "welcome admin" i can try to re-login but nothing happens.

if i remove the directory protection then its working fine:

the protection is on folder "test" with the gallery inside. Before update to X2 there was no problem to access the admin in a protected directory. if there is only a picture folder protected i guess then it shouldn`t be any problem. But my privat Gallery is an additional "stand alone" gallery. My cache is also deleted before each test.

Posted: 02 Jan 2009, 10:50
by Nick
Yes, you right.

After it been requested we implemented .htaccess authorization.
But, before enabling .htacess, you have to create matching user and password in imagevue admin, in your case - test/test.

Please try renaming .htaccess, add test/test and put .htaccess back.

Posted: 02 Jan 2009, 16:17
by Bmacuser
Update: now everything is clear from my side

you need to setup a 2nd user for .htaccess with the same login like on admin side. nobody should know these login. you can provide the 1st account to all other user.

Error log has been solved :-) Error log happens due to a own php.ini which requires PHP5. It was still on PHP4.


Regards
Bjà¶rn

Posted: 22 Jan 2009, 13:21
by dezzo
Guys, I'm having the same problem creating an admin user in a test gallery installed into a password protected folder. When I log on as admin/admin I only get the message "welcome admin" and nothing happens.

I have tried to understand Pain's solution but when you say
But, before enabling .htacess, you have to create matching user and password in imagevue admin, in your case - test/test.

Huh??? How can I create a matching user and password in imagevue admin if I cannot even get into the admin?
Please try renaming .htaccess, add test/test and put .htaccess back.
What .htaccess file are you talking about? There is only one .htaccess file that I can see and, that is in the root level of my password protected folder. My test installation is in a folder called "test" inside the password protected folder. I do not see any .htaccess file in there.

And Bmacuser when you say
you need to setup a 2nd user for .htaccess with the same login like on admin side. nobody should know these login. you can provide the 1st account to all other user.
I don't know what that means. How do I set up a 2nd user for .htaccess??

Can somebody give a more clear and concise explanation of how to install an imagevue gallery in an already password protected folder?

Posted: 22 Jan 2009, 16:29
by Nick
What I tried to say - user logins and passwords should match for protected folder and imagevue gallery before you try it.

Posted: 22 Jan 2009, 18:00
by dezzo
I finally got access to my admin section. I know this will be fixed in the next update but, what I did was this. I had no problem creating a functioning admin password in a non-password protected folder. So I took the imagevue/config/users.php file from the functioning installation and replace the users.php file in the password protected folder gallery config folder. It didn't work at first. It simply showed the "welcome, admin" alert, indicating that the password was in fact functioning but the text fields cleared and simply stayed on the screen and did not enter the admin section.

Bmacuser said he created a second user. So, that is what I did in my non password protected installation. I created admin and admin2, both with admin priviledges and, once again replaced the imagevue/config/users.php file into the password protected installation. Then it worked. I'm not sure why but, it did and I'm happy.