Okay
  Public Ticket #4161570
PHP 8.2 Compatibility
Open

Comments

  •  3
    siterightdes started the conversation

    Good day,

    Our web host is forcing updates to PHP 8.2 in August. Compatibility checker flagged that your theme files are using get_magic_quotes_gpc() and mysql_errno(). This is throwing a warning that our sites using Salient are not compatible. Can you please advise on PHP 8.2 compatibility?
    Thank you.

  •  9,365
    Tahir replied

    Hey siterightdes ,

    Thanks for reaching out! .

    Could you provide more details to the files that are giving these warnings ?. Also are you running the Latest Salient Theme Version ?. 

    Please update to the Latest Salient Theme Version.

    The current version of the theme is v17.3.0 (6/13/25) and the current version of the page builder is v8.4.1 . Salient versions older than v11 won't be compatible with WordPress 5.5.

    Here's the documentation on the available methods for updating Salient: http://themenectar.com/docs/salient/updating-salient/#methods

    To get a list of Bug Fixes and new Feature addons in the Latest Theme updates view change log here http://themenectar.com/changelogs/salient.html .

    Best.

     


     Salient Support Team 


  •  3
    siterightdes replied

    Hello Tahir,

    Thank you for your reply.
    The theme and theme plugins are running on their latest versions - 7.3.0 and the builder on 8.4.1.

    When running the compatibility checker through my host, I have managed to extract these details from the supplied CSV file:

    /wp-content/plugins/js_composer_salient/include/classes/shortcodes/vc-accordion-tab.php",280,29,error,"Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove ambiguity.",PHPCompatibility.Variables.NewUniformVariableSyntax.Found,5,0

    /wp-content/plugins/js_composer_salient/include/classes/shortcodes/vc-accordion-tab.php",280,55,error,"Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove ambiguity.",PHPCompatibility.Variables.NewUniformVariableSyntax.Found,5,0

    /wp-content/themes/salient/nectar/redux-framework/ReduxCore/framework.php",2894,26,error,"Function get_magic_quotes_gpc() is deprecated since PHP 7.4 and removed since PHP 8.0",PHPCompatibility.FunctionUse.RemovedFunctions.get_magic_quotes_gpcDeprecatedRemoved,5,0


    1. Two errors flagged in the WPBakery add-on (the file vc-accordion-tab.php) regarding the indirect variable access syntax (which, starting with PHP 7, must use curly braces for clarity).
    2. One error from the Salient theme itself (in the ReduxCore/framework.php file) where get_magic_quotes_gpc() is used—a function deprecated since PHP 7.4 and removed in PHP 8.0.

    Component,Current Version,Issue Under PHP 8.2,Description,Recommended Action
    Salient Theme,Latest," Deprecated Syntax Likely","Theme includes legacy PHP functions or syntax (e.g. `create_function`, use of deprecated constructors) which may throw warnings or fatal errors under PHP 8.2","Request confirmation of PHP 8.2 compatibility or update ETA from developer"

    WPBakery Page Builder (Bundled),Latest," Compatibility Risk","Bundled version may not be the latest official release. Older versions of WPBakery use outdated coding standards (e.g. non-static methods in static context, deprecated function calls) that are not PHP 8.2 safe","Verify bundled version matches current standalone release and request PHP 8.2 compatibility confirmation"

    Custom Shortcodes (Salient Core),Latest,"Possible Issues","Custom shortcode handlers and theme functions may trigger deprecation warnings or errors due to changes in argument handling or dynamic property access in PHP 8.2","Request specific list of known fixed deprecations or a staging test patch"

    Attached files:  Screenshot 2025-07-18 at 14.45.24.png
      Screenshot 2025-07-18 at 14.45.40.png

  •  9,365
    Tahir replied

    Thanks for provided the Warnings, have noted this for upcoming updates. 

     


     Salient Support Team 


  •  1,123
    ThemeNectar replied

    Hey siterightdes,

    The code referenced in that scan does not actually run in Salient and therefore won't trigger a PHP error. We use PHP 8.2 and recommend using it as well. I've made a note to remove the referenced code to avoid confusion in the future.

    Kind regards