Announcement

Collapse
No announcement yet.

Hiding Runtime Error Message

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hiding Runtime Error Message

    I'm in the process of trying to convert a very necessary function that the Sebenza Product Template Manager provides. Currently, it's throwing a Runtime error message at the very beginning of the page which seems to be breaking the rest of the page. I played around with the code, removed the message, and the page displayed properly (at least in my HTML page test). That now begs the question - is there a way to hide or remove the Runtime Error message so it doesn't get displayed? I know there is an issue, the rest of the world doesn't need to know and it would appear that removing the message fixes the layout issues it is causing which is from a javascript error:

    Code:
    scripts.js:2 Uncaught TypeError: Cannot read property 'value' of null
    at Object.jsPROD (scripts.js:2)
    at scripts.js:1
    at Object.init (scripts.js:1)
    at scripts.js:6
    I'm just needing a work around until the template can be rebuilt.


    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Over a year later and I still need a solution to hide the glaring runtime error messages at the top of a live website. Is there any way to hide one - it just gets thrown in above the <!doctype html> and you can't really do a thing about it...
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    Comment


      #3
      What's the error message? Can you post the text?

      When does it occur? Is it related to a specific page, or product, or a particular action such as putting an item in the basket?
      Kent Multer
      Magic Metal Productions
      http://TheMagicM.com
      * Web developer/designer
      * E-commerce and Miva
      * Author, The Official Miva Web Scripting Book -- available on-line:
      http://www.amazon.com/exec/obidos/IS...icmetalproducA

      Comment


        #4
        Originally posted by Kent Multer View Post
        What's the error message? Can you post the text?

        When does it occur? Is it related to a specific page, or product, or a particular action such as putting an item in the basket?
        In the case of this particular error it was cause by a problem updating a module. The error message blared across the very top of every page of the store. The problem itself has been resolved but I still find it would be rather unnerving to customer to be greeted by such a message (and have it appear on every page of the store when trying to shop).
        Leslie Kirk
        Miva Certified Developer
        Miva Merchant Specialist since 1997
        Previously of Webs Your Way
        (aka Leslie Nord leslienord)

        Email me: [email protected]
        www.lesliekirk.com

        Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

        Comment


          #5
          The error message at the top of the page indicates that the javascript cannot find an element value that is not yet rendered on the page.

          Maybe move the script or item to just above the closing body tag.

          http://www.alphabetsigns.com/

          Comment


            #6
            Originally posted by alphabet View Post
            The error message at the top of the page indicates that the javascript cannot find an element value that is not yet rendered on the page.

            Maybe move the script or item to just above the closing body tag.
            Leslie is not looking for a fix to the error, just a fix to the error reporting.

            I'm not sure its possible, but what she is asking for is really, really important and a better approach to error handling.
            #1 DO NOT show errors to the public. This has almost no positive for anyone
            #2 Log ALL such errors
            #3 On login to the admin, display any recent errors and link to an 'Error Log' for details and or send an email upon error.
            Bruce Golub
            Phosphor Media - "Your Success is our Business"

            Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
            phosphormedia.com

            Comment


              #7
              Since you're asking for help here, I suppose Sebenza is out of business, or has declined to the point where they can't help. Maybe it's time to get rid of that module? Since the store supports multiple templates now, thanks to the Alternate Page setting, it shouldn't be too tough.
              Kent Multer
              Magic Metal Productions
              http://TheMagicM.com
              * Web developer/designer
              * E-commerce and Miva
              * Author, The Official Miva Web Scripting Book -- available on-line:
              http://www.amazon.com/exec/obidos/IS...icmetalproducA

              Comment


                #8
                Sebenza went out of business back in 2015.

                https://www.miva.com/forums/forum/on...odules-support

                Comment


                  #9
                  Originally posted by Kent Multer View Post
                  Since you're asking for help here, I suppose Sebenza is out of business, or has declined to the point where they can't help. Maybe it's time to get rid of that module? Since the store supports multiple templates now, thanks to the Alternate Page setting, it shouldn't be too tough.
                  For my issue, it wasn't a Sebenza module is. It was a current module issue and the developer helped me resolve the issue. I was trying to find a way to hide the message to not scare customers off until the module cold be fixed.
                  Leslie Kirk
                  Miva Certified Developer
                  Miva Merchant Specialist since 1997
                  Previously of Webs Your Way
                  (aka Leslie Nord leslienord)

                  Email me: [email protected]
                  www.lesliekirk.com

                  Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                  Comment

                  Working...
                  X