1
deka87
Debug errors in the admin section : "Constant already defined..."
  • 2012/8/7 5:20

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Hi guys,

I've got this error all over my admin section on my website:

Resized Image


What's that mean and how do I fix this?

Thanks in advance.

2
Mamba
Re: Debug errors in the admin section : "Constant already defined..."
  • 2012/8/7 5:26

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Please use different photo services, e.g. Flickr.

The image on Amazon has expired
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

3
deka87
Re: Debug errors in the admin section : "Constant already defined..."
  • 2012/8/7 6:10

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


fixed now

4
Mamba
Re: Debug errors in the admin section : "Constant already defined..."
  • 2012/8/7 7:18

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


What it means is that:

a) the constants are defined in two different locations
b) XOOPS is reading English and Russian definitions at the same time

In both cases, it creates conflict for XOOPS.

1) Run search for a constant, e.g. "_MI_PROTECTOR_NAME" in XOOPS installation, incl. /xoops_lib

2) report back the locations you've found it.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

5
deka87
Re: Debug errors in the admin section : "Constant already defined..."
  • 2012/8/7 9:29

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Quote:

z:\home\test1.ru\www\modules\protector\language\english\modinfo.php
z:\home\test1.ru\www\modules\protector\language\finnish\modinfo.php
z:\home\test1.ru\www\modules\protector\language\french\modinfo.php
z:\home\test1.ru\www\modules\protector\language\german\modinfo.php
z:\home\test1.ru\www\modules\protector\language\italian\modinfo.php
z:\home\test1.ru\www\modules\protector\language\japanese\modinfo.php
z:\home\test1.ru\www\modules\protector\language\nederlands\modinfo.php
z:\home\test1.ru\www\modules\protector\language\polski\modinfo.php
z:\home\test1.ru\www\modules\protector\language\portuguesebr\modinfo.php
z:\home\test1.ru\www\modules\protector\language\russian\modinfo.php
z:\home\test1.ru\www\modules\protector\language\spanish\modinfo.php
z:\home\test1.ru\www\modules\protector\language\tchinese\modinfo.php


in

Quote:

Notice: Constant _MI_PROTECTOR_NAME already defined in file /xoops_lib/modules/protector/language/english/modinfo.php line 11


I have this

Quote:

define($constpref."_NAME","Protector");

6
deka87
Re: Debug errors in the admin section : "Constant already defined..."
  • 2012/8/8 10:32

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


any ideas?

7
irmtfan
Re: Debug errors in the admin section : "Constant already defined..."
  • 2012/8/9 5:34

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


do you solve it or not?
Protector is a security module.
there is no definition for protector module in the regular path htdocs/modules/protector/language/YOUR_LANG
you should delete all languages in the above folder totally.
All definitions are read from:
/xoops_lib/modules/protector/language/YOU_LANG

8
deka87
Re: Debug errors in the admin section : "Constant already defined..."
  • 2012/8/9 9:41

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


your right, irtmfan. too many languages files from prev install. fixed now.

Login

Who's Online

272 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 272


more...

Donat-O-Meter

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

Latest GitHub Commits