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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
designhut
Forum Members
Forum Members
Posts: 71
Joined: Sat Jul 21, 2007 10:31 am

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

Post 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.  :)
Last edited by designhut on Fri Aug 31, 2007 9:33 am, edited 1 time in total.
alby

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

Post 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
User avatar
designhut
Forum Members
Forum Members
Posts: 71
Joined: Sat Jul 21, 2007 10:31 am

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

Post 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!  :)
alby

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

Post 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
User avatar
designhut
Forum Members
Forum Members
Posts: 71
Joined: Sat Jul 21, 2007 10:31 am

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

Post 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.
Post Reply

Return to “CMSMS Core”