[Closed] Login/Logout links at page top misplaced

griffinmt
griffinmt's picture

Joined: 2009-09-06
Posts: 128
Posted: Fri, 2009-10-16 21:46

I just started getting this problem as of yesterdays update.

The 'Logged in as' and 'Logout' links at the top of the page are misbehaving for me.
They are all the way to the left (above the logo.png) and there are two sets of them.
This happens in IE,FF and Chrome and at least with the Wind theme (plus my theme).
In the page.html.php view, it contains <?= $theme->header_top() ?>
If I comment this out, the badly placed code disappears, the rest seeming ok.
With the // removed, and under firebug, it shows:

Quote:
<div id="g-header">
<div id="g-banner">
<ul id="gLoginMenu">
<ul id="gLoginMenu">

Whatever gets inserted by header_top(), it show two menus and has the ids mispelled for both.
Just where does this code come from???

Martyn T. Griffin

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-10-16 22:10

Are you using the default theme? If not try switching to the Wind theme and see if it still does this.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
griffinmt
griffinmt's picture

Joined: 2009-09-06
Posts: 128
Posted: Sat, 2009-10-17 03:42
Quote:
This happens in IE,FF and Chrome and at least with the Wind theme (plus my theme).

header_top comes from modules/gallery/helpers/gallery_theme.php and from modules/user/helpers/user_theme.php

And for some reason it is getting picked up from both???? One at a time I commented out the return value of the functions, showing that each helper module was contributing.

Martyn T. Griffin

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Sat, 2009-10-17 04:04

I don't see that behavior on three different sites, can you post a url?
Perhaps you added some text to the header or footer.
Admin -> Appearance -> Theme options

Also verify that your themes have updated css.
http://gallery.menalto.com/node/91603
The default theme is not default now it is wind.

I did a search for 'gLoginMenu' and could not find it in the latest git version.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
dvader

Joined: 2009-09-13
Posts: 8
Posted: Sat, 2009-10-17 05:32

I have a vanilla g3b3 + latest experimental update and mine is doing the double login thing as well.
no changes have been made to any files.
Also when logging in, it takes you to some text page, without gfx. and it doesnt refresh.. just sits there.
you have to refresh the URL (minus the login part of the url of course)

edit:
I've added a screen shot
1st is double login
2nd is login screen
3rd is what i get when i log in.

AttachmentSize
bugs1.jpg71.45 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Sat, 2009-10-17 05:41

URL?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
griffinmt
griffinmt's picture

Joined: 2009-09-06
Posts: 128
Posted: Sat, 2009-10-17 17:07

I am using an internal url that is not available externally.

I could not find the gLoginMenu css reference as well, but when I cloned the g-login-menu entries in the css, it started positioning correctly (but both sets). This was with the wind theme as well as mine.

And there is no header or footer text added

Martyn T. Griffin

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Sat, 2009-10-17 17:16

It is hard to fix or diganose a issue we can't reproduce.
create a install on a external site and see if you can reproduce the issue.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-10-17 18:04

I just completely wiped one install and did a fresh install. Still can't see the same thing. Please post a URL otherwise we cannot troubleshoot this any further.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
griffinmt
griffinmt's picture

Joined: 2009-09-06
Posts: 128
Posted: Sat, 2009-10-17 21:58

A bit curious, but what is the difference between doing an install of g3b3 then upgrading to exp version, versus just copying over the latest exp version and running upgrader?

I was thinking that the exp version has a complete replacement of all modules, so both approaches are effectively the same.

I set my theme to wind, and copied over the current exp version (Oct 17) and ran upgrader.

When I launched Gallery3, the same error occured, just like dvader showed on his system. When I selected my own theme to run, the double logon info remained but were at least on a single line and on the right side. That was because I had previously added the css entries for the old format gLoginMenu. I should also mention that the login panel has no formating as dvader showed which is likely a result of an erroneous id or class.

Martyn T. Griffin

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sun, 2009-10-18 02:11
Quote:
A bit curious, but what is the difference between doing an install of g3b3 then upgrading to exp version, versus just copying over the latest exp version and running upgrader?

Nothing. If you were using 'default' before that upgrade will make 'wind' your default theme.

Guess I've got to pull out the standard helpdesk responses.

-- Reboot your computer

-- Clear your browser cookies and cache

-- Do a fresh install of the experimental version

It sounds to me like your CSS is in some odd state from how ever you've upgraded and since G3 is still in Beta I'm calling these fringe cases. Don't install from B3, grab the latest code from Github http://github.com/gallery/gallery3 and install it from there. If it still persists with a clean install of current code we'll look into this further.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
dvader

Joined: 2009-09-13
Posts: 8
Posted: Sun, 2009-10-18 03:05

I've figured out the fix (sort of)
I had installed g3b3 + latest exp. build.
I also had installed rWatcher-gallery3-contrib-5052bfd.zip because I wanted the video dimension editor module.
i just upped all the modules in that directory. EVEN THOUGH. none of them were active, i still saw the double login. (plus other bugs listed in previous post)
I re-uploaded b3, latest exp. even code nivekiam linked to in the above post.
I just upzipped the files, and overwrote my existing files. still this double login stuff persisted.

So i nuked everything in my directory, except the var DIR. i then uploaded the latest code i downloaded and ALL the problems were fixed.
So even though no modules were active, i think something in rWatcher-gallery3-contrib-5052bfd.zip folder is what caused my problem.
griffinmt can you confirm if you uploaded this entire modules folder as well?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Sun, 2009-10-18 04:57
Quote:
ALL the problems were fixed.

See how much effort behind the scenes we go thought?

www == World Wide Web.
This is a application called your photos on your website.

Still waiting for a external web accessible site that has this issue.

If it is a big issue then we would have had some confirmation, and links to sites, but it appears that it is a very small situation and should not focus much effort.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
dvader

Joined: 2009-09-13
Posts: 8
Posted: Sun, 2009-10-18 06:01

I'm afraid I don't understand your response.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Sun, 2009-10-18 14:34
floridave wrote:
Still waiting for a external web accessible site that has this issue.

nivekiam wrote:
Please post a URL otherwise we cannot troubleshoot this any further.

I was just pointing out that this application is designed for working on the WWW and if you are using it internally, it is easy to install it on the www to show the behavior, so we can diagnose the issue.

In order to fix this issue we either have to reproduce it ( we can't ) or have access to a website that has this behavior. We have not got an example to see the behavior so we are not going to be able to fix it.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
griffinmt
griffinmt's picture

Joined: 2009-09-06
Posts: 128
Posted: Sun, 2009-10-18 15:42

I accept your conclusion that 'in house' applications don't share the same importance (from a developement perspective) as those with a wide access, so no concern there.
I have 'rebuilt' myself out of the problem, deleting everything but /var and my specific theme and then copying over everything from the latest exp version and running updater.
The sad part is I don't know how I (we) got into the problem to begin with - seems like some module did not get copied properly earlier.

Martyn T. Griffin

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Sun, 2009-10-18 15:53

Glad it is all sorted out.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team