+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: when installing a script geting - E_CORE_NOTICE - ????

  1. #1
    loveispoison is offline Banned loveispoison is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    323

    Question when installing a script geting - E_CORE_NOTICE - ????

    hi

    im having this problem im trying to install a script but i get this error on top of the header does any know how to fix this or what it is?


    Notice: Use of undefined constant E_CORE_NOTICE - assumed 'E_CORE_NOTICE' in /home/user/public_html/mydomain.com/libs/xx/class.Error.php on line 175

    Notice: Use of undefined constant E_COMPILE_NOTICE - assumed 'E_COMPILE_NOTICE' in /home/user/public_html/mydomain.com/libs/xx/class.Error.php on line 176

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: when installing a script geting - E_CORE_NOTICE - ????

    That's really bizarre. E_CORE_NOTICE and E_COMPILE_NOTICE are system constants that have been defined since PHP4. I wonder if it's a configuration error on the admin side.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: when installing a script geting - E_CORE_NOTICE - ????

    Maybe your script is using outdated functions, or using functions in a wrong fashion
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  4. #4
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: when installing a script geting - E_CORE_NOTICE - ????

    The weird thing is it's saying the constant is not defined, so it's using another constant. But, the constant it's using is the one it was looking for in the first place.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  5. #5
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: when installing a script geting - E_CORE_NOTICE - ????

    Quote Originally Posted by loveispoison View Post
    im having this problem im trying to install a script but i get this error on top of the header does any know how to fix this or what it is?
    Quoting errors is helpful, but it's still damn hard to fix them without knowing the source that generated it. Always give enough information to properly diagnose the issue. If it's a custom script, post a minimal test case that generates the error. If you're using a library, say which library, but you don't (necessarily) need to post source code from the library as most of it will just clutter up the post. Most importantly, RTFM for the library.

    E_CORE_NOTICE and E_COMPILE_NOTICE aren't system constants. There are E_(CORE|COMPILE)_(ERROR|WARNING) constants, but apparently Zend doesn't generate notice-level messages, or at least doesn't need to handle them as it does other messages.

    The warning messages indicate that the bare identifiers are being turned into the strings 'E_CORE_NOTICE' and 'E_COMPILE_NOTICE', not the values of those (non-existent) constants.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  6. #6
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: when installing a script geting - E_CORE_NOTICE - ????

    ...And again mission finds the subtle nuances. It's treating the non-existent constant as a string.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  7. #7
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: when installing a script geting - E_CORE_NOTICE - ????

    Quote Originally Posted by garrettroyce View Post
    ...And again mission finds the subtle nuances. It's treating the non-existent constant as a string.
    Misson you're on fire!
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  8. #8
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: when installing a script geting - E_CORE_NOTICE - ????

    I thought it was documented behavior, but I can't find a reference in the PHP docs. It sure as hell is documented for Perl ("Programming Perl", 3rd ed., p860). It may have been in the documentation around 2006, when Ben Ramsey references it.

    Edit: The bit that Ben Ramsey quotes includes a reference to the PHP.net page on arrays that mentions quoting bare strings, but the referenced page isn't intentionally documenting this behavior; it's more of an offhand comment.
    Last edited by misson; 06-28-2009 at 08:17 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  9. #9
    loveispoison is offline Banned loveispoison is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    323

    Re: when installing a script geting - E_CORE_NOTICE - ????

    i dont realy understand what u guys are talking about and specialy what mission is saying lolz

    and i have removed that live from the script i got it working but then getting another error and removed that iswell then the script didt work and its a custom made script old 1

  10. #10
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: when installing a script geting - E_CORE_NOTICE - ????

    If your script uses the constant a lot, you'll probably get a whole slew of errors if you remove the line in which it's referenced. I would add this to the beginning of the file that you got the original error from:

    Code:
    define('E_CORE_NOTICE', E_CORE_WARNING);
    define('E_COMPILER_NOTICE', E_COMPILER_WARNING);
    Without knowing exactly what your script is doing, it's hard to pinpoint an exact solution, but I think this is a reasonable solution requiring little re-coding.

    This is what is happening:
    Code:
    $var = ERROR_DOESNT_EXIST;
    echo $var; // prints ERROR_DOESNT_EXIST (a string) and throws an error
    
    define('ERROR_DOESNT_EXIST', 12345);
    $var = ERROR_DOESNT_EXIST;
    echo $var; // prints 12345 (no error)
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. help installing a php script
    By pietimer in forum Scripts & 3rd Party Apps
    Replies: 7
    Last Post: 08-30-2008, 05:21 AM
  2. Access to 300+ PHP scripts (2500 credits)
    By jonathanyaniv in forum The Marketplace
    Replies: 11
    Last Post: 06-03-2008, 10:58 PM
  3. Error iin Installing script
    By testing111 in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 05-06-2008, 02:52 AM
  4. Replies: 8
    Last Post: 12-03-2007, 04:12 PM
  5. Need Help Installing a PHP script.
    By ptr5000 in forum Free Hosting
    Replies: 3
    Last Post: 08-31-2007, 10:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers