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

Cannot delete tags anymore #88

Closed
nickbe opened this issue May 9, 2016 · 13 comments
Closed

Cannot delete tags anymore #88

nickbe opened this issue May 9, 2016 · 13 comments
Labels
Milestone

Comments

@nickbe
Copy link

nickbe commented May 9, 2016

Trying to delete the last type tag results in a 404 error.

@nickbe nickbe changed the title Error when deleting a type tag. Error when deleting last type tag. May 9, 2016
@satrun77 satrun77 added the bug label May 9, 2016
@satrun77 satrun77 added this to the 2.7.1 milestone May 9, 2016
@satrun77
Copy link
Owner

unable to replicate this issue

@nickbe
Copy link
Author

nickbe commented May 10, 2016

Let me take a look at the database. I still have this error.

@nickbe
Copy link
Author

nickbe commented May 10, 2016

record #26 seems to look completely normal.

ID parent name color group created updated rolelimit
25 1 Review #d3b95f 0 2016-05-09 17:37:57 2016-05-09 17:38:34 2
26 2 Nonsense #ffffff 0 2016-05-09 19:07:21 2016-05-09 19:21:28 1

Delete calls the URL http://issues.ai-support.de/administration/tag/26/delete
But when I try to delete it this is what I get:

I think we're lost.
Server Error: 404 (Not Found)

@nickbe
Copy link
Author

nickbe commented May 10, 2016

So I just updated my installation to your latest develop version.
(Default status tag already included)

Still I cannot delete any tag anymore.

@nickbe nickbe changed the title Error when deleting last type tag. Cannot delete tags anymore May 10, 2016
@satrun77
Copy link
Owner

If Laravel cannot find the route, it is most likely the route cache need to be refreshed. You can clear it with:
php artisan route:clear

@nickbe
Copy link
Author

nickbe commented May 10, 2016

I just tried that but this didn't make a difference. Still the same error.

@nickbe
Copy link
Author

nickbe commented May 10, 2016

php artisan route:list shows me that there's no route like 'administration/tag/{tag}/delete/' but instead
2 x 'administration/tag/{tag}/edit'.
Does that mean anything?

@satrun77
Copy link
Owner

The edit route is correct.

Maybe you have older version of develop branch. the delete route is here: https://github.com/satrun77/tinyissue/blob/develop/app/Providers/RouteServiceProvider.php#L159

@nickbe
Copy link
Author

nickbe commented May 10, 2016

That's weird. I definetely have the correct RouteServiceProvider.php - the line is here.
EDIT: I'm backing up database and config and try a fresh install

@nickbe
Copy link
Author

nickbe commented May 10, 2016

All right. After deleting everythingm, a fresh install and restoring the .env and my database file I can again delete tags. Any idea what causes this problem? Can we prevent this somehow in the future?

@satrun77
Copy link
Owner

This is laravel cache you can clear it with above command or delete cache directory

@nickbe
Copy link
Author

nickbe commented May 11, 2016

I used these commands (several times), but it didn't work.

artisan cache:clear
artisan route:clear
artisan route:cache

Then I reinstalled from scratch. After that it was ok and the route was listed in the route list.

btw: When reinstalling I forgot to save the uploads :/ so I lost all my images - Should I always leave the storage folder as it is?

@nickbe
Copy link
Author

nickbe commented May 11, 2016

Anyway it works and I suppose this is only a problem when updating - which we should adress in a later version. Maybe there'll be an auto update sometimes.
Closed for now

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

No branches or pull requests

2 participants