Our Joomla! extensions are all OpenSource and free of charge. Support is also free of charge. Nevertheless, we do have costs that need to be paid. This is done out of our own pocket. We have had a donation button on our website for some time now, which is actually used to make donations from time to time. The donation progress bar is intended to show how much support we have received and how much is still missing to cover the basic costs, such as hosting and services. The annual costs currently amount to 420€.

  • 2024: €235.49 out of the €356 target was reached

Thank you for your support!

Donate PayPal GitHub Sponsors

You want to support and there is no suitable platform? Write to us in the forum.

0€

Update Error: Sitemap 5.2.1

1 month 5 days ago - 1 month 5 days ago #602 by LUCiD
Replied by LUCiD on topic Update Error: Sitemap 5.2.1
I have now downloaded the current installation packages for J4 and J5 and looked at the 'HtmlDocument.php' file in the 'libraries/src/Document' directory.
In this file for J5[1] the method 'getToolbar()' exists
    /**
     * Returns a toolbar object or null
     *
     * @param   string   $toolbar
     * @param   boolean  $create
     *
     * @return  ?Toolbar
     *
     * @since   5.0.0
     */
    public function getToolbar(string $toolbar = 'toolbar', bool $create = true): ?Toolbar
    {
        if (empty($this->toolbars[$toolbar])) {
            if (!$create) {
                return null;
            }

            $this->toolbars[$toolbar] = CmsFactory::getContainer()->get(ToolbarFactoryInterface::class)->createToolbar($toolbar);
        }

        return $this->toolbars[$toolbar];
    }

It does NOT exist in the file for J4[2]! It also says (in the file for J5 see above) since 5.0.0.

My idea for this.
You have to check which Joomla version is present, perhaps already during the installation, in order to then install different files, or you do this in one and the same 'HtmlView.php', in the 'addToolbar()' method, whereby the use statement 'use Joomla\CMS\Toolbar\Toolbar;' would be redundant for J5.

[1] api.joomla.org/cms-5/classes/Joomla-CMS-...nt-HtmlDocument.html
[2] api.joomla.org/cms-4/classes/Joomla-CMS-...nt-HtmlDocument.html
The following user(s) said Thank You: Anthony G
The topic has been locked.
1 month 4 days ago #603 by Sven Schultschik
Replied by Sven Schultschik on topic Update Error: Sitemap 5.2.1
Sadly needed to add a J4 J5 switch to be J6 compatible as well.

Hope there won't be more, so I can support J4-6 with one extension version.

Thx for report.

If you enjoy our extensions and found our assistance helpful, please consider supporting the project as outlined at the top of the page. Your support would be greatly appreciated.
The topic has been locked.
1 month 4 days ago #604 by Sven Schultschik
Replied by Sven Schultschik on topic Update Error: Sitemap 5.2.1
Update 5.2.2 available

If you enjoy our extensions and found our assistance helpful, please consider supporting the project as outlined at the top of the page. Your support would be greatly appreciated.
The topic has been locked.
Time to create page: 0.173 seconds
Powered by Kunena Forum