jordanjay29 There is no errors in weblogs

And in flarum logs at 21.03.2019 I have only this (I change path to ###)

[2019-03-21 14:05:42] production.ERROR: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '66-50' for key 'PRIMARY' in #####/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117
Next Doctrine\DBAL\Driver\PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '66-50' for key 'PRIMARY' in #####/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:119
Next Illuminate\Database\QueryException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '66-50' for key 'PRIMARY' (SQL: insert into `discussion_user` (`discussion_id`, `user_id`, `last_read_post_number`, `last_read_at`) values (50, 66, 3, 2019-03-21 14:05:42)) in #####/public_html/vendor/illuminate/database/Connection.php:664

    I can't explain it, but if i add one more space between 75-84 letter, its work!!! Maybe a problem in the Cyrillic?

      solo1988 Thanks for checking. In that case, can you check your the discussion in your database? discussions, does that particular discussion has a first post set up? , OK nevermind...

      I just checked that page again, it actually does have the <script type="application/ld+json"></script> filled in correctly now... And it does have a description now 🤔 So that is not normal behaviour. Did you change something maybe?

      JasperVriends sorry for my bad English) If I see - discussion have empty tags description, I go to the database, take the text of first post, paste it to the notepad++, and after that I find one space between 75 and 84 symbols and add one more space. After that description generate. If my English very bad, i can do video )

        solo1988 No problem, you're doing fine with your English 🙂

        Thank you for the rest of your explanation, I think that's an OK temporarily workaround. If you find another post again, you might add an issue to the GitHub repository with the content of the post. Then I can test it also 🙂

          5 days later
          • [deleted]

          • Edited

          JasperVriends hi, home titles are generally used like this:
          Site - Site Slogan
          when I use like this, home titles completely adding to of discussion title.
          like this: discussion title-site-site-slogan

          How can I use without site slogan:
          like this: discussion title-site

          • [deleted]

          • Edited

          JasperVriends New problem, If i add any image with embed code and manually post that discussion on twitter, embed image not appear on tweet, just shows site favicon.

          Problem is in source code:

          <meta name="twitter:image" content="https://site.com/assets/favicon.png">

          Why does ignore embedded image within the topic? This code needs to be updated dynamically.
          Please fix it for twitter and facebook.

          Temporary fix for facebook: Remove codes in PageListener.php
          under vendor/v17development/flarum-seo/src/listeners

           if($applicationFavicon !== null)
                  {
                      $this->setMetaPropertyTag('og:image', $this->applicationUrl . '/assets/' . $applicationFavicon);
                      $this->setMetaTag('twitter:image', $this->applicationUrl . '/assets/' . $applicationFavicon);
                      $this->setSchemaJson('image', $this->applicationUrl . '/assets/' . $applicationFavicon);
                  }[/code)
          6 days later

          solo1988 Hi Solo, thank you very much fo the GitHub issue and your descriptions of the problems!

          I'm at the moment very busy, I still have some unfinished things to do what have priority over this project (customer related stuff and school)... I hope I'll have more time very soon so I can fix these problems and implement suggestions!

          If anyone else has some time to contribute to the project, I would ❤️ that! It isn't open-source for nothing! 🙂

          Fixing issue with Cyrillic descriptions not showing in meta tags.

          This is not recommended to directly edit your vendor files. But for quick fix like in my situation this is great solution.
          @JasperVriends please consider to reviewing this issue. For lack of time i can't create PR or etc fixing this bug.

          This method also works with any other multibyte language.
          Notice: php mb_string extension must be turned on

          Open /vendor/v17development/flarum-seo/src/Listeners/PageListener.php

          Find setDescription() function

          Change
          $description = trim(preg_replace('/\s+/', ' ', substr($description, 0, 157))) . (strlen($description) > 157 ? '...' : '');

          To
          $description = trim(preg_replace('/\s+/', ' ', mb_substr($description, 0, 157))) . (mb_strlen($description) > 157 ? '...' : '');

          I don't even noticed that descriptions doesn't showing on my website. So Google and Yandex bots index entire site without descriptions.

            ReaZzon Tnx bro!!! It works perfect!!! I have my site on russian language and Yandex bot doesn't want to set the description for main page in Yandex Search, it always shows "somethings went wrong (in russian)" but another pages is ok. Can you help me?)))

              ReaZzon I sent main page on re-indexing.

              In webmaster description allways is correct

              But in Yandex-Search i have this view

              ReaZzon Thank you for that! I will update the plugin tonight with your suggested fix. If I'm not mistaken, mbstring should be already enabled to run Flarum? So technically it should be enabled on all forums that are running Flarum already (correct me when I'm mistaken)?

              Screenshot of the 'Server requirements' of Flarum suggesting that the function 'mbstring' must be enabled:

                JasperVriends If I'm not mistaken, mbstring should be already enabled to run Flarum?
                So technically it should be enabled on all forums that are running Flarum already (correct me when I'm mistaken)?

                You are right, it should be.

                5 days later
                7 days later

                solo1988 robots.txt today is nothing to search robots, if you really want to delete this links from search you need to edit canonical link.