Page 1 of 1

[solved] Use of undefined constant php in user-defined tag window

Posted: Wed Aug 29, 2007 9:35 am
by designhut
Hi,

In my 'custom_copyright' user-defined tag window I'm getting this message and the variable copyright date isn't showing on the site (www.lincombehouse.co.uk).

Notice: Use of undefined constant php - assumed 'php' in /home/fhlinux164/l/lincombehouse.co.uk/user/htdocs/admin/edituserplugin.php on line 282

I don't have this problem on any other sites on the server, and my config.php uses DOCUMENT_ROOT to express all file locations so I don't see why it's coming up with a specific location. I suspect it's something to do with changing servers, which I did recently with this site. I'm a total novice with php.  :-[

Does anyone have any suggestions please? I would appreciate it very much.  :)

Re: Use of undefined constant php in user-defined tag window

Posted: Thu Aug 30, 2007 7:28 am
by alby
designhut wrote: Notice: Use of undefined constant php - assumed 'php' in /home/fhlinux164/l/lincombehouse.co.uk/user/htdocs/admin/edituserplugin.php on line 282

I don't have this problem on any other sites on the server, ....
Strange  ???,

Try to delete row in file (it's a comment):

Code: Select all

<?php/* echo textarea_highlight($use_javasyntax, $code, "code", "pagetextarea", "Java")*/ ?>
Or try to add one space after <?php

Code: Select all

<?php /* echo textarea_highlight($use_javasyntax, $code, "code", "pagetextarea", "Java")*/ ?>
Alby

Re: Use of undefined constant php in user-defined tag window

Posted: Thu Aug 30, 2007 11:40 am
by designhut
Thx Alby, eventually I deleted the line and that got rid of the error but the tag still isn't working, i.e. the date is not displayed. I correct myself, the error is on all the sites I transferred to a new host....any more ideas? Thank you!  :)

Re: Use of undefined constant php in user-defined tag window

Posted: Thu Aug 30, 2007 12:33 pm
by alby
designhut wrote: Thx Alby, eventually I deleted the line and that got rid of the error but the tag still isn't working, i.e. the date is not displayed. I correct myself, the error is on all the sites I transferred to a new host....any more ideas? Thank you!  :)
Post here your UDT: custom_copyright

Alby

(SOLVED) Re: Use of undefined constant php in user-defined tag window

Posted: Fri Aug 31, 2007 9:32 am
by designhut
Hi Alby,

Thanks for your assistance but it's sorted. I upgraded from 1.1 to 1.1.1 and that appears to have fixed a lot of little php bugs I had across the sites I had upgraded to 1.1.

Thx again though.