Menu

error.php won't work

Help
Ryan
2002-09-10
2002-11-26
  • Ryan

    Ryan - 2002-09-10

    error.php add-on won't work

    I got this error meesage:

    Can't open flags table

    please help....

     
    • Ryan

      Ryan - 2002-09-10

      for more info...my .htaccess contain like this:

      php_flag display_errors Off
      php_flag register_globals On
      php_flag track_vars On

      ErrorDocument 401 /error.php?error=401
      ErrorDocument 403 /error.php?error=403
      ErrorDocument 404 /error.php?error=404
      ErrorDocument 500 /error.php?error=500

       
      • foschi

        foschi - 2002-11-26

        The error_pages_1.2 file misses a .$table_prefix. at the very beginning. Because of this error.php shows the "can't open flags table".

        Once I corrected this error.php does work  - of some sorts.

        Even with my .htaccess file being the same as the one mentioned above in thes thread, whenever I enter a nonexistant url I still keep getting the apache server error messages. Why?

         
    • Michael Cannon

      Michael Cannon - 2002-09-16

      Which version of error.php are you using?

      Michael

       
    • Edward Ritter

      Edward Ritter - 2002-09-23

      The newest version of the error.php addin is for 0.82 and up as it looks for the flags table. If are not running the latest version, you should download the previous version of error.php which should work fine for you.

      Ed

       
    • Edward Ritter

      Edward Ritter - 2002-09-26

      Also, I uploaded the package again, it was missing the sample .htaccess file. If you've downloaded version 1.2, redownload it.

      Ed

       
    • foschi

      foschi - 2002-11-26

      Uii, figured it out myself ;-)

      For error.php to work properly set in Apache httpd server config or in <virtual host> container the AllowOverride directive from "None" to:

      AllowOverride FileInfo Options

      Then it works. Hopefully no security feature is compromised by this setting.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.