1
abztmbaa
myMenu problem
  • 2007/2/22 3:40

  • abztmbaa

  • Just popping in

  • Posts: 5

  • Since: 2007/2/22


Hello all,

I cannot add or delete any item from the myMenu module. The debug gives me whole list of notices

Notice [PHP]: Constant _AM_DBUPDATED already defined in file modules/mymenu/language/english/admin.php line 3
Notice [PHP]: Constant _AM_TITLE already defined in file modules/mymenu/language/english/admin.php line 4
Notice [PHP]: Constant _AM_ID already defined in file modules/mymenu/language/english/admin.php line 5
Notice [PHP]: Constant _AM_POS already defined in file modules/mymenu/language/english/admin.php line 6
Notice [PHP]: Constant _AM_POS_SHORT already defined in file modules/mymenu/language/english/admin.php line 7
Notice [PHP]: Constant _AM_INDENT already defined in file modules/mymenu/language/english/admin.php line 8
Notice [PHP]: Constant _AM_INDENT_SHORT already defined in file modules/mymenu/language/english/admin.php line 9
Notice [PHP]: Constant _AM_ITEMNAME already defined in file modules/mymenu/language/english/admin.php line 10
Notice [PHP]: Constant _AM_ITEMURL already defined in file modules/mymenu/language/english/admin.php line 11
Notice [PHP]: Constant _AM_STATUS already defined in file modules/mymenu/language/english/admin.php line 12
Notice [PHP]: Constant _AM_FUNCTION already defined in file modules/mymenu/language/english/admin.php line 13
Notice [PHP]: Constant _AM_ACTIVE already defined in file modules/mymenu/language/english/admin.php line 14
Notice [PHP]: Constant _AM_INACTIVE already defined in file modules/mymenu/language/english/admin.php line 15
Notice [PHP]: Constant _AM_BOLD already defined in file modules/mymenu/language/english/admin.php line 16
Notice [PHP]: Constant _AM_NORMAL already defined in file modules/mymenu/language/english/admin.php line 17
Notice [PHP]: Constant _AM_MARGINBOTTOM already defined in file modules/mymenu/language/english/admin.php line 18
Notice [PHP]: Constant _AM_MARGIN_BOTTOMSHORT already defined in file modules/mymenu/language/english/admin.php line 19
Notice [PHP]: Constant _AM_MARGINTOP already defined in file modules/mymenu/language/english/admin.php line 20
Notice [PHP]: Constant _AM_MARGIN_TOPSHORT already defined in file modules/mymenu/language/english/admin.php line 21
Notice [PHP]: Constant _AM_EDIT already defined in file modules/mymenu/language/english/admin.php line 22
Notice [PHP]: Constant _AM_DELETE already defined in file modules/mymenu/language/english/admin.php line 23
Notice [PHP]: Constant _AM_ADDMENUITEM already defined in file modules/mymenu/language/english/admin.php line 24
Notice [PHP]: Constant _AM_CHANGEMENUITEM already defined in file modules/mymenu/language/english/admin.php line 25
Notice [PHP]: Constant _AM_SITENAMET already defined in file modules/mymenu/language/english/admin.php line 26
Notice [PHP]: Constant _AM_URLT already defined in file modules/mymenu/language/english/admin.php line 27
Notice [PHP]: Constant _AM_Font already defined in file modules/mymenu/language/english/admin.php line 28
Notice [PHP]: Constant _AM_STATUST already defined in file modules/mymenu/language/english/admin.php line 29
Notice [PHP]: Constant _AM_MEMBERSONLY already defined in file modules/mymenu/language/english/admin.php line 30
Notice [PHP]: Constant _AM_MEMBERSONLY_SHORT already defined in file modules/mymenu/language/english/admin.php line 31
Notice [PHP]: Constant _AM_MEMBERS already defined in file modules/mymenu/language/english/admin.php line 32
Notice [PHP]: Constant _AM_ALL already defined in file modules/mymenu/language/english/admin.php line 33
Notice [PHP]: Constant _AM_ADD already defined in file modules/mymenu/language/english/admin.php line 34
Notice [PHP]: Constant _AM_EDITMENUITEM already defined in file modules/mymenu/language/english/admin.php line 35
Notice [PHP]: Constant _AM_DELETEMENUITEM already defined in file modules/mymenu/language/english/admin.php line 36
Notice [PHP]: Constant _AM_SAVECHANG already defined in file modules/mymenu/language/english/admin.php line 37
Notice [PHP]: Constant _AM_WANTDEL already defined in file modules/mymenu/language/english/admin.php line 38
Notice [PHP]: Constant _AM_YES already defined in file modules/mymenu/language/english/admin.php line 39
Notice [PHP]: Constant _AM_NO already defined in file modules/mymenu/language/english/admin.php line 40
Notice [PHP]: Constant _AM_MYMENUSTYLE already defined in file modules/mymenu/language/english/admin.php line 41
Notice [PHP]: Constant _AM_MAINMENUSTYLE already defined in file modules/mymenu/language/english/admin.php line 42
Notice [PHP]: Undefined variable: op in file modules/mymenu/admin/index.php line 694
Notice [PHP]: Use of undefined constant _AM_FONT - assumed '_AM_FONT' in file modules/mymenu/admin/index.php line 117

the admin file only defines those constants once. Is notice an error that is causing the misbehavior of the module? Could i just delete those definitions from the file

Any help would be highly appreciated

-Abzt

2
MadFish
Re: myMenu problem
  • 2007/2/22 4:36

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


Maybe the /english/admin.php file has been included more than once somewhere, and could be fixed by using include_once?

I used mymenu for a couple of years with no problems though, so I suspect you don't have a clean install of this module.

BTW: What version of XOOPS are you using?

3
abztmbaa
Re: myMenu problem
  • 2007/2/22 16:11

  • abztmbaa

  • Just popping in

  • Posts: 5

  • Since: 2007/2/22


I think it is using version 2.2.3
I just overtook website maintenance from another person and i cannot get hold of that person anymore.
I might have recently updated the module. But i am not aware if this was a problem experienced before. Could the update to the module caused the problem?

Thanks,

Abzt

4
abztmbaa
Re: myMenu problem
  • 2007/2/22 16:44

  • abztmbaa

  • Just popping in

  • Posts: 5

  • Since: 2007/2/22


I kind of solved the double definition problem. But there is another notice it shows up.

Notice [PHP]: Undefined variable: op in file modules/mymenu/admin/index.php line 694
Notice [PHP]: Use of undefined constant _AM_FONT - assumed '_AM_FONT' in file modules/mymenu/admin/index.php line 117

switch($op) {

case "MyMenuDel":

MyMenuDel($menuid, $ok);

break;

case "MyMenuAdd":

MyMenuAdd($xposition, $itemname, $indent, $margintop, $marginbottom, $itemurl, $bold, $membersonly, $mainmenu, $status);

break;

case "MyMenuSave":

MyMenuSave($menuid, $xposition, $itemname, $indent, $margintop, $marginbottom, $itemurl, $bold, $membersonly, $mainmenu, $status);

break;

case "MyMenuAdmin":

MyMenuAdmin();

break;

case "MyMenuEdit":

MyMenuEdit($menuid);

break;

default:

MyMenuAdmin();

break;

}

Would anyone be able to tell me where is the variable $op initialized ?

And here is the code to the other error

"._AM_FONT."

Any help would be greatly appreciated

Login

Who's Online

269 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 269


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits