after upgrading php from 5.2.x to 5.3.x we have


Type: php
Parameter 1 to theme_pgapi_payment() expected to be a reference, value given in /usr/home/public_html/includes/theme.inc on line 656.
Backtrace:
call_user_func_array(string)[theme.inc:656];
.theme(string)[common.inc:2907];
..drupal_render(string)[form.inc:611];
...drupal_render_form(string)[form.inc:147];
....drupal_get_form(a:2:{i:0;s:13:"pgapi_payment";i:1;O:8:"stdClass":13:{s:5:"txnid";s:3:"110";s:3:"uid";s:1:"1";s:5:"email";s:19:"my@email";s:5:"title";s:60:"счёт на оплату № 71 ";s:6:"amount";s:6:"801.00";s:4:"type";s:7:"firepay";s:6:"method";s:0:"";s:11:"description";s:44:"Purchase for site . Invoice 71, transaction ";s:5:"extra";a:2:{s:3:"nid";s:3:"237";s:7:"session";s:26:"j0c3016o8hjh83l2uij4ra3ok1";}s:6:"status";s:1:"1";s:8:"workflow";s:1:"1";s:7:"created";s:10:"1288804561";s:7:"changed";s:10:"1288804561";}})[?:?];
.....call_user_func_array(a:2:{i:0;s:15:"drupal_get_form";i:1;a:2:{i:0;s:13:"pgapi_payment";i:1;O:8:"stdClass":13:{s:5:"txnid";s:3:"110";s:3:"uid";s:1:"1";s:5:"email";s:19:"my@email";s:5:"title";s:60:"счёт на оплату № 71 ";s:6:"amount";s:6:"801.00";s:4:"type";s:7:"firepay";s:6:"method";s:0:"";s:11:"description";s:44:"Purchase for site . Invoice 71, transaction ";s:5:"extra";a:2:{s:3:"nid";s:3:"237";s:7:"session";s:26:"j0c3016o8hjh83l2uij4ra3ok1";}s:6:"status";s:1:"1";s:8:"workflow";s:1:"1";s:7:"created";s:10:"1288804561";s:7:"changed";s:10:"1288804561";}}})[menu.inc:348];
......menu_execute_active_handler(a:0:{})[index.php:21];
.......index.php

and second error

