|
phpMyEdit - Viewing Bug Advanced Details |
[ Go Back ]
|
|
|
ID:
|
Category:
|
Severity:
|
Reproducibility:
|
Date Submitted:
|
Last Update:
|
|
234 |
core / general |
tweak |
always |
2004-04-19 20:03 |
2007-05-03 17:48 |
|
|
Reporter:
|
g051798 |
Platform:
|
Unix |
|
|
Assigned To:
|
|
OS:
|
Solaris |
|
|
Priority:
|
normal |
Version:
|
Ver 8 |
|
|
Status:
|
feedback |
Product Version:
|
current from CVS |
|
|
Product Build:
|
|
Resolution:
|
open |
|
|
Projection:
|
none |
Duplicate ID:
|
|
|
|
ETA:
|
none |
|
|
|
Summary:
|
Java runtime Error upon Add (similar to on delete that was fixed in CVS) |
|
Description:
|
I get a runtime error when adding a record. The add form has a lookup to another table:
$opts['fdd']['AppID']['values']['table'] = 'Applications';
$opts['fdd']['AppID']['values']['column'] = 'AppID';
$opts['fdd']['AppID']['values']['description']['columns'][0] = 'Host_Name';
$opts['fdd']['AppID']['values']['description']['columns'][1] = 'Application';
$opts['fdd']['AppID']['values']['description']['columns'][2] = 'Version';
$opts['fdd']['AppID']['values']['description']['columns'][3] = 'Instance';
$opts['fdd']['AppID']['values']['description']['divs'][0] = ' - ';
$opts['fdd']['AppID']['values']['description']['divs'][1] = ' - ';
$opts['fdd']['AppID']['values']['description']['divs'][2] = ' - ';
When, i click add, a error pops up saying "A Runtime Error has occured. Do you wish to debug... Object expected". The record is added correctly but the popup happens every time.
I believe this is related to the same problem i reported earlier that was fixed in CVS.
Thanks for your help,
John
|
|
Steps To Reproduce:
|
|
|
Additional Information / Solution:
|
I have attached a screen shot of the error |
|
Attached Files:
|
0000234-ScreenHunter_001.jpg.txt (23 KB) 1970-01-01 01:33 0000234-ScreenHunter_003.jpg.txt (101 KB) 1970-01-01 01:33 |
|
Bug Notes |
|
|
hbernard
|
|
2004-04-19 20:36
|
|
well, no, this is not "the same" because Delete's problem was that we were doing a validation while there was nothing to validate.
Here, Add must valid something.
What are the details of the runtime Error ? |
|
|
|
|
I just uploaded the screen shot if I debug the error. The arrow in debug points to this part of the HTML:
<input type="submit" class="pme-save" name="saveadd" value="Save" onClick="return phpMyEdit_form_control(this.form);"> <input type="submit" class="pme-more" name="moreadd" value="More" onClick="return phpMyEdit_form_control(this.form);"> <input type="submit" class="pme-cancel" name="canceladd" value="Cancel"></td>
I dont know how to debug any further. I hope this helps...
Rgds,
John |
|
|
|
|
my only guess is to change
onClick="return phpMyEdit_form_control(this.form);"
to
onClick="return phpMyEdit_form_control(phpMyEdit_form);"
since 'phpMyEdit_form' is the name of the form. |
|
|
|
hbernard
|
|
2004-04-20 14:26
|
|
|
g051798: what is your browser/os ? |
|
|
|
|
The client browser is running on Windows 2000 with IE browser version 6.0.2800.1106 with the latest patches applied. The server side is running Solaris 8 and the latest CVS of phpmyedit.
Thanks,
John |
|
|
|
slipnslidemaster
|
|
2007-05-03 17:39
|
|
I am also experiencing this error. It's only one table, "USERS", that is giving me the "Object Expected" error.
I have set all the fields to not require a value, and have eliminated any MySQL automatic population (expect autoincrement for the index field).
Any thoughts? |
|
|
|
slipnslidemaster
|
|
2007-05-03 17:48
|
|
I fixed it.
Getting the error on this line: "onclick="return PME_js_form_control(this.form);""
There was no js function "PME_js_form_control" in the file. By creating one "required" field, it created the function and everything is fine now. |
|