Title: PHP Deprecated: Required parameter $fields follows optional parameter $post_id
Last modified: August 10, 2023

---

# PHP Deprecated: Required parameter $fields follows optional parameter $post_id

 *  [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-fields-follows-optional-parameter-post_id/)
 * Getting these warnings in `debug.log`
 *     ```wp-block-code
       [09-Aug-2023 11:25:02 UTC] PHP Deprecated:  Required parameter $fields follows optional parameter $post_id in ../wp-content/plugins/job-postings/include/class-pdf-export.php on line 63
       [09-Aug-2023 11:25:02 UTC] PHP Deprecated:  Required parameter $lang follows optional parameter $post_id in ../wp-content/plugins/job-postings/include/class-pdf-export.php on line 63
       ```
   
 * Jobs for WordPress 2.6.2, WordPress 6.2.2, PHP 8.0.x

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

 *  Thread Starter [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-fields-follows-optional-parameter-post_id/#post-17143101)
 * Same problem with Jobs for WordPress 2.6.2, WordPress 6.3.2, PHP 8.1.x
 *  Thread Starter [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-fields-follows-optional-parameter-post_id/#post-17298151)
 * Same problem with Jobs for WordPress 2.7.1, WordPress 6.3.2, PHP 8.1.x
 *  Thread Starter [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-fields-follows-optional-parameter-post_id/#post-17434350)
 *     ```wp-block-code
       [18-Feb-2024 02:57:59 UTC] PHP Deprecated:  Optional parameter $post_id declared before required parameter $lang is implicitly treated as a required parameter in .../job-postings/include/class-pdf-export.php on line 63
       ```
   
 * Same problem with Jobs for WordPress 2.7.4, WordPress 6.4.3, PHP 8.1.x
 *  Thread Starter [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-fields-follows-optional-parameter-post_id/#post-17515198)
 * Same problem with Jobs for WordPress 2.7.5, WordPress 6.4.3, PHP 8.1.x

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

The topic ‘PHP Deprecated: Required parameter $fields follows optional parameter
$post_id’ is closed to new replies.

 * ![](https://ps.w.org/job-postings/assets/icon-256x256.jpg?rev=1702382)
 * [Job Postings](https://wordpress.org/plugins/job-postings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/job-postings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/job-postings/)
 * [Active Topics](https://wordpress.org/support/plugin/job-postings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/job-postings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/job-postings/reviews/)

## Tags

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

 * 4 replies
 * 1 participant
 * Last reply from: [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-required-parameter-fields-follows-optional-parameter-post_id/#post-17515198)
 * Status: not resolved