0
Welcome Guest! Login
0 items Join Now

htmlspecialchars(): Passing null to parameter #1 ($string)

    • staffiery's Avatar
    • staffiery
    • Sr. Rocketeer
    • Posts: 106
    • Thanks: 2

    htmlspecialchars(): Passing null to parameter #1 ($string)

    Posted 9 months 2 weeks ago
    • Joomla 4.3.3
      Php 8.2.8
      Fluent 1.5.1
      Gantry 5.5.16

      I'm getting the following in multiple template positions:

      Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /#################/templates/rt_fluent/html/layouts/chromes/gantry.php on line 31

      I saw a similar post, but that referenced Gantry 5.5.15 oly supporting php 8.0.x, but since 8.0.x is at end of life I was wondering if Gantry 5.5.16 supported php 8.2.x?

      Can provide Super User access if needed.
    • Karol Orzeł's Avatar
    • Karol Orzeł
    • Elite Rocketeer
    • Posts: 4787
    • Thanks: 289
    • One Crazy Dev

    Re: htmlspecialchars(): Passing null to parameter #1 ($string)

    Posted 9 months 2 weeks ago
    • Hello,

      Gantry 5.5.16 should work fine with PHP 8.2.x, but sometimes issues can still occur. The error you're seeing seems to be due to a specific line of code trying to use the function `htmlspecialchars()` on a null value, which has been deprecated in PHP 8.2.x.

      As a workaround, you could try setting Joomla's error reporting to "none" or "simple" in the Global Configuration settings. This won't fix the root cause of the error, but it should suppress the error messages from being displayed on your site while we work on a solution.

      We will investigate this issue and work on a solution. However, until a fix is ready, it's best to suppress these deprecation notices as they don't necessarily indicate a critical problem and your site should still function correctly.

      Best regards,
      Karol Orzeł, RocketTheme Support
    • The following users have thanked you: Jeff Lafranca

    • karolorzel.com
  • Re: htmlspecialchars(): Passing null to parameter #1 ($string)

    Posted 8 months 2 weeks ago
    • I changed the PHP version to 8.0 and am no longer receiving the errors.
  • Re: htmlspecialchars(): Passing null to parameter #1 ($string)

    Posted 7 months 2 weeks ago
    • I have the same error message on the template Denali, just to let you guys know. I will turn of the error reporting as suggested.
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21595
    • Thanks: 3098
    • messin' with stuff

    Re: htmlspecialchars(): Passing null to parameter #1 ($string)

    Posted 7 months 1 week ago

Time to create page: 0.046 seconds