xoops forums

Forum Index


Board index » All Posts (rossb)




rossb

Just popping in
Posted on: 10/15 16:46
rossb
rossb (Show more)
Just popping in
Posts: 40
Since: 2006/8/28
#1

Re: Login not working except from user.php

Damn; xoops_session corrupt; repaired. All good now:)


rossb

Just popping in
Posted on: 10/14 20:47
rossb
rossb (Show more)
Just popping in
Posts: 40
Since: 2006/8/28
#2

Re: Login not working except from user.php

Thanks geekwright;

You have already gone above and beyond. To see the failure, you will have to be a real user.

Already using jGrowl redirect. As you state: likely my theme interfering.
will try Google Chrome's developer tools
bottom line: got some learning to do, to debug this.
for now, will just replace login control with a link to login, since I am focused on updating content, major release, new features will keep me busy for at least a week.

Regards;
Bill


rossb

Just popping in
Posted on: 10/13 18:49
rossb
rossb (Show more)
Just popping in
Posts: 40
Since: 2006/8/28
#3

Re: Login not working except from user.php

Thanks @geekwright

There must be something else. Still nada response. Already have debug on (no errs). Is there some instrumentation or debugging I can add to get to the root of this? Can you try the code, your site?

Regards;
Bill

Current (exactly as suggested):

<{if !$xoops_isuser}>
        <
form method="post" action="<{xoAppUrl /user.php}>">
        <
input type="hidden" name="op" value="login"/>
            <{
$smarty.const._LOGIN}>&nbsp;
            <
input name="uname" type="text" />&nbsp;&nbsp;<input name="pass" type="password"/>
            <
input type="hidden" name="xoops_redirect" value="<{$smarty.server.REQUEST_URI}>" />

            <{if 
$lang_siteclosemsg}>
                <
input type="hidden" name="xoops_login" value="1" />
            <{/if}>
            <
button type="submit"><img src="/SecureOffice_Images/icons/home.png" height="75%" alt="<{$smarty.const._LOGIN}>" /$
            <{if !
$lang_siteclosemsg}>
                &
