1. Rapidgator has been added to our approved mandatory hosts while Uploaded as been removed. These hosts are not to be used in combination with each other unless a second approved mandatory is used. See our file host rules for more information.
    Dismiss Notice
  2. Guest - Remember that Thread Prefixes are a search tool! Click on a Thread Prefix and all threads with the same Prefix in that forum will be offered to you. To dismiss click on X >>>
    Dismiss Notice
  3. Our gif only content threads have a rule where all thumbs must be posted as a static thumbnail that does not play. Currently imagebam made a change where they no longer produce static thumbs. Therefore, please do not use imagebam, or any host, that provides live playing gifs in those specific threads. If you see your gif playing once you post, try to use a smaller thumbnail and if that does not work use a different approved host.
    Dismiss Notice
  4. Can't Log-in?. If your password is no longer accepted but the email address registered in your profile is working, use the "Forgot Your Password?" routine. However, if your registered email address is unusable, create a new temporary phun account and contact S-type.
    Dismiss Notice
  5. ATTN: Imagehost picpie is infected with the "internet security warning" redirect that tries to take users hostage with an inescapable redirect. Avoid using picpie as an imagehost.
    Dismiss Notice
  6. Too many Alerts? Why not adjust your "Alert Preferences" in your Profile Page?
    Dismiss Notice

Phun Tech Issues

