You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get PHP notice: Undefined variable: JoomlaVersion in /plugins/system/helixultimate/overrides/layouts/joomla/content/intro_image.php on line 90
And with local server I get Forbidden You don't have permission to access /blog/article-alias on this server.
If I add this code to file intro_image.php, all is ok: // Define the variable $JoomlaVersion $version = new Version(); $JoomlaVersion = $version->getShortVersion();
System information (as much as possible)
J 4.4.0
HU 2.0.17
PHP 7.4.2
Additional comments
No problem with casiopea.
The text was updated successfully, but these errors were encountered:
I see that in your original code, $JoomlaVersion is defined within a conditional block (line 57), specifically inside an if statement. If the if condition is not met, the variable may not be defined, which can lead to the "Undefined variable: JoomlaVersion" notice if you try to use it later.
Steps to reproduce the issue
In HU 2.0.17 open article.
Expected result
Article opens with no errors.
Actual result
I get PHP notice: Undefined variable: JoomlaVersion in /plugins/system/helixultimate/overrides/layouts/joomla/content/intro_image.php on line 90
And with local server I get Forbidden You don't have permission to access /blog/article-alias on this server.
If I add this code to file intro_image.php, all is ok:
// Define the variable $JoomlaVersion $version = new Version(); $JoomlaVersion = $version->getShortVersion();
System information (as much as possible)
J 4.4.0
HU 2.0.17
PHP 7.4.2
Additional comments
No problem with casiopea.
The text was updated successfully, but these errors were encountered: