Title: PHP Deprecated: Required parameter $route follows optional parameter $code in \
Last modified: October 11, 2023

---

# PHP Deprecated: Required parameter $route follows optional parameter $code in \

 *  [Tayyab Chaudhary](https://wordpress.org/support/users/mtachaudhary770/)
 * (@mtachaudhary770)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-route-follows-optional-parameter-code-in/)
 * Hi Support,
 * I am getting this error in the `debug.log` file:
   `PHP Deprecated: Required parameter
   $route follows optional parameter $code in \wp-content\plugins\license-manager-
   for-woocommerce\includes\abstracts\RestController.php on line 25`
 * **PHP Version**: 8.0.28
   **License Manager Version**: 2.2.8**WordPress Version**:
   6.2.2**WooCommerce Version**: 7.7.1Please assist me to resolve this issue.Thanks
   and regards:Tayyab Chaudhary
    -  This topic was modified 2 years, 11 months ago by [Tayyab Chaudhary](https://wordpress.org/support/users/mtachaudhary770/).
      Reason: Updated WordPress and WooCommerce versions

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

 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-route-follows-optional-parameter-code-in/#post-16851262)
 * Hi [@mtachaudhary770](https://wordpress.org/support/users/mtachaudhary770/)
 * I hope you are doing well.
 * Let me discuss it with my team and get back to you soon.
 * Thanks and regards,
   Support Team – WPExperts
 *  Thread Starter [Tayyab Chaudhary](https://wordpress.org/support/users/mtachaudhary770/)
 * (@mtachaudhary770)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-route-follows-optional-parameter-code-in/#post-16851467)
 * Sure, waiting for you response with solution.
 * Thanks
 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-route-follows-optional-parameter-code-in/#post-16864828)
 * Hi [@mtachaudhary770](https://wordpress.org/support/users/mtachaudhary770/)
 * Change line 25 in this file wp-content/plugins/license-manager-for-woocommerce/
   includes/abstracts/RestController.php
 * protected function response($success, $data, $code, $route)
 * Then test it and let me know.
 * Thanks and regards,
   Support Team – WPExperts
 *  Thread Starter [Tayyab Chaudhary](https://wordpress.org/support/users/mtachaudhary770/)
 * (@mtachaudhary770)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-route-follows-optional-parameter-code-in/#post-16864961)
 * Yes, the issue has been resolved by changing the line# 25. Can you please add
   this fix in next release?
 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-route-follows-optional-parameter-code-in/#post-16865229)
 * [@mtachaudhary770](https://wordpress.org/support/users/mtachaudhary770/)
 * Yes, we will add this in upcoming release.
 * Thanks
 *  Thread Starter [Tayyab Chaudhary](https://wordpress.org/support/users/mtachaudhary770/)
 * (@mtachaudhary770)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-route-follows-optional-parameter-code-in/#post-16865234)
 * Thanks

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

The topic ‘PHP Deprecated: Required parameter $route follows optional parameter 
$code in \’ is closed to new replies.

 * ![](https://ps.w.org/license-manager-for-woocommerce/assets/icon-256x256.gif?
   rev=2824216)
 * [License Manager for WooCommerce](https://wordpress.org/plugins/license-manager-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/license-manager-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/license-manager-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/license-manager-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/license-manager-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/license-manager-for-woocommerce/reviews/)

## Tags

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

 * 6 replies
 * 3 participants
 * Last reply from: [Tayyab Chaudhary](https://wordpress.org/support/users/mtachaudhary770/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-route-follows-optional-parameter-code-in/#post-16865234)
 * Status: not resolved