Discussion in 'About phun.org' started by Green Bastard, Sep 17, 2013.

  1. TheOne

    TheOne The President ★ ★ ★ ☆ ☆ 15 Year Member

    Joined:
    Jun 1, 2005
    Messages:
    81,749
    Likes Received:
    32,470
    oh shit.. I forgot I activated that again, my bad this time.. that explains that. Thanks
     
    1 person likes this.
  2. Green Bastard

    Green Bastard feels good man

    Joined:
    May 12, 2012
    Messages:
    2,884
    Likes Received:
    4,730
    While traveling for Xmas I'm stuck on an old laptop running Linux and noticed a bug. The "thanked" stat in the userinfo section of a post will overflow the container when there isn't enough room.

    [​IMG]

    It may not be noticeable to you depending on your OS and the fonts available. But, when a font wider than "Arial" ends up getting used, it's quite noticeable.

    I'm guessing the plugin author didn't like the look of that line wrapping so they added a rule making sure it wouldn't wrap. That isn't a problem when the default Arial font is available and used. In that case, it technically overflows the container. But, visibly, it still looks like it is within the section with the blue background (barely).

    But, personally, I would remove that 'white-space' rule and let the line wrap when too long because when it does overflow visually (ex. when using the default 'sans-serif' font in Ubuntu) it can cover up text in the actual post making it hard to read.

    Also, it doesn't matter much, but the plugin author also used some weird markup that breaks the existing convention. Instead of using a dt and a dd element, they mashed both into a dd element:

    [​IMG]

    Fixes

    I don't know if any admins listening have access to change templates or css, but here are a couple fixes if you do:

    1) Find the template (or in plugin) where that markup is added and remove that inline 'white-space' style (or all of the inline styles on that dd element). If you have that access, you might as well change the markup to be separate dt and dd elements for completeness.

    2) If you can only add CSS or would prefer not to edit templates or plugins, you can add a css rule to the end your stylesheet:

    Code:
    .userinfo_extra dd {
        white-space: normal !important;
    }
    3) Or, you could let it go since most people will have Arial installed.
     
    2 people like this.
  3. Green Bastard

    Green Bastard feels good man

    Joined:
    May 12, 2012
    Messages:
    2,884
    Likes Received:
    4,730
    I'm sure most people (but me until today) are very familiar with the "leave the page" popup that occurs sometimes as well as the double posting that can occur when the server is slow. It's nothing new, but I thought I'd quote a conversation here for the sake of keeping a list of all bugs in one place:

    To summarize, when the server is slow, the quick reply form

    1. sometimes causes double posts
    2. sometimes causes a "are you sure you want to leave the page" popup when you've typed a reply and click submit
     
  4. TheOne

    TheOne The President ★ ★ ★ ☆ ☆ 15 Year Member

    Joined:
    Jun 1, 2005
    Messages:
    81,749
    Likes Received:
    32,470
    a small thing I discovered, when I logged in on my phone (using the default mobile style) I couldn't find the poll to see the result, so I had to switch to a pc theme in order to see the results of the poll. Am I missing some strange button on the phone or is polls disabled in that theme?
     
  5. Green Bastard

    Green Bastard feels good man

    Joined:
    May 12, 2012
    Messages:
    2,884
    Likes Received:
    4,730
    You aren't missing anything, it appears that both voting on and the creation of polls is disabled in the mobile theme. Hiding things like that on "mobile" is pretty bad design, but there's not much you can do about it. It's not even Phun's fault, really. They are just using mobile theme provided by vBulletin which is several years out of date as far as best practices.

    You could switch for polls, or if you always want the standard theme, do you have a theme preference set in your options? I haven't tried it yet, but I'm wondering if setting the preference explicitly to "vBulletin Default Style" (the normal skin) rather than "use forum default" might override the automatic theme switching on mobile?
     
    1 person likes this.
  6. TheOne

    TheOne The President ★ ★ ★ ☆ ☆ 15 Year Member

    Joined:
    Jun 1, 2005
    Messages:
    81,749
    Likes Received:
    32,470
    Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaarrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrggggggggggggggh

    I did switch to be able to see who won, and it seemed to stay that way (had to switch back in order to get it back).

    it's one thing if voting wasn't allowed... but just seeing the result could have helped .. stupid fuckers
     
  7. Green Bastard

    Green Bastard feels good man

    Joined:
    May 12, 2012
    Messages:
    2,884
    Likes Received:
    4,730
    Scratch that. I tried it and the preference doesn't seem to override what theme vB was already going to serve you.

    Yeah, it's bad altogether. It's one thing to hide ads or extraneous things in the sidebars of sites (like "popular posts" lists, etc). But to take away core content and features on mobile is a big no-no.
     
  8. Majesty9917

    Majesty9917 To crush your enemies...see them driven before you BANNED ★ ★ ★ ☆ ☆ 15 Year Member Meat & Potatoes Guy

    Joined:
    Jan 24, 2007
    Messages:
    25,817
    Likes Received:
    27,710
    When I do a search, the further I go (pages) the less pages exist. For instance, if I search and get 10 pages of results as I click next page the amount of results gets smaller. So, by the time I get to page 3 the system is now only showing there is 8 or 7 pages of results, then by page 4 there is only 6 pages of results. What is happening with the other results?
     
  9. Green Bastard

    Green Bastard feels good man

    Joined:
    May 12, 2012
    Messages:
    2,884
    Likes Received:
    4,730
    Yeah that's definitely weird.

    I don't have an answer, but I know where I'd start looking for one. Phun uses a Sphinx search plugin (see link in footer). Basically, Sphinx is a search implementation that sites use when their databases get large because the default MySQL full text search starts to get really slow with big dbs.

    So, I would try to narrow things down by disabling (on an offline or staging version of the site, not the live one) the Spinx search and reverting back to the default MySQL-based search. If switching back changes that behavior, you know it's related to that and can dive deeper. At this point, you could also try a different Sphinx plugin to test if it's the plugin or Sphinx itself.

    If that doesn't fix it, I'd move on to disabling all plugins temporarily again to narrow it down. If this fixes it, start re-enabling one by one to find the culprit starting with anything related to search or pagination.

    vBulletin also has some other things you could try in the maintenance section like rebuilding search indexes, etc. But, I find it best to start with just toggling things on and off to narrow the problem before anything else. Also, maybe look at what's going on in the template where the search pagination exists. Has it been changed at all? You can use a default, completely unmodified vB theme to rule out template modifications.

    I know you guys don't have the access to do this stuff, but that's where I'd start.
     
    3 people like this.
  10. TheRiver

    TheRiver temporarily a little out of order. ★ ★ ★ ★ ★ 15 Year Member Original Phun Crew Movers & Shakers

    Joined:
    Jun 4, 2005
    Messages:
    27,711
    Likes Received:
    106,438
    for some reasons (fee is one of those) Cayne likes to get rid of Shpinx anyway. not a big deal except the reindexing...
     
    2 people like this.
  11. Green Bastard

    Green Bastard feels good man

    Joined:
    May 12, 2012
    Messages:
    2,884
    Likes Received:
    4,730
    Ok, I wasn't suggesting to get rid of Sphinx entirely. Only to try the default search on a test site to see if that bug goes away.
     
  12. HeavyToka

    HeavyToka Lost in a haze ★ ★ ★ ☆ ☆ Ten Years of Phun

    Joined:
    May 5, 2011
    Messages:
    35,208
    Likes Received:
    22,249
    Odd thing has been happening to me, sometimes when I thank a post I will get redirected to this:

    [​IMG]
     
  13. Green Bastard

    Green Bastard feels good man

    Joined:
    May 12, 2012
    Messages:
    2,884
    Likes Received:
    4,730
    Odd. A few questions:

    • Is this happening when the server is also slow?
    • Does it work sometimes and sometimes it doesn't? Or is this something that broke for you recently and now you get this error every time you thank a post?
    • When it does happen next, take note of the URL that it redirects you and copy it down somewhere. Then go back to the thread before you thanked the post and get that url too, preferably with the back button to get the exact url (hold the button down if you need to skip an intermediate page from being redirected). Then post those urls here if you can.
    • When you do go back to the thread, refresh the page. Is the thread still there or has it been deleted or something in the meantime while you were viewing it?
    • Are you using AdBlock, NoScript or any similar addons? See here if so.
     
  14. HeavyToka

    HeavyToka Lost in a haze ★ ★ ★ ☆ ☆ Ten Years of Phun

    Joined:
    May 5, 2011
    Messages:
    35,208
    Likes Received:
    22,249
    It happens randomly, maybe once ever thirty or so thanks. When it happens I normally hit the back button and it takes me back to the thread I was in. The next time it happens I'll copy the URL down and post it in here. I am using Adblock, but have had it turned off at Phun the last week.
     
    1 person likes this.
  15. ItsLunchBOX

    ItsLunchBOX ★ ★ ★ ☆ ☆

    Joined:
    Jan 30, 2009
    Messages:
    1,920
    Likes Received:
    24,201
    I've run into this a couple times as well. It's pretty random.
     
    1 person likes this.
  16. Green Bastard

    Green Bastard feels good man

    Joined:
    May 12, 2012
    Messages:
    2,884
    Likes Received:
    4,730
    It's hard to say, but my best guess given the info is that the request (the one that posts your "thanks" to the server in the background) is being mangled in a way that the server-side part of the thanks plugin can't make the connection between the data it's sent and the post you are trying to thank. It could be something to do with the "security token" that needs to be sent with asynchronous requests like that. Not sure.

    As an unrelated side note, it looks there is something wrong in Phun's language/phrase settings. That $bbuserinfo[username] part should have been replaced with "HeavyToka". I've seen it many times before on deleted threads, but figured I might as well add to the list while we have a screenshot.
     
    1 person likes this.
  17. HeavyToka

    HeavyToka Lost in a haze ★ ★ ★ ☆ ☆ Ten Years of Phun

    Joined:
    May 5, 2011
    Messages:
    35,208
    Likes Received:
    22,249
  18. Green Bastard

    Green Bastard feels good man

    Joined:
    May 12, 2012
    Messages:
    2,884
    Likes Received:
    4,730
  19. HeavyToka

    HeavyToka Lost in a haze ★ ★ ★ ☆ ☆ Ten Years of Phun

    Joined:
    May 5, 2011
    Messages:
    35,208
    Likes Received:
    22,249
  20. Green Bastard

    Green Bastard feels good man

    Joined:
    May 12, 2012
    Messages:
    2,884
    Likes Received:
    4,730
    One thing I noticed is the post number on the error page:

    Code:
    http://forum.phun.org/post_thanks.php?do=post_thanks_add&p=[B][COLOR="#FF0000"]7698189[/COLOR][/B]
    Seems to lead elsewhere rather than:

    Code:
    http://forum.phun.org/showthread.php?t=1236445&p=[B][COLOR="#FF0000"]7698165[/COLOR][/B]&viewfull=1#post7698165
    That "p=" part indicates a unique post number (row) in the db. So the post number in error url should match the post number that you were trying to thank. As for why it doesn't, I don't know. But that's the mismatch I was wondering about.
     
    2 people like this.

Share This Page