Home Forums Support 500 Internal Server Error

This topic contains 13 replies, has 3 voices, and was last updated by  Hillel Coren 1 week, 6 days ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #23509

    Sancler Property
    Participant

    I’m getting the following when trying to move Invoice Ninja to another hosting platform, I have copy and pated from one server to another and changed allo of the information in the .env file, see below:

    APP_ENV=production
    APP_DEBUG=false
    APP_LOCALE=en
    
    APP_URL=http://invoice.salemconstruction.co.uk
    APP_KEY=imq2gopgj7wngf3we4tji9yp7cut2wvk
    APP_CIPHER=AES-256-CBC
    REQUIRE_HTTPS=false
    
    DB_TYPE=mysql
    DB_STRICT=false
    DB_HOST=db5000295393.hosting-data.io
    DB_DATABASE=dbs288564
    DB_USERNAME=dbu132680
    DB_PASSWORD=xxxxxxxx
    
    API_SECRET=
    GOOGLE_MAPS_ENABLED=false
    GOOGLE_MAPS_API_KEY=AIzaSyD-AIzaSyD-PxJ8ZTkJtQryQ8nW2gCxr0nDGAKDzYs
    
    MAIL_DRIVER=sendmail
    MAIL_PORT=587
    MAIL_ENCRYPTION=tls
    MAIL_HOST=smtp.ionos.co.uk
    [email protected]
    MAIL_FROM_NAME='Salem Construction'
    [email protected]
    MAIL_PASSWORD=xxxxxxxx
    
    PHANTOMJS_CLOUD_KEY=a-demo-key-with-low-quota-per-ip-address
    PHANTOMJS_SECRET=oj338o6msua7yj8x4oby7ocockymum8a
    MAILGUN_DOMAIN=
    MAILGUN_SECRET=
    

    There are no issues in the log files and when i type in the web address “http://invoice.salemconstruction.co.uk” it forwards it to “http://invoice.salemconstruction.co.uk/login” but shows the following message –

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    
    Please contact the server administrator at to inform them of the time this error occurred, and the actions you performed just before this error.
    
    More information about this error may be available in the server error log.
    
    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    Is there anything in the database that would throw it out as the old DB was named “ninja” and the new one is called “dbs288564”

    Any help would be appreciated

    Robbie

    #23510

    Randy
    Participant

    Is the following information correct?

    I think Invoice Ninja is trying to rech the database but he can’t connect to it so if I’d be you I’d check these settings again

    DB_HOST=db5000295393.hosting-data.io
    DB_DATABASE=dbs288564
    DB_USERNAME=dbu132680
    DB_PASSWORD=xxxxxxxx

    #23511

    Sancler Property
    Participant

    it is correct, its on a sub domain, would that create a problem at all?

    #23512

    Randy
    Participant

    Did you change the files to point to the subdomain?

    https://invoice-ninja.readthedocs.io/en/latest/install.html

    You need to remove the hashtag in the file .htaccess

    #RewriteRule ^(.*)$ public/$1 [L]

    ==>

    RewriteRule ^(.*)$ public/$1 [L]

    #23513

    Sancler Property
    Participant

    Yes @randy, i have tried that, i did notice in the db it has – db-ninja-1 & db-ninja-2 in the db_servers table, i have moved the sql db from a different host with a different db name to the new one listed above, would this a
    affect it?

    #23514

    Randy
    Participant

    No, that wouldn’t affect the DB. I’ve the same 2 rows in the table db_servers.

    What affects your connection to the DB is the .env file, that’s the one that gives the information to which DB to connect and with what user and password.

    If you renamed the .env file with the correct DB_Host, DB_Path, DB_user and DB_password then it must work so based on your error I’d think there’s a problem with one of those 4 lines.

    #23515

    Sancler Property
    Participant

    no spaces or quotations needed either as in how i have done it above?

    #23516

    Sancler Property
    Participant

    APP_ENV=production
    APP_DEBUG=false
    APP_LOCALE=en

    APP_URL=http://invoice.salemconstruction.co.uk
    APP_KEY=imq2gopgj7wngf3we4tji9yp7cut2wvk
    APP_CIPHER=AES-256-CBC
    REQUIRE_HTTPS=false

    DB_TYPE=mysql
    DB_STRICT=false
    DB_HOST=db5000295393.hosting-data.io
    DB_DATABASE=dbs288564
    DB_USERNAME=dbu132680
    DB_PASSWORD=S4ncler3X

    API_SECRET=
    GOOGLE_MAPS_ENABLED=false
    GOOGLE_MAPS_API_KEY=AIzaSyD-AIzaSyD-PxJ8ZTkJtQryQ8nW2gCxr0nDGAKDzYs

    MAIL_DRIVER=sendmail
    MAIL_PORT=587
    MAIL_ENCRYPTION=tls
    MAIL_HOST=smtp.ionos.co.uk
    [email protected]lerproperty.co.uk
    MAIL_FROM_NAME=’Salem Construction’
    [email protected]
    MAIL_PASSWORD=S4ncler3X

    PHANTOMJS_CLOUD_KEY=a-demo-key-with-low-quota-per-ip-address
    PHANTOMJS_SECRET=oj338o6msua7yj8x4oby7ocockymum8a
    MAILGUN_DOMAIN=
    MAILGUN_SECRET=

    #23517

    Sancler Property
    Participant

    .HTACCESS

    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteRule "^.env" - [F,L]
      RewriteRule "^storage" - [F,L]
      RewriteRule ^(.well-known)($|/) - [L]
      
      # https://coderwall.com/p/erbaig/laravel-s-htaccess-to-remove-public-from-url
      RewriteRule ^(.*)$ public/$1 [L]
    </IfModule>
    
    # https://github.com/h5bp/server-configs-apache/blob/master/dist/.htaccess
    
    # ######################################################################
    # # INTERNET EXPLORER                                                  #
    # ######################################################################
    
    # ----------------------------------------------------------------------
    # | Iframes cookies                                                    |
    # ----------------------------------------------------------------------
    
    # Allow cookies to be set from iframes in Internet Explorer.
    #
    # https://msdn.microsoft.com/en-us/library/ms537343.aspx
    # http://www.w3.org/TR/2000/CR-P3P-20001215/
    
    <IfModule mod_headers.c>
        Header set P3P "policyref=\"/w3c/p3p.xml\", CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""
    </IfModule>
    
    # ######################################################################
    # # MEDIA TYPES AND CHARACTER ENCODINGS                                #
    # ######################################################################
    
    # ----------------------------------------------------------------------
    # | Character encodings                                                |
    # ----------------------------------------------------------------------
    
    # Serve all resources labeled as <code>text/html</code> or <code>text/plain</code>
    # with the media type <code>charset</code> parameter set to <code>UTF-8</code>.
    #
    # https://httpd.apache.org/docs/current/mod/core.html#adddefaultcharset
    
    AddDefaultCharset utf-8
    
    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    
    # Serve the following file types with the media type <code>charset</code>
    # parameter set to <code>UTF-8</code>.
    #
    # https://httpd.apache.org/docs/current/mod/mod_mime.html#addcharset
    
    <IfModule mod_mime.c>
        AddCharset utf-8 .atom \
                         .bbaw \
                         .css \
                         .geojson \
                         .js \
                         .json \
                         .jsonld \
                         .manifest \
                         .rdf \
                         .rss \
                         .topojson \
                         .vtt \
                         .webapp \
                         .webmanifest \
                         .xloc \
                         .xml
    </IfModule>
    
    # ######################################################################
    # # WEB PERFORMANCE                                                    #
    # ######################################################################
    
    # ----------------------------------------------------------------------
    # | Compression                                                        |
    # ----------------------------------------------------------------------
    
    <IfModule mod_deflate.c>
    
        # Force compression for mangled headers.
        # https://developer.yahoo.com/blogs/ydn/pushing-beyond-gzipping-25601.html
    
        <IfModule mod_setenvif.c>
            <IfModule mod_headers.c>
                SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
                RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
            </IfModule>
        </IfModule>
    
        # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    
        # Map certain file types to the specified encoding type in order to
        # make Apache serve them with the appropriate <code>Content-Encoding</code> HTTP
        # response header (this will NOT make Apache compress them!).
    
        # If the following file types wouldn't be served without the appropriate
        # <code>Content-Enable</code> HTTP response header, client applications (e.g.:
        # browsers) wouldn't know that they first need to uncompress the response,
        # and thus, wouldn't be able to understand the content.
    
        # http://httpd.apache.org/docs/current/mod/mod_mime.html#addencoding
    
        <IfModule mod_mime.c>
            AddEncoding gzip              svgz
        </IfModule>
    
        # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    
        # Compress all output labeled with one of the following media types.
    
        # IMPORTANT: For Apache versions below 2.3.7 you don't need to enable
        # <code>mod_filter</code> and can remove the <code><IfModule mod_filter.c></code> & <code></IfModule></code>
        # lines as <code>AddOutputFilterByType</code> is still in the core directives.
    
        <IfModule mod_filter.c>
            AddOutputFilterByType DEFLATE "application/atom+xml" \
                                          "application/javascript" \
                                          "application/json" \
                                          "application/ld+json" \
                                          "application/manifest+json" \
                                          "application/rdf+xml" \
                                          "application/rss+xml" \
                                          "application/schema+json" \
                                          "application/vnd.geo+json" \
                                          "application/vnd.ms-fontobject" \
                                          "application/x-font-ttf" \
                                          "application/x-web-app-manifest+json" \
                                          "application/xhtml+xml" \
                                          "application/xml" \
                                          "font/opentype" \
                                          "image/svg+xml" \
                                          "image/x-icon" \
                                          "text/cache-manifest" \
                                          "text/css" \
                                          "text/html" \
                                          "text/javascript" \
                                          "text/plain" \
                                          "text/vtt" \
                                          "text/x-component" \
                                          "text/xml"
        </IfModule>
    
    </IfModule>
    
    #23518

    Sancler Property
    Participant

    if i change the db name to an incorrect one the url changes to – http://invoice.salemconstruction.co.uk/public/setup but it stills throws a 500 error

    #23519

    Randy
    Participant

    Then I don’t really have an answer, your .env and .htaccess looks good.

    Just to be sure… the username and password is the DB usernamen and password and not your PhpMyAdmin username and password?

    Also don’t share passwords on the internet 🙂

    #23524

    Sancler Property
    Participant

    @randy, i modified them 😉

    #23525

    Sancler Property
    Participant

    ok, so in the stacktrace.log i’m getting this –

    2020-02-12 05:11:16 SQLSTATE[HY000] [2002] Connection timed out: #0 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(64): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=217....', 'dbu132680', 'XXXXXX!', Array)
    #1 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(43): Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=217....', 'dbu132680', 'xxxxxx!', Array)
    #2 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=217....', Array, Array)
    #3 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(183): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
    #4 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
    #5 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Database/Connection.php(915): call_user_func(Object(Closure))
    #6 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Database/Connection.php(940): Illuminate\Database\Connection->getPdo()
    #7 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Database/Connection.php(399): Illuminate\Database\Connection->getReadPdo()
    #8 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Database/Connection.php(325): Illuminate\Database\Connection->getPdoForSelect(true)
    #9 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Database/Connection.php(657): Illuminate\Database\Connection->Illuminate\Database\{closure}('select * from i...', Array)
    #10 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Database/Connection.php(624): Illuminate\Database\Connection->runQueryCallback('select * from i...', Array, Object(Closure))
    #11 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Database/Connection.php(333): Illuminate\Database\Connection->run('select * from i...', Array, Object(Closure))
    #12 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php(18): Illuminate\Database\Connection->select('select * from i...', Array)
    #13 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): Illuminate\Database\Schema\MySqlBuilder->hasTable('accounts')
    #14 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/app/Libraries/Utils.php(45): Illuminate\Support\Facades\Facade::__callStatic('hasTable', Array)
    #15 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/app/Http/Controllers/HomeController.php(46): App\Libraries\Utils::isDatabaseSetup()
    #16 [internal function]: App\Http\Controllers\HomeController->showIndex()
    #17 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
    #18 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('showIndex', Array)
    #19 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\HomeController), 'showIndex')
    #20 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169): Illuminate\Routing\Route->runController()
    #21 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\Routing\Route->run()
    #22 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #23 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/app/Http/Middleware/StartupCheck.php(55): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #24 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\Http\Middleware\StartupCheck->handle(Object(Illuminate\Http\Request), Object(Closure))
    #25 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #26 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/app/Http/Middleware/QueryLogging.php(32): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #27 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\Http\Middleware\QueryLogging->handle(Object(Illuminate\Http\Request), Object(Closure))
    #28 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #29 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/app/Http/Middleware/DuplicateSubmissionCheck.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #30 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\Http\Middleware\DuplicateSubmissionCheck->handle(Object(Illuminate\Http\Request), Object(Closure))
    #31 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #32 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #33 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
    #34 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #35 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(68): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #36 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/app/Http/Middleware/VerifyCsrfToken.php(44): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
    #37 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
    #38 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #39 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #40 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
    #41 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #42 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #43 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
    #44 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #45 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #46 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
    #47 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #48 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #49 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
    #50 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #51 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #52 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660): Illuminate\Pipeline\Pipeline->then(Object(Closure))
    #53 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
    #54 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
    #55 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Router.php(590): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
    #56 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
    #57 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
    #58 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #59 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
    #60 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #61 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/barryvdh/laravel-cors/src/HandlePreflight.php(46): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #62 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Barryvdh\Cors\HandlePreflight->handle(Object(Illuminate\Http\Request), Object(Closure))
    #63 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #64 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #65 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
    #66 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
    #67 /homepages/33/d784429422/htdocs/clickandbuilds/ninja/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
    #68 {main}
    

    Help Please

    #23537

    Hillel Coren
    Keymaster

    From the error log it looks like the app is failing to connect to the database, you may want to confirm the settings for work you.

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.

Posted in: