Jump to content

Paypal module stopped working


boogs
 Share

Recommended Posts

Hi,

 

I have been fighting with that Paypal module for 2 weeks now. It worked well and one day started to return an error or even disappear from the payment modes...

I tried reinstalling the module several times, regenerate Paypal API details, double checked them, no way to get it back working correctly.

I have last verified version of both PS and Paypal module installed (1.6.0.14 and 3.8.2). Some classic modules installed, and smartblog for news...

Can someone please have an idea to share to help ?

 

See below the error I get for every payment try :

<h2> </h2>

Veuillez contacter le marchant:

  1. <b>PayPal response:</b>
  2. TIMESTAMP -> 2015-03-10T13:58:14Z
  3. L_ERRORCODE0 -> 10004
  4. L_SHORTMESSAGE0 -> Internal Error
  5. L_LONGMESSAGE0 -> Transaction refused because of an invalid argument. See additional error messages for details.
  6. L_SEVERITYCODE0 -> Error
  7.  

Share this post


Link to post
Share on other sites

Thank you very much for helping.

I did what you suggested but exacltly same error in the end.

Paypal message indicates to check logs for more details but there are no logs on PS backend, is that normal ?

No way to access to the server logs page @ ovh, i don't know why. Can I find any other logs for it on ftp ?

Any other suggestions ?

Edited by boogs (see edit history)

Share this post


Link to post
Share on other sites

Hi,

 

I did switch @ Performance -> debug mode -> deactivate both options. Retried a payment and same error (see below).

Where are error details on PS ? No message on backend and nothing @ Log menu except admin connexions.

I can't access to the server logs because there are maintenance operations on mutualised hosting at the moment, can't believe it !!

 

Error occurred:

Veuillez contacter le marchant:

  1. <b>PayPal response:</b>
  2. TIMESTAMP -> 2015-03-12T12:00:44Z
  3. L_ERRORCODE0 -> 10004
  4. L_SHORTMESSAGE0 -> Internal Error
  5. L_LONGMESSAGE0 -> Transaction refused because of an invalid argument. See additional error messages for details.
  6. L_SEVERITYCODE0 -> Error

Share this post


Link to post
Share on other sites

I checked the logs  and I found a lot of negotiation url errors and no log about Paypal...

Ex : Negotiation: Discovered File(s) Matching Request: None Could Be Negotiated

 

I added this in my htaccess and 1 Paypal payment worked. Second one did not...

Options -MultiViews

Source : http://www.bennadel.com/blog/2218-negotiation-discovered-file-s-matching-request-none-could-be-negotiated.htm

 

Any ideas ?

 

Edited by boogs (see edit history)

Share this post


Link to post
Share on other sites

I have this error log for the second Paypal try that failed :

[Fri Mar 13 14:17:58 2015] [error] [client xx.xx.xx.xxx] [host www.mywebsite.com] client denied by server configuration: /homez.490/root/mydomain/index.php3, referer: http://www.mywebsite.com/modules/paypal/express _checkout/payment.php?token=EC-7CM073375A824231C&PayerID=F LGPUKZ3F3WZN

Same errors with url/index.htm and url/index.cgi

 

Any log master ?

Share this post


Link to post
Share on other sites

Maybe yeah, but I'm not sure which directory I have to give access to because logs are not that clear. And my image directory is root/img and not root/images... Why all these connection tries to that image url that does not exist ?

[Fri Mar 13 11:00:54 2015] [error] [client xxx.xx.xxx.xx] [host www.domain.com] Negotiation: discovered file(s) matching request: /homez.490/root/domain/images (None could be negotiated)., referer: http://www.domain.com/

[Fri Mar 13 15:09:36 2015] [error] [client xxx.xx.xxx.xx] [host www.domain.com] client denied by server configuration: /homez.490/root/domain/index.cgi, referer: http://www.domain.com/modules/paypal/express_checkout/payment.php?token=EC-7CM073375A824231C&PayerID=FLGPUKZ3F3WZN

[Fri Mar 13 18:25:43 2015] [error] [client xxx.xx.xxx.xx] [host www.domain.com] Negotiation: discovered file(s) matching request: /homez.490/root/domain/images (None could be negotiated)., referer: http://www.domain.com/js/jquery/plugins/bxslider/jquery.bxslider.css
xx.xx.xx.xxx www.domain.com - [14/Mar/2015:14:01:56 +0100] "GET /?mylogout= HTTP/1.1" 302 20 "http://www.domain.com/modules/paypal/express_checkout/payment.php?token=EC-6DA45638996367458&PayerID=FLGPUKZ3F3WZN" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0"
xx.xx.xx.xxx www.domain.com - [14/Mar/2015:14:01:56 +0100] "GET /modules/paypal/express_checkout/payment.php?token=EC-6DA45638996367458&PayerID=FLGPUKZ3F3WZN HTTP/1.1" 200 13199 "http://www.domain.com/modules/paypal/express_checkout/payment.php?token=EC-6DA45638996367458&PayerID=FLGPUKZ3F3WZN" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0"
Edited by boogs (see edit history)

Share this post


Link to post
Share on other sites

Hi, my host provider (OVH) says it's a htaccess problem. I tried deleting lines I added but it seems to come from autogenerated PS ones... See below my htaccess code, can somebody help me find what blocks Paypal Payments ?

<Files .htaccess>
order allow,deny
deny from all
</Files>

##Options -Indexes
Options +FollowSymLinks -Indexes -MultiViews

## EXCEPTION: TOUS LES ROBOTS MEMES ANONYMES OU BANNIS PEUVENT ACCEDER A CES FICHIERS
RewriteCond %{REQUEST_URI} !^/robots.txt
RewriteCond %{REQUEST_URI} !^/sitemap.xml

# Register Globals : Off
SetEnv REGISTER_GLOBALS 0
# Utilisation de php 5.1
SetEnv PHP_VER 5.1

### SEUL LE FICHIER index.php EST SERVI COMME PREMIER FICHIER PAR DEFAUT. LES AUTRES SONT INTERDITS
DirectoryIndex index.php

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>

RewriteEngine on


#Domain: www.mydomain.com
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api$ api/ [L]

RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# Images
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]

# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
</IfModule>

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff
<IfModule mod_headers.c>
	<FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$">
		Header add Access-Control-Allow-Origin "*"
	</FilesMatch>
</IfModule>

#If rewrite mod isn't enabled
ErrorDocument 404 /index.php?controller=404

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
Edited by boogs (see edit history)

Share this post


Link to post
Share on other sites

[EDIT]

 

Problem fixed.

If you face this kind of issue, double check you Paypal account settings and rebuild your professionnal account from scratch (I did that). It's like it was not really completed the first time.

Everything is fine now, iw was not a website issue ;)

Edited by boogs (see edit history)

Share this post


Link to post
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More