We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19368
    • 40 Posts
    I have been using ModX for a couple of hours.

    All of a sudden the whole thing has broken
    Warning: Unexpected character in input: ’’’ (ASCII=39) state=1 in /home/directory/assets/cache/siteCache.idx.php on line 4822

    Warning: Unterminated comment starting line 4822 in /home/directoryu/assets/cache/siteCache.idx.php on line 4822

    Fatal error: fatal flex scanner internal error--end of buffer missed in /home/directory/assets/cache/siteCache.idx.php on line 4822

    Even trying to go into the manager.

    I had just made a change to a snippet, but I can’t even get back at it to undo the change. Is that likely to have caused it?

    Any ideas?
      • 19368
      • 40 Posts
      A bit more detective work and I find that line 4822 is the closing bracket on the checkLang() function
      function checkLang() {
      global $_lang;

      $eng = array();
      $eng[\’forgot_your_password\’] = \’Forgot your password?\’;
      $eng[\’account_email\’] = \’Account email\’;
      $eng[\’send\’] = \’Send\’;
      $eng[\’password_change_request\’] = \’Password change request\’;
      $eng[\’forgot_password_email_intro\’] = \’A request has been made to change the password on your account.\’;
      $eng[\’forgot_password_email_link\’] = \’Click here to complete the process.\’;
      $eng[\’forgot_password_email_instructions\’] = \’From there you will be able to change your password from the My Account menu.\’;
      $eng[\’forgot_password_email_fine_print\’] = \’* The URL above will expire once you change your password or after today.\’;
      $eng[\’error_sending_email\’] = \’Error sending email\’;
      $eng[\’could_not_find_user\’] = \’Could not find user\’;
      $eng[\’user_doesnt_exist\’] = \’User does not exist\’;
      $eng[\’email_sent\’] = \’Email sent\’;

      foreach($eng as $key=>$value) {
      if(empty($_lang[$key])) { $_lang[$key] = $value; }
      }

      }
      I removed all the code from within the function and ModX worked again.

      Then I pasted it back in and upload and it still works.

      Go figure.

      I am still curious about what might have happened if anyone has an idea, it stopped me working for about an hour (which might not be a bad thing really tongue )