PDA

View Full Version : Custom Module compatibility error on module add


danceoutfitters
10-24-06, 11:09 PM
I'm new to this process, though have read through many threads for information on building my custom payment module. I put together a skeleton module with all the required functions and succesfully compiled it. I also can upload the compiled module, however when I click the add button to add the module, I get the following error:

Runtime error in 4.23/admin.mvc @ [0000000a:000000d2]: Line 2248: MvDO: Unable to open '/Merchant2/4.23/MIVA_FUP00000001': File was generated by an incompatible version of the Miva Script Compiler

I am running engine V4.14 and MIVA V4.23. I thought I read that the MiVA compiler v5 was backwords compatibe, so I'm puzzled. Any help would be greatly appreciated.

DanceOutfitters

Vic - WolfPaw Computers
10-24-06, 11:23 PM
Are you using the compiler command: mvc -c 4.10 filename.mv

You need to tell it to be compatible with older versions. This is covered in the Compiler's UserGuide.

danceoutfitters
10-25-06, 02:11 AM
Oops missed that in the documentation.
I did compile it with the proper version, and now I'm getting an error Installation of module "1" failed.

Vic - WolfPaw Computers
10-25-06, 03:00 AM
Did you uninstall the old version and pack first?

Also, did you use mvc -c 4.14? or c -4.10?

You'll have less compatibility issues using 4.10 as the compiled version compatibility.

danceoutfitters
10-25-06, 03:43 AM
I used 4.10. Unforunately I did not uninstall and pack first. I choose to overwrite. Now I'm having problems on the add a module page and just keep getting error on page. I then manually deleted the module from my web site. Tried packing and logged in and out of Admin....still having problem with add a module page. Not sure what I may have done.....

Vic - WolfPaw Computers
10-25-06, 03:46 AM
Well, Module ID 1 in the modules.dbf is usually MMUI, so if you hosed that up somehow, I'd suggest restoring from backup.

danceoutfitters
10-27-06, 04:18 AM
I restored and also found a typo in the code. I have succcessfully loaded and installed the module. so now it's time to test & test & test.....

Thank you for your help on the compiler.:)