Menu

Home page not working on SeedDMS

2020-07-26
2020-07-29
  • Dylan Tusler

    Dylan Tusler - 2020-07-26

    So, I spent the last week or so getting PDF previews working, and along the way something seems to have gone awry with the home page of the site. If I try to navigate to the root page, all I get is a blank page saying:
    This site can’t be reached
    The webpage at http://www.[mydomain].com/ might be temporarily down or it may have moved permanently to a new web address.
    ERR_INVALID_RESPONSE

    Nothing in console.

    This is the message in apache access log:

    [Sun Jul 26 23:19:45.015065 2020] [proxy_fcgi:error] [pid 7343:tid 140594529490688] [client x.x.x.x:59576] 
    AH01071: Got error 'PHP message: 
    PHP Fatal error:  
    Uncaught RuntimeException: Unexpected data in output buffer. Maybe you have characters before an opening <?php tag? in /opt/bitnami/apache2/seeddms60x/pear/vendor/slim/slim/Slim/App.php:621
    Stack trace:
    #0 /opt/bitnami/apache2/seeddms60x/pear/vendor/slim/slim/Slim/App.php
    (317): Slim\\App->finalize(Object(Slim\\Http\\Response))
    #1 /opt/bitnami/apache2/seeddms60x/seeddms-6.0.10/index.php(78): Slim\\App->run()
    #2 {main}
      thrown in /opt/bitnami/apache2/seeddms60x/pear/vendor/slim/slim/
    Slim/App.php on line 621'
    

    If I go to a subpage, like http://www.[mydomain].com/out/out.ViewFolder.php?folderid=1 this usually works fine (but not always, sometimes I get rendering issues.)

    Here's the contents of the .htaccess file. I added the last line (DirectoryIndex) to try and resolve the issue:

    Options -Indexes
    
    RewriteEngine On
    RewriteRule ^favicon.ico$ styles/bootstrap/favicon.ico [L]
    
    # Store the current location in an environment variable CWD to use
    # mod_rewrite in .htaccess files without knowing the RewriteBase
    RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
    RewriteRule ^.*$ - [E=CWD:%2]
    
    # Do not allow access on the other directories in www
    RewriteRule "^utils/.*$" "" [F]
    RewriteRule "^doc/.*$" "" [F]
    
    # Anything below the following dirs will never be rewritten
    RewriteRule "^pdfviewer/.*$" "-" [L]
    RewriteRule "^views/bootstrap/images.*$" "-" [L]
    RewriteRule "^out/images.*$" "-" [L]
    RewriteRule "^styles/.*$" "-" [L]
    
    # Accessing a file in an extension is always possible
    # Added for old extensions which do not use routes
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule "^ext/.*$" "-" [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^.*$ %{ENV:CWD}index.php [QSA,L]
    
    DirectoryIndex index.php
    
     

    Last edit: Dylan Tusler 2020-07-26
  • Uwe Steinmann

    Uwe Steinmann - 2020-07-27

    Have you modified pear/vendor/slim/slim/Slim/App.php ?

     
  • Dylan Tusler

    Dylan Tusler - 2020-07-28

    No, I didn't modify anything in this file at all. However, having said that, I did subsequently modify that file in order to get the site working. I commented out line 317 (the call to Finalize) which fixed my site, but I feel it is hiding the issue rather than fixing it.

     
  • Uwe Steinmann

    Uwe Steinmann - 2020-07-29

    Which PHP version are you using?

     
  • Dylan Tusler

    Dylan Tusler - 2020-07-29

    PHP Version 7.3.15

    I have a PHPTest page you can see. I will DM you the link, for further information.

     

Log in to post a comment.

MongoDB Logo MongoDB