Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Do you check before production?


Downloaded the latest version Metronic from your site for Laravel.
And I could not even reach the migration. Error at the sixth stage.

Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

Illuminate\Database\QueryException

SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (SQL: select * from `settings`)

at C:\Users\aaspe\PhpstormProjects\laravel\vendor\laravel\framework\src\Illuminate\Database\Connection.php:759
755â–• // If an exception occurs when attempting to run a query, we'll format the error
756â–• // message to include the bindings with SQL, which will make this exception a
757â–• // lot more helpful to the developer instead of just the database's errors.
758â–• catch (Exception $e) {
➜ 759▕ throw new QueryException(
760â–• $query, $this->prepareBindings($bindings), $e
761â–• );
762â–• }
763â–• }

1 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(App\Providers\AppServiceProvider))

2 C:\Users\aaspe\PhpstormProjects\laravel\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDOException:sad"SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)")
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


Of course, I tried to make a migration, since the error is related to the database. Renamed .env and added access to the database. But here a new error is associated with the same table:

PS C:\Users\aaspe\PhpstormProjects\laravel> php artisan migrate:fresh --seed

Illuminate\Database\QueryException

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'import.settings' doesn't exist (SQL: select * from `settings`)

at C:\Users\aaspe\PhpstormProjects\laravel\vendor\laravel\framework\src\Illuminate\Database\Connection.php:759
755â–• // If an exception occurs when attempting to run a query, we'll format the error
756â–• // message to include the bindings with SQL, which will make this exception a
757â–• // lot more helpful to the developer instead of just the database's errors.
758â–• catch (Exception $e) {
➜ 759▕ throw new QueryException(
760â–• $query, $this->prepareBindings($bindings), $e
761â–• );
762â–• }
763â–• }

1 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(App\Providers\AppServiceProvider))

2 C:\Users\aaspe\PhpstormProjects\laravel\vendor\laravel\framework\src\Illuminate\Database\Connection.php:413
PDOException:sad"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'import.settings' doesn't exist")



Hi,

Here is a workaround. A quick solution would be to comment out:

/app/helpers.php Line: 191
and

/app/Core/Bootstraps/BootstrapDemo1.php Line: 28-39

Then after migrating and seeding you can uncomment back those lines.

We will fix it as soon as possible

Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(