Type: php
Parameter 2 to pg_webmoney_pgapi_transaction() expected to be a reference, value given in /usr/home/naolimp.ru/public_html/includes/module.inc on line 462.
Backtrace:
call_user_func_array(a:2:{i:0;s:29:"pg_webmoney_pgapi_transaction";i:1;a:2:{i:2;s:1:"1";i:3;O:8:"stdClass":14:{s:5:"txnid";s:3:"110";s:3:"uid";s:1:"1";s:5:"email";s:19:"my@email";s:5:"title";s:60:"счёт на оплату № 71 ";s:6:"amount";s:6:"801.00";s:4:"type";s:7:"firepay";s:6:"method";s:11:"pg_webmoney";s:11:"description";s:44:"Purchase for site . Invoice 71, transaction ";s:5:"extra";a:2:{s:3:"nid";s:3:"237";s:7:"session";s:26:"j0c3016o8hjh83l2uij4ra3ok1";}s:6:"status";s:1:"1";s:8:"workflow";s:1:"1";s:7:"created";s:10:"1288804561";s:7:"changed";s:10:"1288804561";s:6:"is_new";b:0;}}})[module.inc:462];
.module_invoke(a:4:{i:0;s:11:"pg_webmoney";i:1;s:17:"pgapi_transaction";i:2;s:1:"1";i:3;O:8:"stdClass":14:{s:5:"txnid";s:3:"110";s:3:"uid";s:1:"1";s:5:"email";s:19:"my@email";s:5:"title";s:60:"счёт на оплату № 71 ";s:6:"amount";s:6:"801.00";s:4:"type";s:7:"firepay";s:6:"method";s:11:"pg_webmoney";s:11:"description";s:44:"Purchase for site . Invoice 71, transaction ";s:5:"extra";a:2:{s:3:"nid";s:3:"237";s:7:"session";s:26:"j0c3016o8hjh83l2uij4ra3ok1";}s:6:"status";s:1:"1";s:8:"workflow";s:1:"1";s:7:"created";s:10:"1288804561";s:7:"changed";s:10:"1288804561";s:6:"is_new";b:0;}})[pgapi.module:296];
..pgapi_transaction_save(a:1:{i:0;O:8:"stdClass":14:{s:5:"txnid";s:3:"110";s:3:"uid";s:1:"1";s:5:"email";s:19:"my@email";s:5:"title";s:60:"счёт на оплату № 71 ";s:6:"amount";s:6:"801.00";s:4:"type";s:7:"firepay";s:6:"method";s:11:"pg_webmoney";s:11:"description";s:44:"Purchase for site . Invoice 71, transaction ";s:5:"extra";a:2:{s:3:"nid";s:3:"237";s:7:"session";s:26:"j0c3016o8hjh83l2uij4ra3ok1";}s:6:"status";s:1:"1";s:8:"workflow";s:1:"1";s:7:"created";s:10:"1288804561";s:7:"changed";s:10:"1288804561";s:6:"is_new";b:0;}})[pg_webmoney.module:268];
...pg_webmoney_process_form(a:2:{i:0;a:1:{s:6:"wallet";s:3:"WMR";}i:1;O:8:"stdClass":14:{s:5:"txnid";s:3:"110";s:3:"uid";s:1:"1";s:5:"email";s:19:"my@email";s:5:"title";s:60:"счёт на оплату № 71 ";s:6:"amount";s:6:"801.00";s:4:"type";s:7:"firepay";s:6:"method";s:11:"pg_webmoney";s:11:"description";s:44:"Purchase for site . Invoice 71, transaction ";s:5:"extra";a:2:{s:3:"nid";s:3:"237";s:7:"session";s:26:"j0c3016o8hjh83l2uij4ra3ok1";}s:6:"status";s:1:"1";s:8:"workflow";s:1:"1";s:7:"created";s:10:"1288804561";s:7:"changed";s:10:"1288804561";s:6:"is_new";b:0;}})[pg_webmoney.module:214];
....pg_webmoney_pgapi_gw(a:3:{i:0;s:12:"process form";i:1;O:8:"stdClass":14:{s:5:"txnid";s:3:"110";s:3:"uid";s:1:"1";s:5:"email";s:19:"my@email";s:5:"title";s:60:"счёт на оплату № 71 ";s:6:"amount";s:6:"801.00";s:4:"type";s:7:"firepay";s:6:"method";s:11:"pg_webmoney";s:11:"description";s:44:"Purchase for site . Invoice 71, transaction ";s:5:"extra";a:2:{s:3:"nid";s:3:"237";s:7:"session";s:26:"j0c3016o8hjh83l2uij4ra3ok1";}s:6:"status";s:1:"1";s:8:"workflow";s:1:"1";s:7:"created";s:10:"1288804561";s:7:"changed";s:10:"1288804561";s:6:"is_new";b:0;}i:2;a:1:{s:6:"wallet";s:3:"WMR";}})[?:?];
.....call_user_func_array(a:2:{i:0;s:20:"pg_webmoney_pgapi_gw";i:1;a:3:{i:2;s:12:"process form";i:3;O:8:"stdClass":14:{s:5:"txnid";s:3:"110";s:3:"uid";s:1:"1";s:5:"email";s:19:"my@email";s:5:"title";s:60:"счёт на оплату № 71 ";s:6:"amount";s:6:"801.00";s:4:"type";s:7:"firepay";s:6:"method";s:11:"pg_webmoney";s:11:"description";s:44:"Purchase for site . Invoice 71, transaction ";s:5:"extra";a:2:{s:3:"nid";s:3:"237";s:7:"session";s:26:"j0c3016o8hjh83l2uij4ra3ok1";}s:6:"status";s:1:"1";s:8:"workflow";s:1:"1";s:7:"created";s:10:"1288804561";s:7:"changed";s:10:"1288804561";s:6:"is_new";b:0;}i:4;a:1:{s:6:"wallet";s:3:"WMR";}}})[module.inc:462];
......module_invoke(a:5:{i:0;s:11:"pg_webmoney";i:1;s:8:"pgapi_gw";i:2;s:12:"process form";i:3;O:8:"stdClass":14:{s:5:"txnid";s:3:"110";s:3:"uid";s:1:"1";s:5:"email";s:19:"my@email";s:5:"title";s:60:"счёт на оплату № 71 ";s:6:"amount";s:6:"801.00";s:4:"type";s:7:"firepay";s:6:"method";s:11:"pg_webmoney";s:11:"description";s:44:"Purchase for site . Invoice 71, transaction ";s:5:"extra";a:2:{s:3:"nid";s:3:"237";s:7:"session";s:26:"j0c3016o8hjh83l2uij4ra3ok1";}s:6:"status";s:1:"1";s:8:"workflow";s:1:"1";s:7:"created";s:10:"1288804561";s:7:"changed";s:10:"1288804561";s:6:"is_new";b:0;}i:4;a:1:{s:6:"wallet";s:3:"WMR";}})[pgapi.module:453];
.......pgapi_payment_submit(string)[form.inc:776];
........form_execute_handlers(string)[form.inc:416];
.........drupal_process_form(string)[form.inc:119];
..........drupal_get_form(a:2:{i:0;s:13:"pgapi_payment";i:1;O:8:"stdClass":13:{s:5:"txnid";s:3:"110";s:3:"uid";s:1:"1";s:5:"email";s:19:"my@email";s:5:"title";s:60:"счёт на оплату № 71 ";s:6:"amount";s:6:"801.00";s:4:"type";s:7:"firepay";s:6:"method";s:0:"";s:11:"description";s:44:"Purchase for site . Invoice 71, transaction ";s:5:"extra";a:2:{s:3:"nid";s:3:"237";s:7:"session";s:26:"j0c3016o8hjh83l2uij4ra3ok1";}s:6:"status";s:1:"1";s:8:"workflow";s:1:"1";s:7:"created";s:10:"1288804561";s:7:"changed";s:10:"1288804561";}})[?:?];
...........call_user_func_array(a:2:{i:0;s:15:"drupal_get_form";i:1;a:2:{i:0;s:13:"pgapi_payment";i:1;O:8:"stdClass":13:{s:5:"txnid";s:3:"110";s:3:"uid";s:1:"1";s:5:"email";s:19:"my@email";s:5:"title";s:60:"счёт на оплату № 71 ";s:6:"amount";s:6:"801.00";s:4:"type";s:7:"firepay";s:6:"method";s:0:"";s:11:"description";s:44:"Purchase for site . Invoice 71, transaction ";s:5:"extra";a:2:{s:3:"nid";s:3:"237";s:7:"session";s:26:"j0c3016o8hjh83l2uij4ra3ok1";}s:6:"status";s:1:"1";s:8:"workflow";s:1:"1";s:7:"created";s:10:"1288804561";s:7:"changed";s:10:"1288804561";}}})[menu.inc:348];
............menu_execute_active_handler(a:0:{})[index.php:21];
.............index.php

