ianm I was previously using michael's extension and I removed it to install this but I am getting error Oops, Something went wrong! while enabling!
Header_Footer Whenever you see Oops, something went wrong, it's very likely that there will be associated details in storage/logs/flarum-{date}.log and/or on the browser dev tools console.
Oops, something went wrong
storage/logs/flarum-{date}.log
It's almost impossible to tell what's happening here purely from the generic error message. Please provide more information so that we might be able to help you..
flarum-webpack-config
1.0.0
composer require flarumite/simple-discussion-views:"*" php flarum cache:clear
Credit @clarkwinkelmann for spotting the issue even before I'd had a chance to take a look!
Error 500 https://myforum.org/api/extensions/flarumite-simple-discussion-views
Sir I found the above in console. and when I go to this URL I see this
{"errors":[{"status":"405","code":"method_not_allowed"}]}
How can I completely uninstall? I need to delete discussions > view_ count?
discussions > view_ count
PDOException: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'view_count' in /www/wwwroot/newbbs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:112 Stack trace: #0 /www/wwwroot/newbbs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(112): PDOStatement->execute(NULL) #1 /www/wwwroot/newbbs/vendor/illuminate/database/Connection.php(478): Doctrine\DBAL\Driver\PDOStatement->execute() #2 /www/wwwroot/newbbs/vendor/illuminate/database/Connection.php(678): Illuminate\Database\Connection->Illuminate\Database\{closure}('ALTER TABLE dis...', Array)
Geraldlzc yes if you remove that column the migration should be able to run again. Alternatively you can see what migration is causing the issue and create an entry for that in the migrations table.
luceos Thank you for your answer.
I use this method to solve it How to safely uninstall an extension?
ryan110 in the post directly above yours...
Geraldlzc I use this method to solve it How to safely uninstall an extension?
How to uninstall?
ianm # composer remove flarumite/simple-discussion-views:"" flarumite/simple-discussion-views: is not required in your composer.json and has not been removed ./composer.json has been updated Running composer update flarumite/simple-discussion-views:* Loading composer repositories with package information Pattern "flarumite/simple-discussion-views:*" listed for update does not match any locked packages. Updating dependencies Nothing to modify in lock file Installing dependencies from lock file (including require-dev) Nothing to install, update or remove Generating autoload files 72 packages you are using are looking for funding. Use the composer fund command to find out more!
composer fund
ryan110 Perhaps you have the other discussion view extension installed?
Please share the output of php flarum info so we can see for sure what the issue is
php flarum info
ianm ID | Version | Commit | +-------------------------------+---------+--------+ | flarum-flags | v1.0.0 | | | flarum-pusher | v1.0.0 | | | flarum-nicknames | v1.0.0 | | | flarum-approval | v1.0.0 | | | flarum-bbcode | v1.0.0 | | | flarum-emoji | v1.0.0 | | | flarum-lang-english | v1.0.0 | | | flarum-likes | v1.0.0 | | | flarum-lock | v1.0.0 | | | flarum-markdown | v1.0.1 | | | flarum-mentions | v1.0.0 | | | flarum-statistics | v1.0.0 | | | flarum-sticky | v1.0.0 | | | flarum-subscriptions | v1.0.0 | | | flarum-suspend | v1.0.0 | | | flarum-tags | v1.0.2 | | | ffans-lang-simplified-chinese | v1.0.1 | | | fof-upload | 1.0.1 |
ryan110 thanks. So you don’t have any discussion view extension installed
I removed composer require michaelbelgium/flarum-discussion-views by composer and installed this simple discussion views but it is showing - Oops! Something went wrong. Please reload the page and try again. I tried to uninstall composer remove flarumite/simple-discussion-views:"*" but it is showing this -
composer require michaelbelgium/flarum-discussion-views
composer remove flarumite/simple-discussion-views:"*"
flarumite/simple-discussion-views:* is not required in your composer.json and has not been removed ./composer.json has been updated Running composer update flarumite/simple-discussion-views:* Loading composer repositories with package information Updating dependencies Pattern "flarumite/simple-discussion-views:*" listed for update does not match any locked packages. Nothing to modify in lock file Installing dependencies from lock file (including require-dev) Nothing to install, update or remove Generating autoload files 92 packages you are using are looking for funding. Use the composer fund command to find out more!
I want tried to install this again composer require michaelbelgium/flarum-discussion-views
How can i solve this ?
alphadot
"Something went wrong" => Check your Flarum log file or browser javascript console for the error message
Cannot uninstall => do not add :"*" at the end. Just composer remove <package/name> without any version. It's the require command that can be provided with a version.
:"*"
composer remove <package/name>
require
clarkwinkelmann
Thank you i have removed the simple one and installed composer require michaelbelgium/flarum-discussion-views
I installed the plugin and the site gave 500 error help please
okey I solved
we have the button to select "Abbreviate view numbers" on or not ? 😃
hi ianm, i've noticed that if i add some items to DiscussionListItem.infoItems and after that some widget (that are completely into another position) i get some css view bug caused (i think) from discussion views (disabled this extension seems to solve)
DiscussionListItem.infoItems
can you help me to fix that?
Justoverclock I've seen this happen before, but I can't remember the solution right now. I'll take a look as time allows 🙂