OIOpublisher Limiting Price to 999 Entrecard Credits

  • Buffer
  • Pin It
  • Sharebar
  • Buffer
  • Pin It

I use OIOpublisher for providing advertising on Technically Easy. I have found it very easy to use, and the support I have received has been excellent. I have, however, run into a problem when I offered advertising on my blog for Entrecard credits. When I recently purchased advertising on other blogs with OIOpublisher using Entrecard credits, I realized that others were having the same issue.

I eventually corrected the problem, and explain what the problem is and how to fix it in this post.

Using OIOpublisher with Entrecard Problem

As mentioned above, I recently had an issue with only being able to receive 999 Entrecard credits (ec) when someone purchased an ad spot on Technically Easy. Regardless of the price of the ad spot, I always only received 999ec.

I reported my issue on the OIOpublisher forums, and did receive a response from the creator of OIOpublisher by the next day. Unfortunately, without being able to log into my blog and look at the code, it was difficult for him to debug. He did point me to a file that could had been the possible problem. I looked at the file, but couldn’t find anything wrong.

After writing that post on the forum, I then turned my attention to Entrecard. After a few feedback messages to Entrecard (and several weeks), someone mentioned that there wasn’t a limit on the number of credits that could be transferred using the Entrecard API. My issue ticket was then closed.

After not finding a solution, I decided to trace through the transaction and the code myself on a local copy of WordPress. I like to have WordPress installed on my local desktop, with a copy of my blog and plugins for testing and troubleshooting purposes. It took me less than an hour to find the problem.

The Issue

I scanned through the code looking for anything that provided an upper limit of 3 digits for an amount. I found nothing in the code. When I placed my order, I managed to record the number throughout the transaction and noticed it didn’t change…until after it was saved to the database. The saving to the database occurs once you submit the purchase, but before your are sent to Entrecard for payment.

I opened up my WordPress database and looked for the table that stores the payment amount. This table is called wp_oiopub_purchases. I then located the field that stored the payment amount which was easy to find. The field is called payment_amount.

When I inspected the data type of the field it was set to decimal(5,2), which means it was a number that contained 5 digits, with two of the digits appearing after the decimal point. This would mean the largest number that could be stored in the field would be 999.99, which is the amount of Entrecard credits that was always charged.

I changed the data type to decimal(7,2) to allow for a number as large as 99999.99, and all worked fine. If you have a problem with OIO only accepting up to 999 credits, check your database to ensure the payment_amount field in the wp_oiopub_purchases database is not set to decimal(5,2).

Related Posts

Do You Provide Private Advertising on Your Site?

 OIOpublisher Limiting Price to 999 Entrecard Credits

About Paul Salmon

Paul Salmon is the founder of Technically Easy. He is a an experienced PC user, and enjoys solving computer-related problems that he encounters on a regular basis.

Facebook | Twitter | Google+

You may also like:

No thumbnail image

Entrecard – An Easy Way to Get More Blog Traffic

No thumbnail image

Entrecard – the Ultimate Blog Widget

No thumbnail image

Entrecard Out, CMF Ads In

No thumbnail image

Entrecard – The Good and Bad

5 people had something to say about “OIOpublisher Limiting Price to 999 Entrecard Credits”:

Comments


  1. Thanks to much for taking time to track down this issue. So many of us are “PHPMyAdmin impaired” as in scared spitless to get in there and paw around, lest we do some kind of permanent damage.

    I’ll be going through each of my sites (not that I really intend to charge over 1K EC) but because it irritates me that some script writer presumes to know my needs.

    You “tech guys” are so good, when you actually explain things so non-techies like me can understand and fix various problems.


  2. I’m not a user of this plugin, but good job on finding this bug.

    As a developer, if this was a bug in my product, I would have done everything possible to track it down. In my view, OIO should have been able to find this, especially as it affects ALL blogs using this plugin with the EC option.

    I hope they appreciate your help and get the fix applied ASAP.
    Twitter:


  3. This is slightly off topic but still related to OIO. Just bought it and wanted you to know that I went thru the link on your blog since I learned about this from you so Happy Commissions! :)
    Twitter:


    • Thanks Lisa. I appreciate the support.

Trackbacks/PingBacks


  1. [...] voila! However, I’m giving credit where it belongs so head on over to Technically Easy for the solution to the OIOPublisher 999 EC limit. Posted in [...]

Do you have something to say? Let everyone know!

Commenting policy: All comments are moderated for spam. You must use your real name and not your website name or keywords. If a comment is deemed to be spam, then it will be deleted or edited. Links to your website within the comment body is not permitted, but you are free to use CommentLuv to add a link to your latest post. If you wish to add a link to your website, you can always contact me about submitting a guest post.






CommentLuv badge
This blog uses premium CommentLuv which allows you to put your keywords with your name if you have had 5 approved comments. Use your real name and then @ your keywords (maximum of 3)

Previous Post:

Next Post: