ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Use of Undefined Constant Y - assumed 'Y'

September 13, 2011 6:15pm

Subscribe [2]
  • #1 / Sep 13, 2011 6:15pm

    wornjacket

    98 posts

    Upgraded from 1.6* to latest 2.* version of EE, and have this error. I’ve seen other posts that are similar but haven’t found a way to resolve it.

    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Use of undefined constant Y - assumed 'Y'
    
    Filename: libraries/Functions.php(656) : eval()'d code
    
    Line Number: 4
  • #2 / Sep 13, 2011 8:12pm

    wornjacket

    98 posts

    no idea what caused this but it just went away… very odd

  • #3 / Sep 14, 2011 3:35am

    John Henry Donovan

    12339 posts

    Hi Brandon,

    I didn’t find any similar threads searching for that error. Could you let us know which threads were similar so we can review. I realize its gone for now but just want to do some triage as to why it possibly might have occurred. Did you upgrade any add-ons to EE2?

  • #4 / Sep 14, 2011 11:19am

    wornjacket

    98 posts

    Honestly I’m not certain what caused the error, it wasn’t plugin related because I hadn’t put them in yet.

    on the forum I searched for ‘Use of undefined constant’ and looked through those results.

    IF I had to guess it would be a template variable, and maybe has to do with the ‘allow php’ in template. As I use PHP to outpout the copyright date.

  • #5 / Sep 14, 2011 1:19pm

    Mark Bowen

    12637 posts

    Hi Brandon,

    I too tried to find any similar posts and couldn’t other than the ones you mentioned above after I trimmed my search query slightly.

    I think we would need to get a copy of your template code in order to run it on our own test system in order to be able to re-create this problem.

    Without that it’s going to be very hard to say what this is. I’m thinking it’s probably some of your PHP that you’re using and if that’s the case then it’s possibly not going to be something we can offer support for as that would be custom coding and not a technical issue with ExpressionEngine particularly.

    One thing you can do to see if that is the case would be to take out all the PHP you’ve added to that template and see if the error goes away. If it does then you can add it back in again piece by piece and see where it breaks.

    Does that help at all?

    Thanks,

    Mark

  • #6 / Sep 14, 2011 1:21pm

    wornjacket

    98 posts

    Thanks. But the problem has gone away. I’m not using custom php other than the date() to display the date. Feel free to delete the topic.

  • #7 / Sep 14, 2011 1:31pm

    Mark Bowen

    12637 posts

    Hi Brandon,

    Glad to see that this is no longer affecting you. We don’t delete posts but I will go ahead and close it for you.

    If it rears its head again or you have any other problems then please don’t hesitate to post again as needed.

    Cheers,

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases