Is this still working?
Flarum SEO
masihdindar yes. Extensions not working and not maintained will be marked by staff once reported issues arise.
JasperVriends Currently it's not possible to select a custom static-image or description for a topic. However, I'm currently working on a 2.0 update that will include custom SEO-image, SEO-description and SEO-tags
Excited about this and my forum need this badly TBH. If anyone's aware of the progress lemme know please.
I'd like to ask a beginner's question.
My Flarum was installed a month ago and works very well
So I want to take a closer look at SEO. If I install this extension, referencing will be much improved?
- Edited
It breaks flarum:
Exception
V17Development\FlarumSeo\Extend::setTitle(..): Container was not yet initialized.
/flarum/vendor/v17development/flarum-seo/src/Extend.php
self::$container->setSchemaJson($key, $value);
}
/**
* Finish and add all parameters
*
* Do not call this class
*/
public static function finish($caller) {
if(self::$container === null) self::throwError("finish");
if(get_class($caller) !== "V17Development\FlarumSeo\Listeners\BeforePageRenders") throw new \Exception("V17Development\FlarumSeo\Extend::finish(..): Do not call this class");
self::$container->finish();
}
/**
* Container was not yet initialized
*/
private static function throwError($caller) {
throw new \Exception("V17Development\FlarumSeo\Extend::" . $caller . "(..): Container was not yet initialized.");
Benito Benito while we wait for the extension author to take a look, you might be able to provide more information:
- When/where does the error appear? Upon which action?
- Did the error start happening from the moment you installed the extension or did it work previously?
- Is there a more complete backtrace or additional error messages in the Flarum log file?
- Can you share your
php flarum info
output?
You can also try disabling other extensions to see whether the issue goes away.
- Edited
Hi,
I am attaching the settings.
This problem happens when I try to install the seo blog extension only.
I disabled all the extensions and tried, no errors, but as soon as I reenable the blog extension, the error shows up.
It is some kind of conflict between the blog extension and the seo extension.
Flarum core: 1.8.1
PHP version: 8.1.22
MySQL version: 10.6.14-MariaDB
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, readline, Reflection, SPL, session, standard, bcmath, bz2, calendar, ctype, curl, dom, enchant, mbstring, fileinfo, ftp, gd, gettext, iconv, imap, intl, exif, mysqlnd, PDO, pgsql, Phar, posix, pspell, shmop, SimpleXML, soap, sockets, sodium, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlwriter, xsl, mcrypt, mysqli, pdo_mysql, pdo_pgsql, pdo_sqlite, xmlreader, xmlrpc, zip, igbinary, imagick, mailparse, msgpack, memcached, redis, ionCube Loader, Zend OPcache
+----------------------+---------+--------+
| Flarum Extensions | | |
+----------------------+---------+--------+
| ID | Version | Commit |
+----------------------+---------+--------+
| flarum-flags | v1.8.0 | |
| flarum-sticky | v1.8.0 | |
| flarum-tags | v1.8.0 | |
| flarum-lock | v1.8.0 | |
| flarum-approval | v1.8.0 | |
| v17development-blog | v0.7.2 | |
| ianm-html-head | 1.1.0 | |
| fof-upload | 1.2.3 | |
| fof-sitemap | 1.0.3 | |
| fof-share-social | 1.1.2 | |
| fof-pages | 1.0.7 | |
| fof-formatting | 1.0.3 | |
| fof-custom-footer | 1.1.0 | |
| fof-cookie-consent | 1.1.1 | |
| fof-analytics | 1.1.0 | |
| flarum-suspend | v1.8.0 | |
| flarum-subscriptions | v1.8.0 | |
| flarum-statistics | v1.8.0 | |
| flarum-pusher | v1.8.0 | |
| flarum-nicknames | v1.8.0 | |
| flarum-mentions | v1.8.2 | |
| flarum-markdown | v1.8.0 | |
| flarum-likes | v1.8.0 | |
| flarum-lang-english | v1.8.0 | |
| flarum-emoji | v1.8.0 | |
| flarum-bbcode | v1.8.0 | |
+----------------------+---------+--------+
Base URL: https://xxxxxxxxxxxxxx.com
Installation path: /home/xxxxxxxxxx/flarum
Queue driver: sync
Session driver: file
Scheduler status: Never run
Mail driver: smtp
Debug mode: off
Benito Hello, since the error occurs because you are trying to access a container before it is fully initialised. Try the following:
- Disable both extensions.
- Use the "Purge" button on these two extensions.
- Activate Flarum SEO first.
- Then purge Flarum cache: php flarum cache:clear.
- Then activate Flarum Blog.
If the problem occurs during installation:
- Deactivate Flarum SEO.
- Use the purge button in Flarum SEO.
- Uninstall Flarum SEO.
- Purge Flarum cache: php flarum cache:clear.
- Install Flarum Blog.
- Activate Flarum Blog.
- Install Flarum SEO.
- Activate Flarum SEO.
If none of this works, please try sharing your logfile details when you try to install.
Hi,
If I remove the Flarum blog I will lose all my current data right?
Thank you,
Ok I got it.
So I removed the blog, deleted the cache via command line and the flush button.
Installed the SEO plugin first, then installed the blog, emptied the cache again.
The only issue is that I had lost all my images urls, spent ages trying to reconnect everything.
Thanks again for your help.
Is there an easy way to remove "Blog" from all the page titles without editing the main module code?
Does this command works for everybody? I have return with note: composer 2.3.0 dropped support for PHP < 7.2.5 and you are running 5.6.40, please upgrade PHP or use composer 2.2. LTS via "composer self-udpate --2.2". Aborting.
- Edited
kejunchen this has nothing to do with this extension. You must change your "command line" PHP version to something more recent. Ideally the exact same PHP version as you use for the webserver. If your host does not let you change the command line PHP versions, there are ways to call Composer/Flarum with a specific PHP version. Please start a new support discussion if you need help with this.
- Edited
PHP 8.2
[24-Nov-2023 15:32:06 UTC] PHP Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /vendor/v17development/flarum-seo/src/Managers/Tag.php on line 48
Fantastic extension! Thank you so much for this!
Flarum SEO is died?
Any updates over 2 years, any issue not commenting, any new pull request not approved or declined
Denys I find it works perfectly. What updates would you expect?