Please note: I will update the plugin the following week, right now I have some school work that is very important the following two weeks... So it takes some time from me before I can focus on the extension again...

Victor12 Awesome, great to hear that! I hope for others it will be a great solution!

MikeJones Oh wow, did not expect that. Hadn't test that out yet... It's the Flarum Likes extension that you've maybe disabled, not the QA extension actually, sorry that happened! I will edit the plugin that the QA view automatically fallbacks to default discussion SEO as when that plugin is disabled!

bin Follow the instructions below 🙂

When this makes your forum slow, you can turn back to the default SEO and check if that helps. The only way (right now) is to go to your database, then the table settings, and add the key disable_fancy_discussion_seo with the value 1.

    JasperVriends Oh wow, did not expect that. Hadn't test that out yet... It's the Flarum Likes extension that you've maybe disabled, not the QA extension actually, sorry that happened! I will edit the plugin that the QA view automatically fallbacks to default discussion SEO as when that plugin is disabled!

    I just re-enabled the likes extension and am telling google to recrawl. We shall see if these warnings go away!

      5 days later

      PascalBoschma No, never mind. Upon further investigation that error was actually caused by the Friends of Flarum necrobumping extension.

      4 days later

      So out of the blue today it looks like this extension brought down my entire flarum. Here is what happened.

      The website has been working great lately. BUt I visited it one last time right before going to bed tonight and all that was displayed when I visited it was this:

      Error booting Flarum: SQLSTATE[HY000] [2002] No such file or directory (SQL: select value, key from settings)

      After further investigating and looking at my FLarum Logs I pulled this out:

      [2019-01-23 04:19:19] production.ERROR: Error: Call to a member function getAttribute() on null in /var/www/seekadventure.net/vendor/v17development/flarum-seo/src/Mana$
      Stack trace:
      #0 /var/www/seekadventure.net/vendor/v17development/flarum-seo/src/Managers/QADiscussion.php(59): V17Development\FlarumSeo\Managers\QADiscussion->createTags()
      #1 /var/www/seekadventure.net/vendor/v17development/flarum-seo/src/Listeners/PageListener.php(143): V17Development\FlarumSeo\Managers\QADiscussion->__construct(Object($
      #2 /var/www/seekadventure.net/vendor/v17development/flarum-seo/src/Listeners/PageListener.php(106): V17Development\FlarumSeo\Listeners\PageListener->determine()
      #3 /var/www/seekadventure.net/vendor/flarum/core/src/Frontend/Frontend.php(65): V17Development\FlarumSeo\Listeners\PageListener->__invoke(Object(Flarum\Frontend\Docume$
      #4 /var/www/seekadventure.net/vendor/flarum/core/src/Frontend/Frontend.php(57): Flarum\Frontend\Frontend->populate(Object(Flarum\Frontend\Document), Object(Zend\Diacto$
      #5 /var/www/seekadventure.net/vendor/flarum/core/src/Frontend/Controller.php(34): Flarum\Frontend\Frontend->document(Object(Zend\Diactoros\ServerRequest))
      #6 /var/www/seekadventure.net/vendor/flarum/core/src/Http/RouteHandlerFactory.php(40): Flarum\Frontend\Controller->handle(Object(Zend\Diactoros\ServerRequest))
      #7 /var/www/seekadventure.net/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(67): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}(Object(Zend\Diactoro$
      #8 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\DispatchRoute->process(Object(Zend\Diactoros\ServerReques$
      #9 /var/www/seekadventure.net/vendor/reflar/stopforumspam/src/Middleware/RegisterMiddleware.php(75): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest$
      #10 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/Next.php(52): Reflar\Stopforumspam\middleware\RegisterMiddleware->process(Object(Zend\Diactor$
      #11 /var/www/seekadventure.net/vendor/flarum/core/src/Http/Middleware/ShareErrorsFromSession.php(58): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerReques$
      #12 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\ShareErrorsFromSession->process(Object(Zend\Diactoros\Se$
      #13 /var/www/seekadventure.net/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
      #14 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\SetLocale->process(Object(Zend\Diactoros\ServerRequest),$
      #15 /var/www/seekadventure.net/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(34): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerReque$
      #16 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\AuthenticateWithSession->process(Object(Zend\Diactoros\S$
      #17 /var/www/seekadventure.net/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
      #18 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\RememberFromCookie->process(Object(Zend\Diactoros\Server$
      #19 /var/www/seekadventure.net/vendor/flarum/core/src/Http/Middleware/StartSession.php(62): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
      #20 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\StartSession->process(Object(Zend\Diactoros\ServerReques$
      #21 /var/www/seekadventure.net/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php(48): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
      #22 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\CollectGarbage->process(Object(Zend\Diactoros\ServerRequ$
      #23 /var/www/seekadventure.net/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(29): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
      #24 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\ParseJsonBody->process(Object(Zend\Diactoros\ServerReque$
      #25 /var/www/seekadventure.net/vendor/flarum/core/src/Http/Middleware/HandleErrorsWithView.php(67): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
      #26 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\HandleErrorsWithView->process(Object(Zend\Diactoros\Serv$
      #27 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(91): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
      #28 /var/www/seekadventure.net/vendor/middlewares/request-handler/src/RequestHandler.php(84): Zend\Stratigility\MiddlewarePipe->process(Object(Zend\Diactoros\ServerReq$
      #29 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(78): Middlewares\RequestHandler->process(Object(Zend\Diactoros\ServerReque$
      #30 /var/www/seekadventure.net/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Zend\Stratigility\MiddlewarePipe->handle(Object(Zend\Diactoros\ServerReq$
      #31 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(78): Middlewares\BasePathRouter->process(Object(Zend\Diactoros\ServerReque$
      #32 /var/www/seekadventure.net/vendor/middlewares/base-path/src/BasePath.php(53): Zend\Stratigility\MiddlewarePipe->handle(Object(Zend\Diactoros\ServerRequest))
      #33 /var/www/seekadventure.net/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(78): Middlewares\BasePath->process(Object(Zend\Diactoros\ServerRequest), O$
      #34 /var/www/seekadventure.net/vendor/zendframework/zend-httphandlerrunner/src/RequestHandlerRunner.php(95): Zend\Stratigility\MiddlewarePipe->handle(Object(Zend\Diact$
      #35 /var/www/seekadventure.net/vendor/flarum/core/src/Http/Server.php(46): Zend\HttpHandlerRunner\RequestHandlerRunner->run()
      #36 /var/www/seekadventure.net/public/index.php(18): Flarum\Http\Server->listen()
      #37 {main}

      After speaking with @jordanjay29 in the discord room he suggested disabling the SEO plugin based on the above error.

      I could not access my site at www.seekadventure.net because it gave the first error just on a white page. But www.sekadventure.net/admin worked and I was able to un-check the SEO plugin and when I refreshed my main page everything started working again.

        MikeJones Interesting. I think this SEO extension works, but it doesn't play nice with other extensions. For example, I installed this SEO extension, and right after that I also installed the "necrobumping" extension from the Friends of Flarum team. Then my site stopped working. I checked the error log and the error log was blaming this SEO extension. But, once I disabled the Friends of Flarum necrobumping extension, my site starting working again and the SEO extension is working great.

        I don't know what the issue is. My only advice to @JasperVriends is to check the code to see if it is coded in such a way to where it may not play nice with other extensions? Is there some naming convention, or line of code somewhere that other extensions also might use which causes conflicts? I have no idea.

          I'm back from the schoolstuff, I got my free time back 😁 I will work on the plugin tomorrow and update it!

          MikeJones This is a great idea! Something for in the future 😀

          MikeJones Thanks for the log (and the GitHub issue report), I'll point that out tomorrow!

          010101 I actually do not know yet. I will test my plugin in combination with that plugin on my dev server tomorrow. I will fix the problems if I can find what's going wrong!

            7 days later

            Hello @JasperVriends,

            I was wondering if you have an ETA for 0.3-beta release which has the view page refresh bug-fix.

            Thanks

            Update 0.3-beta

            I've released an update!

            • Fixed problem PHP notice reported by @iivanov
            • Fixed markdown code in page descriptions
            • Fixed flooding logs after a tag was not found
            • Corrected discussion URL for the QADiscussion class
            • Thanks to @ahrasis for his pull request on GitHub, Bahasa Malaysia language is added!
            • Also, German, French and Frisian (a Dutch dialect) have been added to the plugin

            Run the following command on your server to update the plugin:

            composer update v17development/flarum-seo

            Let me know if you have any trouble with anything 🙂

            010101 I've tried different combinations of plugin ordering as jordanjay29 suggested, but could not reproduce any problems. Are you able to report an issue with the errorlog on GitHub?

              JasperVriends I just updated my bug report with the information you needed. Let me know if that helps or if you need something else!

              I will hold off updating until you look at that, thanks again for the help!

              Just a quick update. In less than a month, our forum went to the first and second pages (depending on the country you are in) when you search Graphic Design Forum, which is absolutely insane. We weren't even in top5 before. According to Google Analytics, we've got 61 organic visitors today.

                This error shows up occasionally, when pages are being accessed that contain mediaembed links.

                157042 FastCGI sent in stderr: "PHP message: PHP Notice: Only variables should be passed by reference in /path/vendor/v17development/flarum-seo/src/Managers/QADiscussion.php on line 86" while reading response header from upstream

                I have the Update 0.3-beta installed.

                  how to add your own string to robots.txt

                  I need to add a Host string and change the url of the site map from http to https

                    I need to add a Host string and change the url of the site map from http to https

                    Victor12 Awesome! Great to hear that! Let me know if you have any improvement-ideas! 🙂

                    Kakifrucht That is weird, are you sure you are on beta-0.3? As I look at the beta-0.3 code on GitHub I see an if statement on that line: https://github.com/v17development/flarum-seo/blob/0.3-beta/src/Managers/QADiscussion.php#L86

                    If you go to to the admin panel, and then extensions, do you see 0.3-beta as version number next to plugin name?

                    Alkir There is no need to edit the robots.txt for changing the path as the plugin takes the base url that is set in your config. If you edit that one with https it will automatically switch to https.

                    And what do you mean with host string?