Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem SQLSTATE 42S02 #2

Closed
dukenst2006 opened this issue Feb 9, 2016 · 3 comments
Closed

problem SQLSTATE 42S02 #2

dukenst2006 opened this issue Feb 9, 2016 · 3 comments

Comments

@dukenst2006
Copy link

Hi @nahid
follow your steps to install, After type php artisan migrate command it's give this issue
all the commands like php artisan not work, give this screen , any idea?
the .env the file has been modified as indicated in the guide.
Thank you for your help !
error

@nahid
Copy link
Owner

nahid commented Feb 9, 2016

Thank you for using this project.
Please go to app/Providers and open PartialServiceProvider.php file. Now comment those line from boot() method

    $this->sidebarCategory();
    $this->adminHeader();

and save it.
Now run php artisan migrate and it will work. After complete migration please uncomment those line from app/Providers/PartisalServiceProvider.php

Thank you :)

@meilunzhi
Copy link

root@homestead:~/Code/Fanshub-blog# php artisan

[Illuminate\Database\QueryException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'myblog.alien_tagged' doesn't exist (SQL: select alien_tags.id, count(
tag_id) as total_tags, alien_tags.tag_name from alien_tagged inner join alien_tags on alien_tagged.tag_id = alien_tags
.id group by alien_tagged.tag_id limit 20)

[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'myblog.alien_tagged' doesn't exist

@nahid
Copy link
Owner

nahid commented May 18, 2016

Oh its a misstake. Please follow these steps its will be fixed.

  1. Goto app/Providers/PartialsServiceProvider.php
  2. Comments those line
$this->sidebarCategory();
$this->adminHeader();

and save it.

  1. run composer install or composer update
  2. then run php artisan migrate
  3. and now uncomment those line which you commented first.

I think it will work fine and solve your problem also.

Thank you

@nahid nahid closed this as completed Oct 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants