1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Error : Undefined variable...help!

Discussion in 'XenForo Development Discussions' started by Marcel, Aug 26, 2016.

  1. Marcel

    Marcel Active Member

    This is a bit of code in one of my cron jobs :
    Lines 79 and 80....
               $logInfo "======  START MOVING THREADS  ======";
    For some reason it's throwing an error when the cron job runs :

    It's really bugging me. The variable has clearly been defined before use. The strange thing is, I also have the same two lines later on (closing the end of the log entry), which if I remove these two lines (to get the code to continue) they work!

    I'm running PHP 5.4.37 via AMPPS and Eclipse.
    I'm obviously running locally but I've just upgraded to macOS Beta (Latest one). I'm wondering if it's something to do with that?
  2. Marcel

    Marcel Active Member

    Completely ignore me! I've found it. Preceding line 79 was an if statement that should have had a following curly bracket that had buggered off somewhere further down the code.

    I'm a doofus, but Ill leave this up here for everyone to point and laugh :)

Share This Page