Page 1 of 1

Use of undefined constant

Posted: Fri Dec 16, 2016 11:03 am
by twc
Dont now what to do....? please help

NOTICE: Use of undefined constant News - assumed 'News'
/home/fiberd1q/public_html/templates/fiber/template.htm:110
NOTICE: Use of undefined constant News3 - assumed 'News3'
/home/fiberd1q/public_html/templates/fiber/template.htm:146
NOTICE: Use of undefined constant News4 - assumed 'News4'
/home/fiberd1q/public_html/templates/fiber/template.htm:158
NOTICE: Use of undefined constant News5 - assumed 'News5'
/home/fiberd1q/public_html/templates/fiber/template.htm:161

Re: Use of undefined constant

Posted: Fri Dec 16, 2016 11:15 am
by cmb
twc wrote:NOTICE: Use of undefined constant News - assumed 'News'
/home/fiberd1q/public_html/templates/fiber/template.htm:110

That looks like you have something like the following code in the template:

Code: Select all

<?php echo newsbox(News)?>

However, News should be written in quotes:

Code: Select all

<?php echo newsbox('News')?>

See also http://php.net/manual/en/language.types.array.php#language.types.array.foo-bar.

Re: Use of undefined constant

Posted: Fri Dec 16, 2016 1:37 pm
by twc
cmb wrote:
twc wrote:NOTICE: Use of undefined constant News - assumed 'News'
/home/fiberd1q/public_html/templates/fiber/template.htm:110

That looks like you have something like the following code in the template:

Code: Select all

<?php echo newsbox(News)?>

However, News should be written in quotes:

Code: Select all

<?php echo newsbox('News')?>

See also http://php.net/manual/en/language.types.array.php#language.types.array.foo-bar.


thanks..... :D ..... sometimes you see to mutch for your eyes cant see the problem