Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.

 
Reply
   X-Cart forums > News and Announcements
 
Thread Tools
  #21  
Old 03-16-2014, 10:30 PM
 
josebueso josebueso is offline
 

eXpert
  
Join Date: Apr 2006
Location: USA
Posts: 371
 

Default Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.

Quote:
Originally Posted by aim
This link cannot be openned in a browser directly
The next-prev products feature works correctly on your site.

This is a code from the get_block.php
Code:
if ( !func_is_ajax_request() || !isset($block) || empty($block) || !is_string($block) || !preg_match('/^[\w\d_]+$/Ss', $block) ) { func_ajax_set_error('Bad request'); exit; }

Hello Ildar

Thanks for your prompt response.
Your are telling me not to worry about it? I compared the code you posted above with the get_block.php in my site and is the same.

Thanks for your help.
Jose
__________________
Saul
x-cart 4.7.9 Gold Plus

www.uncionmusic.com
Reply With Quote
  #22  
Old 03-17-2014, 05:17 AM
 
mixon mixon is offline
Michael Bugrov
 

X-Cart team
  
Join Date: Jul 2005
Posts: 91
 

Default Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.

Quote:
Originally Posted by Stizerg
Thanks Steve, looking at logs I see that PayPal returns correct address
[region] => New South Wales
[country] => AU
but in x-cart the State is set to Australian Capital Territory (first in the list).

btw, test mode doesn't work for me, Paypal login page doesn't exist at sandbox.paypal.com ...

Please use the following patch and make the necessary changes to 'modules/PayPal_Login/pp_return.php' file to fix this issue:

Code:
Index: modules/PayPal_Login/pp_return.php --- a/modules/PayPal_Login/pp_return.php +++ b/modules/PayPal_Login/pp_return.php @@ -106,6 +106,18 @@ $_pplogin_address = array( 'phone' => $user->getPhoneNumber(), ); +$_pplogin_state_error = 0; + +x_load('paypal'); + +// detect state from state info returned by PayPal +$_pplogin_address['state'] = func_paypal_detect_state( + $_pplogin_address['country'], + $_pplogin_address['state'], + $_pplogin_address['zipcode'], + $_pplogin_state_error +); + $_pplogin_check_result = func_pplogin_check_user($_pplogin_profile['payerid'], $_pplogin_profile['openid_identity']);
Attached Files
File Type: diff PATCH.diff (632 Bytes, 3 views)
__________________
--
Sincerely yours,
Michael Bugrov,
X-Cart Software Architector

founder of: X-Monitoring service
founder of: Infinite scroll

Facebook
Linked-in

Last edited by mixon : 04-14-2014 at 11:20 PM.
Reply With Quote

The following 2 users thank mixon for this useful post:
aim (03-17-2014), Stizerg (03-18-2014)
  #23  
Old 03-18-2014, 10:23 PM
 
Stizerg Stizerg is offline
 

Senior Member
  
Join Date: Apr 2008
Location: Sydney, Australia
Posts: 195
 

Default Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.

Quote:
Originally Posted by mixon
Please use the following patch and make the necessary changes to 'modules/PayPal_Login/pp_return.php' file to fix this issue:

Code:
diff --git a/modules/PayPal_Login/pp_return.php b/modules/PayPal_Login/pp_return.php index 6c9bee4..6595ab5 100644 --- a/modules/PayPal_Login/pp_return.php +++ b/modules/PayPal_Login/pp_return.php @@ -106,6 +106,15 @@ $_pplogin_address = array( 'phone' => $user->getPhoneNumber(), ); +x_load('paypal'); + +// detect state from state info returned by PayPal +$_pplogin_address['state'] = func_paypal_detect_state( + $_pplogin_address['country'], + $_pplogin_address['state'], + $_pplogin_address['zipcode'] +); + $_pplogin_check_result = func_pplogin_check_user($_pplogin_profile['payerid'], $_pplogin_profile['openid_identity']);

Thank you, it works.
__________________
X-Cart Gold Plus 4.6.6
A lot of custom mods
Reply With Quote

The following 2 users thank Stizerg for this useful post:
aim (03-18-2014), Ksenia (03-19-2014)
  #24  
Old 03-19-2014, 04:25 AM
 
herber@wirehub.nl herber@wirehub.nl is offline
 

eXpert
  
Join Date: Nov 2002
Posts: 297
 

Default Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.

Quote:
Originally Posted by mixon
Please use the following patch and make the necessary changes to 'modules/PayPal_Login/pp_return.php' file to fix this issue:

