• Resolved Goran Peric

    (@androjaner)


    Hi everyone,

    I just would like to show you a PHP Deprecated Message. That’s all.

    Thanks ??

    PHP Deprecated: Required parameter $post_type follows optional parameter $cat in /wp-content/plugins/folders-pro/includes/dynamic-folders.php on line 208

    • This topic was modified 2 years, 4 months ago by Goran Peric.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Karina

    (@karinapremio)

    Hi @androjaner , thanks for your message. Can I ask where exactly you see this? I just checked but I wasn’t able to reproduce it on my end. Please feel free to contact us at [email protected] for any further questions or concerns.

    Thread Starter Goran Peric

    (@androjaner)

    Hi @karinapremio,

    first of all, you should know that this error occurs only if you use PHP version 8.0 or higher. Before that, the error is not issued.

    You can find it, as already written, in the file “folders-pro/includes/dynamic-folders.php” in line “208”.

    I took a closer look at the source code of the plugin and my recommendation would be to simply make the $cat variable mandatory. Attached is an example:

    Original
    public function get_category_list($cat=0, $post_type)

    My suggestion
    public function get_category_list($cat, $post_type)

    This should work, since the function is never called with no passing variables.

    Many greetings.

    • This reply was modified 2 years, 3 months ago by Goran Peric.
    Plugin Support Karina

    (@karinapremio)

    Hey @androjaner , thank you for the helpful details! Our developer was able to see the issue and he will be pushing a bug fix for this in our next release.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Deprecated Message on PHP 8.x’ is closed to new replies.