Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 + 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: How to fix moon, by declare it is in the langauge folder?
by adrock on 2005/8/28 18:04:19

getting closer!

So, it appears that it has been defined elsewhere as well.

Or that the that parameter has been defined for use in another argument earlier in the block, so now it gives you a redundant error as the block attempts to define that information and display it for a second time.

(I had a weather block that had this issue as it defined the current conditions for an echoed text statement, and for display of a picture....I duplicated the define line and added a number 2 to the end of it, and edited all of the templates and files for the module to include the second definition, and it eliminated the error)
Re: How to fix moon, by declare it is in the langauge folder?
by Dave_L on 2005/8/28 18:00:38

If it's in a block, it should have the form _MB_XXXX_FULL_MOON_NAME.

Without seeing the entire module (which I probably wouldn't have time to go through anyway), it's hard to tell why you're getting that message.

You aren't explicitly including the language file, are you? If so, that could be the problem, since the language file gets included automatically.
Re: How to fix moon, by declare it is in the langauge folder?
by wizanda on 2005/8/28 17:54:58

Ok, It is defined in the langauge folder, here is the xoop error report.
le="color: #000000"><?php Notice [PHP]: Constant MP_FULL_MOON_NAME already defined in file C:WMwwwwizandamodulesmoonlanguageenglishblocks.php line 18


The bit I have posted is from the moonblock.php, it should point that to the langauge folder yet something is missing???
What?
Re: How to fix moon, by declare it is in the langauge folder?
by adrock on 2005/8/28 17:50:38

lol!
Dave just sent you in the same direction as I was planning on sending you...

As for the man in the moon, I have been told many times that I am a lunatic, so although I have never met him face to face, apparently I have fallen from his family tree!

(As a cnacer, my world is perhaps most affected by the lunar tides!)
Re: How to fix moon, by declare it is in the langauge folder?
by Dave_L on 2005/8/28 17:42:48

I'm having trouble understanding your problem.

Is the problem that MP_FULL_MOON_NAME is defined in more than one place, or that it isn't defined anywhere?

Where exactly are you referencing it?

If it's a language string, and it's used in the main part of your module, it should have a name like _MD_XXXX_FULL_MOON_NAME, where XXXX is the module name or abbreviation, and the constant should be defined in modules/xxxx/language/english/main.php.

Who's Online

493 user(s) are online (177 user(s) are browsing Support Forums)


Members: 0


Guests: 493


more...

Donat-O-Meter

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

Latest GitHub Commits