Title: PHP Deprecated Message on PHP 8.x
Last modified: November 9, 2022

---

# PHP Deprecated Message on PHP 8.x

 *  Resolved [Goran Peric](https://wordpress.org/support/users/androjaner/)
 * (@androjaner)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-deprecated-message-on-php-8-x/)
 * 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 3 years, 7 months ago by [Goran Peric](https://wordpress.org/support/users/androjaner/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Karina](https://wordpress.org/support/users/karinapremio/)
 * (@karinapremio)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-deprecated-message-on-php-8-x/#post-16186833)
 * Hi [@androjaner](https://wordpress.org/support/users/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 [hi@support.premio.io](https://wordpress.org/support/topic/php-deprecated-message-on-php-8-x/hi@support.premio.io?output_format=md)
   for any further questions or concerns.
 *  Thread Starter [Goran Peric](https://wordpress.org/support/users/androjaner/)
 * (@androjaner)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-deprecated-message-on-php-8-x/#post-16203493)
 * Hi [@karinapremio](https://wordpress.org/support/users/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 3 years, 6 months ago by [Goran Peric](https://wordpress.org/support/users/androjaner/).
 *  Plugin Support [Karina](https://wordpress.org/support/users/karinapremio/)
 * (@karinapremio)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-deprecated-message-on-php-8-x/#post-16203872)
 * Hey [@androjaner](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/folders/assets/icon-256x256.gif?rev=2893439)
 * [Folders - Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager](https://wordpress.org/plugins/folders/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/folders/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/folders/)
 * [Active Topics](https://wordpress.org/support/plugin/folders/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/folders/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/folders/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 2 participants
 * Last reply from: [Karina](https://wordpress.org/support/users/karinapremio/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/php-deprecated-message-on-php-8-x/#post-16203872)
 * Status: resolved