Ok, I made this problem go away:
Beneath this code was some earlier stuff which had been commented out. That, as well as the extra unmatched parentheses was together apparently the source of the problem - though the trace didn't show any problems related to the commented-out stuff and said nothing about anything but the syntax error (or I would have tried deleting it earlier). Meanwhile, the original page has been trashed all to heck so I couldn't get back the original trace anyway........
So, in the future I have learned to exercise even more than normal caution.
Sincere thanks for your assistance. I do appreciate it very much!