payment not processed by WM gateway, where is an error:
Причина неоплаты: продавец не дал разрешение на выполнение операции : 801.00 This number does not match the original price0 110

please, fix this issue

CommentFileSizeAuthor
#1 pgapi_php-5.3_1004766.patch2.82 KBRetired 2
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Retired 2’s picture

FileSize
2.82 KB

Just simple patch

andypost’s picture

Status: Active » Needs review

D6 should support PHP 4.4.0 or higher (5.2 recommended)
So needs testing for PHP 5.1 at least

jayjaykay’s picture

Trying to apply the patch, I get:

Patching did not go smoothly.
This command was issued: /usr/bin/patch -p1 --verbose -d '/home/site/public_html' -i '/home/site/public_html/sites/default/files/pgapi_php-5.3_1004766.patch'
This was the output from patch:

Hmm... Looks like a unified diff to me...
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/pg_manual_payment/pg_manual_payment.module b/pg_manual_payment/pg_manual_payment.module
|index 0ee8709..c31df45 100755
|--- a/pg_manual_payment/pg_manual_payment.module
|+++ b/pg_manual_payment/pg_manual_payment.module
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
Hunk #1 ignored at 289.
1 out of 1 hunk ignored
Hmm... The next patch looks like a unified diff to me...
can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/pg_roboxchange/pg_roboxchange.module b/pg_roboxchange/pg_roboxchange.module
|index 5b190e4..1931a58 100644
|--- a/pg_roboxchange/pg_roboxchange.module
|+++ b/pg_roboxchange/pg_roboxchange.module
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
Hunk #1 ignored at 278.
1 out of 1 hunk ignored
Hmm... The next patch looks like a unified diff to me...
can't find file to patch at input line 31
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/pg_webmoney/pg_webmoney.module b/pg_webmoney/pg_webmoney.module
|index cf7e7d6..c28d0fc 100644
|--- a/pg_webmoney/pg_webmoney.module
|+++ b/pg_webmoney/pg_webmoney.module
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
Hunk #1 ignored at 305.
1 out of 1 hunk ignored
Hmm... The next patch looks like a unified diff to me...
can't find file to patch at input line 44
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/pgapi.module b/pgapi.module
|index 6e937da..c6b2580 100644
|--- a/pgapi.module
|+++ b/pgapi.module
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
Hunk #1 ignored at 513.
Hunk #2 ignored at 572.
Hunk #3 ignored at 596.
Hunk #4 ignored at 619.
4 out of 4 hunks ignored
done