Title: Sequential ordering donations sometimes fail
Last modified: February 24, 2022

---

# Sequential ordering donations sometimes fail

 *  Resolved [aryup](https://wordpress.org/support/users/aryup/)
 * (@aryup)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/sequential-ordering-donations-sometimes-fail/)
 * Hi,
 * We use GiveWP with the sequential ordering, We don’t know why but sometimes the
   order of our donations is no longer respected.
    Here are our parameters (that
   I just refresh because of the bug) : Next donation number : 2022047 Number prefix:
   2022-LPM- Number suffix (not use) Number Padding : 5 Donation ID Preview : 2022-
   LPM-2022047
 * Our last donations where numbered : **23324**, 2022-LPM-2022046, 2022-LPM-2022045,
   2022-LPM-2022044.
 * I don’t know why the last donation (23324) did not consider sequential ordering.
   It already happend 3 times and each time I need to set again all settings in 
   the sequential ordering tab.
 * Any ideas ? Maybe the sessions lifetime ? It is set, for us, to 1 week.
 * Thanks by advance.
    ARYUP J.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Rick Alday](https://wordpress.org/support/users/mrdaro/)
 * (@mrdaro)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/sequential-ordering-donations-sometimes-fail/#post-15404885)
 * Glad you reached out here.
 * I have not seen that before. I have only come across 2 cases where the sequential
   order would jump up and we were never able to pinpoint the issue as it happened
   intermittently.
 * The sequential number is programmed to go up 1 from the last donation number 
   so it’s exceedingly odd for it to jump like that and lose the prefix.
 * When Sequential Ordering is disabled, GiveWP uses the next post ID available 
   in the **wp_post** table to create the donation ID. That table is populated by
   pretty much all post types in WordPress (posts, pages, attachments, GiveWP payments,
   GiveWP forms, etc).
 * My guess is that somehow, for some reason, Sequential Ordering became disabled,
   this would explain not only why the donation lost the prefix but also the huge
   difference in the donation number.
 * That said, what you’re experiencing is not normal behavior. Either your database
   is corrupt or some third-party code is messing with the post ID numbers.
 * There are a couple of database commands that can be run to check for database
   corruption checks and repairs.
 * The WP-Optimize plugin has a simple interface for checking corruption and runs
   some basic repairs too. I highly suggest you only perform database tweaks on 
   a staging site first.
 * If the issue is due to a plugin/theme conflict that might be easier to identify
   simply by deactivating all plugins and switching to a default theme, then running
   several test donations until the issue pops up again.
 * If you can provide a way to reliably replicate this I’ll be happy to test further
   but without being able to replicate this reliably I’m relatively stuck.

Viewing 1 replies (of 1 total)

The topic ‘Sequential ordering donations sometimes fail’ is closed to new replies.

 * ![](https://ps.w.org/give/assets/icon-256x256.jpg?rev=2873287)
 * [GiveWP - Donation Plugin and Fundraising Platform](https://wordpress.org/plugins/give/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/give/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/give/)
 * [Active Topics](https://wordpress.org/support/plugin/give/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/give/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/give/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Rick Alday](https://wordpress.org/support/users/mrdaro/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/sequential-ordering-donations-sometimes-fail/#post-15404885)
 * Status: resolved