1
mjoel
help with language constant in file php 5.5 and php 5.4
  • 2016/6/7 3:25

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Hi I have this problem

in localhost i have php 5.4.31..code below display ok

echo ""._MY_NAME."";


echo " "._MY_HRMODULE." »
";



in my real server i have php 5.5.31.. i receive this error

Quote:

Notice: Use of undefined constant _MY_NAME - assumed '_MY_NAME' in file /modules/myhr/index.php line 10

Notice: Use of undefined constant _MY_HRMODULE - assumed '_MY_HRMODULE' in file /modules/myhr/index.php line 122

2
mjoel
Re: help with language constant in file php 5.5 and php 5.4
  • 2016/6/7 3:29

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


help how do i correct this in php 5.5

3
Mamba
Re: help with language constant in file php 5.5 and php 5.4
  • 2016/6/7 4:03

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I don't believe that it has to do with your PHP version.

It seems like on your "real" server, the file with the definition of "_MY_HRMODULE" is missing, or is not included.

Find out where are the definitions for the missing language constants on your test server, and make sure they are also on your "real server"
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

4
mjoel
Re: help with language constant in file php 5.5 and php 5.4
  • 2016/6/7 4:32

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Thanks Mamba

i have the same file in both server

i figured out the problem and now its working

i copy paste some of the missing definition from modinfo.php in the language folder to main.php in the same folder

i dont know why it is ok in php 5.4 without definining the constant in main.php but not in php 5.5

Thanks again

Login

Who's Online

413 user(s) are online (297 user(s) are browsing Support Forums)


Members: 0


Guests: 413


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