0
Welcome Guest! Login
0 items Join Now

How to fix this :-)

  • How to fix this :-)

    Posted 11 years 5 months ago
    • Hello,

      We use our website for a game, the game has its own software, based on the Secondlife viewer, and uses an internal browser.

      When browsing to a page on our website with the inworld browser, we get this error:
      Can't identify browser version. Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl-BE) AppleWebKit/533.3 (KHTML, like Gecko) SecondLife/4.5.1.38838 (Firestorm-Beta; firestorm skin) Safari/533.3

      Anyone who knows how i can add this type of browser to the template with modified settings ?

      PS: We are using the Oculus template on J3.2.

      Hope someone can help :-)

      Kind regards!
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: How to fix this :-)

    Posted 11 years 5 months ago
    • It sounds to me that this error message might come from that internal browser. Are you sure that the error message is coming from Gantry?
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: How to fix this :-)

    Posted 11 years 5 months ago
    • I've searched for the beginning of the string in the Joomla code, and this is in fact a Joomla error :-)

      libraries/joomla/environment/browser.php
      protected function identifyBrowserVersion()
      {
      if (preg_match('|Version[/ ]([0-9.]+)|', $this->agent, $version))
      {
      list ($this->majorVersion, $this->minorVersion) = explode('.', $version[1]);

      return;
      }

      // Can't identify browser version
      $this->majorVersion = 0;
      $this->minorVersion = 0;
      JLog::add("Can't identify browser version. Agent: " . $this->agent, JLog::NOTICE);
      }
      And there is no Version/blabla in that string....

      I've found a few matches on the web but all are comment out's of the JLog;;add...
      So not a real solution...

      I'll investigate further and post what i come up with... for refence.
  • Re: How to fix this :-)

    Posted 11 years 5 months ago
    • --- libraries/joomla/environment/browser.php     2013-11-06 09:18:52.000000000 +0100                                                                                                                                                                                              
      +++ libraries/joomla/environment/browser.php     2013-11-20 15:52:14.000000000 +0100                                                                                                                                                         
      @@ -328,7 +328,10 @@
                                              {
                                                        // Safari.
                                                        $this->setBrowser('safari');
      -                                                $this->identifyBrowserVersion();
      +                                                if (empty($this->majorVersion) || empty($this->minorVersion))
      +                                                {
      +                                                          $this->identifyBrowserVersion();
      +                                                }
                                              }
                                    }
                                    elseif (preg_match('|Mozilla/([0-9.]+)|', $this->agent, $version))

      Fixed :-)

      The actual error is generated due to the fact that the Version string isn't included in the agent string.

      As a sidenote, this can be a valueble fix for Secondlife or Opensim members who use Joomla to view sites inworld.
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: How to fix this :-)

    Posted 11 years 5 months ago
    • Alright, i will mark this as solved. Btw, Joomla 3.2 is very buggy and now IE11 is also a real pain when it comes to user agent strings :(
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: How to fix this :-)

    Posted 11 years 5 months ago
    • We've noticed the J3.2 buggyness :(
      But the site i was talking about is still a dev site, luckely :D haha

      Let's hope there's a more stable release when we are "finished".

      And ah yes, aren't we used to IE not working like we want it ? :-)
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: How to fix this :-)

    Posted 11 years 5 months ago
    • IE10 was far more stable and more easy to work with than IE11 though.
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG

Time to create page: 0.397 seconds