IanM 1.0.0 Adds 'ignore crawler visits' option to prevent view counts increasing from bot visits to your discussions - off by default Flarum 1.0 Note this version requires Flarum 1.0.0 or later only
Header_Footer 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!
IanM 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. 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..
IanM 1.0.1 Fix migration issue on enable/uninstall (Header_Footer ) Update flarum-webpack-config to 1.0.0 Installation 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!
Header_Footer 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"}]}
Geraldlzc How can I completely uninstall? I need to delete 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)
luceos 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.
Geraldlzc luceos Thank you for your answer. I use this method to solve it How to safely uninstall an extension?
IanM achedd in the post directly above yours... Geraldlzc I use this method to solve it How to safely uninstall an extension?
achedd 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!
IanM achedd 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
achedd 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 |
xasharma 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 - 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 ?
clarkwinkelmann xasharma "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.
xasharma clarkwinkelmann Thank you i have removed the simple one and installed composer require michaelbelgium/flarum-discussion-views