Your moodlelib.php is from Moodle 1.4.2 (version 1.338.2.33, should be 1.338.2.45 or 46). Perhaps during upgrade only some files were updated. Please upgrade you installation again, because there might be other problems.
Book
Direct access to this script is forbidden.
This discussion has been locked so you can no longer reply to it.