Code:
diff --git a/modules/PayPal_Login/pp_return.php b/modules/PayPal_Login/pp_return.php index 6c9bee4..6595ab5 100644 --- a/modules/PayPal_Login/pp_return.php +++ b/modules/PayPal_Login/pp_return.php @@ -106,6 +106,15 @@ $_pplogin_address = array( 'phone' => $user->getPhoneNumber(), ); +x_load('paypal'); + +// detect state from state info returned by PayPal +$_pplogin_address['state'] = func_paypal_detect_state( + $_pplogin_address['country'], + $_pplogin_address['state'], + $_pplogin_address['zipcode'] +); + $_pplogin_check_result = func_pplogin_check_user($_pplogin_profile['payerid'], $_pplogin_profile['openid_identity']);
Is this going to get updated in the 4.6.3 package?
Reply With Quote
  #25  
Old 03-19-2014, 09:58 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,026
 

Default Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.

Probably not. It will be as patch posted here. It may find its way into 4.6.4 though
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 2 users thank cflsystems for this useful post:
aim (03-19-2014), mixon (03-20-2014)
  #26  
Old 04-01-2014, 01:51 AM
 
josebueso josebueso is offline
 

eXpert
  
Join Date: Apr 2006
Location: USA
Posts: 371
 

Default Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.

Hello

I found the below php error message in xcart logs and also the inventory update suddenly stop working returning a 404 page not found.

[01-Apr-2014 02:42:19] Warning: parse_ini_file() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.compat.php on line 201

[01-Apr-2014 02:43:12] Warning: readfile() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.files.php on line 836

[01-Apr-2014 02:43:12] Warning: readfile() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.files.php on line 836

[01-Apr-2014 02:43:14] Warning: parse_ini_file() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.compat.php on line 201

[01-Apr-2014 02:43:20] Warning: parse_ini_file() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.compat.php on line 201

Kind of wondering if is related to inventory update stop working, and also worry since read for security reasons

Your help is appreciated

Jose
__________________
Saul
x-cart 4.7.9 Gold Plus

www.uncionmusic.com
Reply With Quote
  #27  
Old 04-02-2014, 12:33 AM
 
josebueso josebueso is offline
 

eXpert
  
Join Date: Apr 2006
Location: USA
Posts: 371
 

Default Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.

Hello

This was fixed by my hosting company, it was a change in the server, just in case someone else is having same issue need to contact your hosting company to do the necessary adjustments.

Thanks.

Quote:
Originally Posted by josebueso
Hello

I found the below php error message in xcart logs and also the inventory update suddenly stop working returning a 404 page not found.

[01-Apr-2014 02:42:19] Warning: parse_ini_file() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.compat.php on line 201

[01-Apr-2014 02:43:12] Warning: readfile() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.files.php on line 836

[01-Apr-2014 02:43:12] Warning: readfile() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.files.php on line 836

[01-Apr-2014 02:43:14] Warning: parse_ini_file() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.compat.php on line 201

[01-Apr-2014 02:43:20] Warning: parse_ini_file() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.compat.php on line 201

Kind of wondering if is related to inventory update stop working, and also worry since read for security reasons

Your help is appreciated

Jose
__________________
Saul
x-cart 4.7.9 Gold Plus

www.uncionmusic.com
Reply With Quote

The following user thanks josebueso for this useful post:
aim (04-02-2014)
  #28  
Old 04-18-2014, 11:33 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,026
 

Default Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.

I thought the Advanced Statistics module was removed from 4.6.3?
The bestsellers.php still has this code in

Code:
if ( !empty($active_modules['Advanced_Statistics']) && $config['Advanced_Statistics']['use_delayed_stats_update'] == 'Y' ) { // Flush all delayed queries to product data table func_run_delayed_query('views_stats_products'); }

Of course the module does not exist... not to mention this file is not in use probably....
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #29  
Old 04-20-2014, 09:47 PM
 
aim aim is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 928
 

Default Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.

Quote:
Originally Posted by cflsystems
I thought the Advanced Statistics module was removed from 4.6.3?
The bestsellers.php still has this code in

Code:
if ( !empty($active_modules['Advanced_Statistics']) && $config['Advanced_Statistics']['use_delayed_stats_update'] == 'Y' ) { // Flush all delayed queries to product data table func_run_delayed_query('views_stats_products'); }

Of course the module does not exist... not to mention this file is not in use probably....

You are right
The file is not used in 4.6.3

The active file is
Code:
modules/Bestsellers/func.php
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote
Reply
   X-Cart forums > News and Announcements


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:02 PM.

   

 
X-Cart forums © 2001-2020