0 Members and 1 Guest are viewing this topic.

Hi!!
Has anybody encounter this error?
I get this error when a user tries to upgrade the membership but does not select any of the payment method and selects the "continue button".It would be appropriate to show a message asking to select the payment method ....Instead of erroring out.

Error Details:
Input Array does not match ?: insert into XXX_transactions (user_id, invoice_no, from_membership, to_membership, amount_paid, txn_date, payment_mod, payment_status ) values ('2005', '2005-1440491976', '4', '1', '50.00', '20150825', 'Started',

Any help?

Thanks
srikanth
« Last Edit: August 25, 2015, 10:47:49 PM by Pharg »

*

Pharg

  • *****
  • 3,272
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Hi srikanth555,

Considering most people have been using the paypal system, most most have been focused on that.

Never seen that error ever but just managed to recreate it wondering how many people don't select a option.

I am sure it just a small thing like sorry please select a payment option!
Will have a look later
« Last Edit: August 25, 2015, 10:48:19 PM by Pharg »
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

I have seen this before and will have to look at how I changed it. I did a coding change in the template file if I remember right so that the highest level of the memberships is pre-checked to avoid the problem.

*

Pharg

  • *****
  • 3,272
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Cool one, it can't be that hard to fix.
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

Thanks for the reply @ Pharg ang scvoyager !!!
Yes it looks simple though...
Shall wait for the fix!!! :-)
Thank you
srikanth

*

Pharg

  • *****
  • 3,272
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Hi!!
Has anybody encounter this error?
I get this error when a user tries to upgrade the membership but does not select any of the payment method and selects the "continue button".It would be appropriate to show a message asking to select the payment method ....Instead of erroring out.

Error Details:
Input Array does not match ?: insert into XXX_transactions (user_id, invoice_no, from_membership, to_membership, amount_paid, txn_date, payment_mod, payment_status ) values ('2005', '2005-1440491976', '4', '1', '50.00', '20150825', 'Started',

Any help?

Thanks
srikanth

Hi srikanth,

I am assuming your using paypal, so here is a quick fix to make payment selected.

Find the frmpaypal.tpl and change this:
Code: [Select]
{strip}

<div class="module_detail_inside">
{assign var="page_hdr02_text" value="<input type='radio' name='payment' value='"|cat:$item.module_key|cat:"' "}
{if $smarty.get.payment_method eq $item.module_key }
{assign var="page_hdr02_text" value=$page_hdr02_text|cat:" checked "}
{/if}
{assign var="page_hdr02_text" value=$page_hdr02_text|cat:" /> "|cat:$item.name}
{include file="page_hdr02.tpl"}
</div>
{/strip}

Change to this:
Code: [Select]
{strip}

<div class="module_detail_inside">
{assign var="page_hdr02_text" value="<input type='radio' name='payment' checked value='"|cat:$item.module_key|cat:"' "}
{if $smarty.get.payment_method eq $item.module_key }
{assign var="page_hdr02_text" value=$page_hdr02_text|cat:" checked "}
{/if}
{assign var="page_hdr02_text" value=$page_hdr02_text|cat:" /> "|cat:$item.name}
{include file="page_hdr02.tpl"}
</div>
{/strip}

This will leave the PayPal Checked so it can't be skipped and payment has been selected.
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

Hey Pharg
It worked... Thanks alot

Thanks
srikanth