Announcement

Collapse
No announcement yet.

Custom module error on UPDATE

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

  • dcarver
    replied
    You would need to look at https://www.miva.com/apiguide for documentation

    Leave a comment:


  • ids
    replied
    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

    Leave a comment:


  • dcarver
    replied
    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.

    Leave a comment:


  • ids
    started a topic Custom module error on UPDATE

    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
Working...
X