Title: I fixed PHP warning on custom-post-donations.php
Last modified: August 20, 2016

---

# I fixed PHP warning on custom-post-donations.php

 *  Resolved [Nick Powers](https://wordpress.org/support/users/nickpowers/)
 * (@nickpowers)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/i-fixed-php-warning-on-custom-post-donationsphp/)
 * On line 188 of custom-post-donations.php
 * You have:
    `return createCPDonationForm($atts[id]);`
 * when it should be:
    `return createCPDonationForm($atts['id']);`
 * Doing so removes the following warning:
    Notice: Use of undefined constant id–
   assumed ‘id’ in /var/www/dev.nickpowers.info/html/wp-content/plugins/custom-post-
   donations/custom-post-donations.php on line 188
 * You might think about making this change in the next update.
 * [http://wordpress.org/extend/plugins/custom-post-donations/](http://wordpress.org/extend/plugins/custom-post-donations/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [hahncgdev](https://wordpress.org/support/users/hahncgdev/)
 * (@hahncgdev)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/i-fixed-php-warning-on-custom-post-donationsphp/#post-2943620)
 * This update has been made for version 1.9.
 * Thanks or the heads up!

Viewing 1 replies (of 1 total)

The topic ‘I fixed PHP warning on custom-post-donations.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-post-donations.svg)
 * [WP Donations](https://wordpress.org/plugins/custom-post-donations/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-donations/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-donations/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-donations/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-donations/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [hahncgdev](https://wordpress.org/support/users/hahncgdev/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/i-fixed-php-warning-on-custom-post-donationsphp/#post-2943620)
 * Status: resolved