nbsp;+&nbsp;<a href="<{xoAppUrl /register.php}>" class="register" title="<{$smarty.const._REGISTER}>"><{$smar$
            <{/if}>
        </
form>
    <{else}>


rossb

Just popping in
Posted on: 10/13 13:54
rossb
rossb (Show more)
Just popping in
Posts: 40
Since: 2006/8/28
#4

Re: Login not working except from user.php

Thanks @geekwright

For some reason (wearing too many hats), I'm still not getting it. Same result: nada when attempting to login. Here's the exact code, modified per my understanding of your suggestion:

<{if !$xoops_isuser}>
        <
input type="hidden" name="op" value="login"/>
            <{
$smarty.const._LOGIN}>&nbsp;
            <
input name="uname" type="text" />&nbsp;&nbsp;<input name="pass" type="password"/>
            <
input type="hidden" name="xoops_redirect" value="<{$smarty.server.REQUEST_URI}>" />

            <{if 
$lang_siteclosemsg}>
                <
input type="hidden" name="xoops_login" value="1" />
            <{/if}>
            <
button type="submit"><img src="/SecureOffice_Images/icons/home.png" height="75%" alt="<{$smarty.const._LOGIN}>" /></button>
            <{if !
$lang_siteclosemsg}>
                &
nbsp;+&nbsp;<a href="<{xoAppUrl /register.php}>" class="register" title="<{$smarty.const._REGISTER}>"><{$smarty.const._REGISTER}></a>&nbsp;&nbsp;
            <{/if}>
        </
form>
    <{else}>


Thanks;
Bill


rossb

Just popping in
Posted on: 10/12 17:00
rossb
rossb (Show more)
Just popping in
Posts: 40
Since: 2006/8/28
#5

Login not working except from user.php

Hi;

Xoops 2.5.9, site: www.rossco.org

I have a login field in my header, themes/xbootstrap/tpl/userbar.tpl , intended to replace / bypass going to user.php. Login using this does not work (no error messages, nada). Login via modules/profile/user.php works fine. What am I missing / doing wrong?

Here's the login image:
Resized Image

Thanks;
Bill

<div style="background: #F1F1F1 url('')">
<
div id="xo-banner" class="commercial" style="height:85px;">
    <
a id="xo-main-logo" class="commercial" href="<{xoAppUrl /}>" title=""><img src="/SecureOffice_Images/rossco.png" alt="<{$xoops_sitename}>" /></a>
    <{if 
$xoops_banner and $xoops_banner != '&nbsp;'}>
        <!-- <{
$xoops_banner}> width="480px" height="60px" -->
        <
iframe src=<{$xoops_url}>/images/banners/xoopsifyIt.gif border="0" scrolling="no" allowtransparency="true" width="480px" height="60px" style="border:0" align="right" alt="http://www.xoops.org/;"> </iframe>
    <{/if}>
</
div>

<
div id="xo-userbar" align="right">
    <{if !
$xoops_isuser}>
        <
form method="post" action="<{xoAppUrl /user.php op=login}>">
            <{
$smarty.const._LOGIN}>&nbsp;
            <
input name="uname" type="text" />&nbsp;&nbsp;<input name="pass" type="password"/>
            <
input type="hidden" name="xoops_redirect" value="<{$smarty.server.REQUEST_URI}>" />

            <{if 
$lang_siteclosemsg}>
                <
input type="hidden" name="xoops_login" value="1" />
            <{/if}>
            <
button type="submit"><img src="/SecureOffice_Images/icons/home.png" height="75%" alt="<{$smarty.const._LOGIN}>" /></button>
            <{if !
$lang_siteclosemsg}>
                &
nbsp;+&nbsp;<a href="<{xoAppUrl /register.php}>" class="register" title="<{$smarty.const._REGISTER}>"><{$smarty.const._REGISTER}></a>&nbsp;&nbsp;
            <{/if}>
        </
form>
    <{else}>
        <{
xoInboxCount assign=pmcount}>
        <
a href="<{xoAppUrl viewpmsg.php}>" title="<{$smarty.const._THEME_INBOX}>">
        <{if 
$pmcount}>
            <
img src="<{$xoops_url}>/SecureOffice_Images/icons/inbox-full.png" alt="<{$pmcount}> <{$smarty.const._THEME_INBOX_NOTREAD}>"/>
        <{else}>
            <
img src="<{$xoops_url}>/SecureOffice_Images/icons/inbox.png" alt="<{$smarty.const._THEME_INBOX}>"/>
        <{/if}>
        </
a>
        <
a href="<{xoAppUrl /notifications.php}>" title="<{$smarty.const._THEME_NOTIFICATIONS}>"><img src="<{$xoops_url}>/SecureOffice_Images/icons/note_view.png" alt="<{$smarty.const._THEME_NOTIFICATIONS}>"/></a>
        <
a href="<{xoAppUrl /user.php}>" title="<{$smarty.const._THEME_PROFILE}>"><img src="<{$xoops_url}>/SecureOffice_Images/icons/profile.png" alt="<{$smarty.const._THEME_PROFILE}>"/></a>

        <{if 
$xoops_isadmin}>
            <
a href="<{xoAppUrl /admin.php}>" title="<{$smarty.const._THEME_ADMINISTRATION}>"><img src="<{$xoops_url}>/SecureOffice_Images/icons/configuration.png" alt="<{$smarty.const._THEME_ADMINISTRATION}>" /></a>
        <{/if}>
        <
a href="<{xoAppUrl /user.php op=logout}>" title="<{$smarty.const._THEME_LOGOUT}>" ><img src="<{$xoops_url}>/SecureOffice_Images/icons/exit.png" alt="<{$smarty.const._THEME_LOGOUT}>"/></a>
    <{/if}>
</
div>
</
div>


rossb

Just popping in
Posted on: 2018/9/4 16:48
rossb
rossb (Show more)
Just popping in
Posts: 40
Since: 2006/8/28
#6

Re: "The page isn’t redirecting properly" when non-admin (UID not 1) logged in

Recognized xoops superiority long ago. Started with 2.0, patched up til 2.5.7, patches upon patches sites became unmaintainable. Bit the bullet, clean break (recreated) to 2.5.9

...B


rossb

Just popping in
Posted on: 2018/9/4 13:39
rossb
rossb (Show more)
Just popping in
Posts: 40
Since: 2006/8/28
#7

Re: "The page isn’t redirecting properly" when non-admin (UID not 1) logged in

Solved.

The two users I was having trouble with were previously members of the webmaster group on an incarnation of a previous (antique xoops) site, which I recreated (xoops 2.5.9) from scratch and phpmyadmin imported users and other DB tables from.

SOLUTION: edit problematic users for desired attributes, save, clear xoops and browser cache (including cookies)

I also found this thread useful for "what to check":

https://xoops.org/modules/newbb/viewto ... &order=ASC&status=&mode=0

Not sure of other users have same woes. Awaiting complaints.

@geekwright Is this your patch?
redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM, false);

Regards;
Bill


rossb

Just popping in
Posted on: 2018/9/3 20:31
rossb
rossb (Show more)
Just popping in
Posts: 40
Since: 2006/8/28
#8

Re: "The page isn’t redirecting properly" when non-admin (UID not 1) logged in

Thanks fellow geek;

I suspected as much, but it is independent of start module. Have already triple checked user group membership and group perms, but will do again.

Regards;
Bill


rossb

Just popping in
Posted on: 2018/9/3 11:57
rossb
rossb (Show more)
Just popping in
Posts: 40
Since: 2006/8/28
#9

Re: eCommerce Oledrion MyShop 2.35 Beta 1 for PHP 5.6 - 7.3

Hi Mamba;

Try to clone a product in admin. Things will break (badly)

Regards;
Bill


rossb

Just popping in
Posted on: 2018/9/3 10:33
rossb
rossb (Show more)
Just popping in
Posts: 40
Since: 2006/8/28
#10

"The page isn’t redirecting properly" when non-admin (UID not 1) logged in

xoops 2.5.9
php 5.6
anonymous and admin users can view site. Other users get in infinite redirect loop. Firefox displays above error, IE times out.

Have tracked this down to /index.php:

if ($xoopsUser) {
if (!$moduleperm_handler->checkRight('module_read', $xoopsModule->getVar('mid'), $xoopsUser->getGroups())) {
THIS --> redirect_header(XOOPS_URL, 1, _NOPERM, false);
}
$xoopsUserIsAdmin = $xoopsUser->isAdmin($xoopsModule->getVar('mid'));
} else {
if (!$moduleperm_handler->checkRight('module_read', $xoopsModule->getVar('mid'), XOOPS_GROUP_ANONYMOUS)) {
redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM);
}
}

How can I debug / fix this?

Thanks;
Bill



TopTop
(1) 2 3 4 »