MrTini Posted September 5, 2018 Share Posted September 5, 2018 Added Paypal & BrainTree module on my PrestaShop 1.7.4.2, after succesfull installation i tried to configure it and it gave me an error. How to solve it? Here's what it says: Notice: Undefined index: links in /var/www/html/businessLogic/connected6.php on line 122Warning: Invalid argument supplied for foreach() in /var/www/html/businessLogic/connected6.php on line 122Notice: Undefined variable: result in /var/www/html/businessLogic/connected6.php on line 141Notice: Trying to get property of non-object in /var/www/html/businessLogic/connected6.php on line 141Notice: Undefined variable: result in /var/www/html/businessLogic/connected6.php on line 141Notice: Trying to get property of non-object in /var/www/html/businessLogic/connected6.php on line 141 Link to comment Share on other sites More sharing options...
parano91 Posted October 4, 2018 Share Posted October 4, 2018 Hi, I have the same problem, nobody to help us ? Prestashop have no support ? Link to comment Share on other sites More sharing options...
networkey Posted October 5, 2018 Share Posted October 5, 2018 Salve, ho lo stesso problema anche io con il modulo paypal versione prestashop 1.7.4.2 - paypal 4.4.2 Link to comment Share on other sites More sharing options...
parano91 Posted October 5, 2018 Share Posted October 5, 2018 Yes, Nobody can help us .. I have contacted developer of the module paypal, prestashop .. nobody can help us .. Link to comment Share on other sites More sharing options...
Sebastia__n Posted November 9, 2018 Share Posted November 9, 2018 On 5/10/2018 at 6:22 AM, parano91 said: Yes, Nobody can help us .. I have contacted developer of the module paypal, prestashop .. nobody can help us .. Hi, you need go to the "Configuration" in the Paypal module, and activate the option that say "Activate test environmet". Is posible that you are using the localhost and not a hosting. Link to comment Share on other sites More sharing options...
Davide Posted November 12, 2018 Share Posted November 12, 2018 (edited) Hi, if you set "Sandbox" to OFF you are able to active PayPal, If you set "Sandbox" to ON I have the same issue. Edited November 12, 2018 by Davide (see edit history) Link to comment Share on other sites More sharing options...
jordy971 Posted November 12, 2018 Share Posted November 12, 2018 Hi, Still do not work, Sandbox off or on still the same issue Link to comment Share on other sites More sharing options...
zoomwi Posted November 13, 2018 Share Posted November 13, 2018 I got the same issue with a PayPal module that I have downloaded from another website. If you use the PayPal module which is in the tab "Selection" this error disappear but you get another one instead when you turn the Sandbox option on. When you turn Sandbox option on, the PayPal option disappear from the checkout page in the frontend so you can't try your Sandbox account. And in the backend you get this error: "An error occurred. Please, check your credentials Paypal." in the configuration tab, but the credentials are correct, so I don't know what is happening. If you turn off again the Sandbox option you get this new message: "Tu cuenta PayPal está conectada correctamente; ya puedes recibir pagos", but you can't try to checkout with your Sandbox credentials of course. Any help? Link to comment Share on other sites More sharing options...
Davide Posted November 13, 2018 Share Posted November 13, 2018 The module call $response = "https://partners-subscribe.prestashop.com/paypal/request.php?".http_build_query($partner_info, '', '&'); which goes on error (see the first post of thread) sometimes (I'm investigating)... I think that the problem doesn't appear if you Active the module the first time with Sandbox to ON. Next if you set Sandbox to OFF you get the error of @zoomwi that you can resolve in this way: Go to PREFIX_configuration table, find: - `PAYPAL_MERCHANT_ID_SANDBOX` - `PAYPAL_USERNAME_SANDBOX` - `PAYPAL_PSWD_SANDBOX` - `PAYPAL_SIGNATURE_SANDBOX` and update the values. NB: in PAYPAL_MERCHANT_ID_SANDBOX insert the value of PAYPAL_MERCHANT_ID_LIVE 1 Link to comment Share on other sites More sharing options...
zoomwi Posted November 13, 2018 Share Posted November 13, 2018 Thank you Davide! It is working now! I really appreciate your help I have uninstalled the module and reinstalled it with the SandBox option activated, and I get the error metioned by MrTini, so this option doesn't work. So I edit the PayPal fields in the database and this works perfectly. I get the values of the fields from the profile of my bussiness account here https://developer.paypal.com/developer/accounts/. Link to comment Share on other sites More sharing options...
createit Posted November 20, 2018 Share Posted November 20, 2018 I'm having similar issues. Thanks to Davide, I can manually enter values in the configuration database, but then I get "You do not have permissions to make this API call", which makes me think I don't have the correct credentials. I suspect I don't have the right API settings. Paypal seems to offer three different APIs and the terminology isn't quite the same as the records in the configuration database. Which API should I use? Link to comment Share on other sites More sharing options...
ksaan Posted November 20, 2018 Share Posted November 20, 2018 Hi, got same issue and I saw this issue has been investigated and solved on github: https://github.com/PrestaShop/PrestaShop/issues/11323 😉 Link to comment Share on other sites More sharing options...
jordy971 Posted November 20, 2018 Share Posted November 20, 2018 Where did you enter the values manually ? where is Prefix_Configuration ? 1 hour ago, ksaan said: Hi, got same issue and I saw this issue has been investigated and solved on github: https://github.com/PrestaShop/PrestaShop/issues/11323 😉 I don't understand how they resolved the issue ? Link to comment Share on other sites More sharing options...
Davide Posted November 20, 2018 Share Posted November 20, 2018 8 minutes ago, jordy971 said: Where did you enter the values manually ? where is Prefix_Configuration ? `ps_configuration` is a table, check your database. `ps_` is the default PREFIX that you can change during the installation. Link to comment Share on other sites More sharing options...
jordy971 Posted November 20, 2018 Share Posted November 20, 2018 I don't have "ps_" Look what is in my database phpMyAdmin Thank you for you're help Link to comment Share on other sites More sharing options...
Davide Posted November 20, 2018 Share Posted November 20, 2018 7 minutes ago, jordy971 said: I don't have "ps_" Look what is in my database phpMyAdmin your `prefix` is `l2gh`, your table will be l2gh_configuration Link to comment Share on other sites More sharing options...
jordy971 Posted November 20, 2018 Share Posted November 20, 2018 Unfortunately i don't have l2gh_configuration That's really strange maybe that's my problem ? Link to comment Share on other sites More sharing options...
Davide Posted November 20, 2018 Share Posted November 20, 2018 PS version? I'm on PS 1.7.4 Link to comment Share on other sites More sharing options...
Davide Posted November 20, 2018 Share Posted November 20, 2018 (edited) 2 hours ago, ksaan said: Hi, got same issue and I saw this issue has been investigated and solved on github: https://github.com/PrestaShop/PrestaShop/issues/11323 😉 if you turn ON Sandbox mode, the problem still appears. I updated the issue on github EDIT: If you come back after the error and retry, now works good but persist the problem that the module doesn't update PAYPAL_%_SANDBOX configuration Edited November 20, 2018 by Davide (see edit history) Link to comment Share on other sites More sharing options...
jordy971 Posted November 20, 2018 Share Posted November 20, 2018 I'm on 1.7.4 too Link to comment Share on other sites More sharing options...
Davide Posted November 20, 2018 Share Posted November 20, 2018 1 minute ago, jordy971 said: I'm on 1.7.4 too Under DB name, click into text input, write `configuration` and press ENTER to search. If the table is not listed..... I don't know Can you try a clean install? Link to comment Share on other sites More sharing options...
jordy971 Posted November 20, 2018 Share Posted November 20, 2018 Thank you i've found the configuration files, But even when I turn ON the sandbox I have the same error than MrTini So unfortunately I don't think this will resolve my issue Link to comment Share on other sites More sharing options...
Davide Posted November 20, 2018 Share Posted November 20, 2018 Did you SAVE after Turn ON Sandbox before press the "Activate" button? Link to comment Share on other sites More sharing options...
jordy971 Posted November 20, 2018 Share Posted November 20, 2018 Yes sure, I've tried so many times, Install, uninstall sandbox turn ON or OFF, i've tried everything Link to comment Share on other sites More sharing options...
Davide Posted November 20, 2018 Share Posted November 20, 2018 The issue on github was reopened... 1 Link to comment Share on other sites More sharing options...
jordy971 Posted November 20, 2018 Share Posted November 20, 2018 Yes, I hope they will help me to resolve my issue .. (that I have for more than 5 month) Link to comment Share on other sites More sharing options...
ttoine Posted November 21, 2018 Share Posted November 21, 2018 Hello, could you please check if this is related to this Paypal information: https://www.paypal.com/fm/smarthelp/article/why-do-i-need-to-upgrade-my-system-to-tls-1.2-faq3898 Link to comment Share on other sites More sharing options...
caressl Posted December 7, 2018 Share Posted December 7, 2018 (edited) I am also having same issue. If any one get an answer please help me. My query is same Edited December 7, 2018 by caressl (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted December 7, 2018 Share Posted December 7, 2018 (edited) suggestion, if you have paypal question, open new topic in General. this topic has many 'same problems' but they are not the same. always open a new topic for your specific issue, else very few will ever see your post. is there a module that supports migration from your old platform to PS? maybe they support link migration... Edited December 9, 2018 by El Patron (see edit history) 1 Link to comment Share on other sites More sharing options...
carminoplata Posted June 20, 2019 Share Posted June 20, 2019 Hello everybody, I am dealing with similar problems on Paypal module. Practically, the first time, I tried to activate Paypal service (no Braintree) without the flag for sandbox but I didn't want to complete it. So I found a manual as a user guide for the configuration of the module, and I tried to follow it. I activated the Sandbox flag and then I tried to login and associate my sandbox account with the Business profile. When I click on Authorize button to provide information for Paypal API and I come back to Prestashop, I get a 500 Internal Server Error but the data in the request are correct. Could it be due to the use of localhost and not a production server (hosting for example)? there is a screenshot of the results of the request at Paypal in attachment. I tried also to update manually the fields into DB but it hasn't solved my problem yet. Thanks a lot for your reply and support Link to comment Share on other sites More sharing options...
mir-aus Posted December 7, 2019 Share Posted December 7, 2019 HI there, I have same problem still, is there any one this problme. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now