Announcement

Collapse
No announcement yet.

Custom module error on UPDATE

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

    Custom module error on UPDATE

    What are the possible reasons for this error?

    Error Code: MER-ADM-00001
    Description: <b>Unknown Error</b><br><br>&nbsp;&nbsp;Action = SMOD<br>&nbsp;&nbsp;Screen = SMOD
    I have similar functions that don't have an error and behave as expected. The similar functions are extremely close actually.

    The functions are to either add a new row or update a field in the row. I am checking some input before I run the query to UPDATE or ADD. The same logic with nearly identical code works on a different table. My only guess from the Error Code Description is that the string for URL is getting clobbered somehow.

    Thanks,

    Scott
    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    #2
    You're probably missing a return 1 somewhere so the software thinks an error has occurred. This is also indicative of the error message, it means an error was not set so it is just a general purpose error.
    David Carver
    Miva, Inc. | Software Developer

    Comment


      #3
      That’s what it was. I was returning a zero.

      Is there a rule of thumb for the function return? 0, 1, -1? I don’t think I’ve ever seen it documented and the LSK doesn’t have a lot of notes.

      Scott

      Need to offer Shipping Insurance?
      Interactive Design Solutions https://www.myids.net
      MivaMerchant Business Partner | Certified MivaMerchant Web Developer
      Competitive Rates, Custom Modules and Integrations, Store Integration
      AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
      My T-shirt Collection is mostly MivaCon T-shirts!!

      Comment


        #4
        You would need to look at https://www.miva.com/apiguide for documentation
        David Carver
        Miva, Inc. | Software Developer

        Comment

        Working...
        X