PHP Fatal Flex Scanner Internal Error

Recently when coding in PHP I got this error:

Fatal error: fatal flex scanner internal error–end of buffer missed in [file] on [line number]

Turns out it was because I forgot to close a comment block (forgot the */). Thought I’d post it here in case it helps someone. :)

Was this post helpful? Share it!

9 Comments

  1. It helped me too. Thanks. This error is not very understandable.

  2. John, you are a life saver! I’ve been trying to figure out the problem for days and you nailed it. One small correction to the code and FIXED!
    Thanks, Janet

  3. Dan

    John, the error points to the beginning of a comment block (/**) in the file.
    what could it be please?

  4. John

    Dan, you sould end that comment block.

  5. Sam

    Hi there im having the same issue my error code is :

    Fatal error: fatal flex scanner internal error–end of buffer missed in /home/lfcsemin/public_html/wp-includes/class-simplepie.php on line 1266

    i went to the cpanel and in that php file all there is on that line is below:

    /**

    what should i do ? im a beginner big time . somebody said up on the thread to close the comment block . how do you do that ?

    help please thank you

  6. Sam

    on line 1266 there is : /**
    on line 1267 there is : * Allows

    the file ends there

  7. Amy

    Yes! Thank you, thank you for taking the time to share. Whew! And thanks to Google search, fixed the problem I accidentally created in mere minutes. :-)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>