HELIX_ULTIMATE_GENERATOR_TEXT override no longer applied in Helix Ultimate 2.2.4 - Forum | JoomShaper
Solved Helix Framework

HELIX_ULTIMATE_GENERATOR_TEXT override no longer applied in Helix Ultimate 2.2.4

Asked by David Forés 5 months ago Last activity 2 months ago

Hi,

We have noticed that our custom generator text is no longer being applied on our site after updating Helix Ultimate.

We are currently using Helix Ultimate 2.2.4.

Previously, we had a language override for:

HELIX_ULTIMATE_GENERATOR_TEXT

and this was working correctly. The meta generator tag was using the custom text defined in the language override.

However, we recently noticed that the site is now outputting the default Joomla generator again:

<meta name="generator" content="Joomla! - Open Source Content Management">

At first, we thought it might be related to Joomla cache, language overrides, or a recent Joomla update, but after checking the Helix Ultimate files we found what seems to be the cause.

In an older version of plugins/system/helixultimate/src/Core/HelixUltimate.php, the head() method contained this code:

$generatorText = Text::_('HELIX_ULTIMATE_GENERATOR_TEXT');

if (!empty($generatorText))
{
    $this->doc->setGenerator($generatorText);
}

But in the current version we have installed, Helix Ultimate 2.2.4, that block appears to be commented out:

// $generatorText = Text::_('HELIX_ULTIMATE_GENERATOR_TEXT');

// if (!empty($generatorText))
// {
//     $this->doc->setGenerator($generatorText);
// }

Also, the use Joomla\CMS\Language\Text; import is no longer present in the current file, so it looks like the language override can no longer be used by Helix to set the generator text.

Could you please confirm whether this change was intentional?

If it was intentional, what is now the recommended way to customize or remove the meta generator tag in Helix Ultimate?

If it was not intentional, could this be considered a regression? The previous behavior was useful because it allowed us to customize the generator text safely through Joomla language overrides, without editing template or plugin files directly.

Thanks!

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

Yes, it was fixed, and also works on in 2.2.8 etc

2 more replies

Paul Frankowski Senior Staff
5 months ago · edited

Hi David,

I also checked the last version 2.2.5 and was the same, but I don't know why ;/

Tomorrow I will ask our developer to take a look , and correct in upcoming 2.2.6

David Forés Asked this

Hi Paul,

Any updates on this matter?

Thanks.

Paul Frankowski Senior Staff

Yes. Check below file (upcoming), please test it on your site, and let me know before Monday.

Log in to reply.