Post by mitrecyclers » Mon Feb 01, 2021 6:43 pm

khnaz35 wrote:
Mon Feb 01, 2021 6:09 pm
mitrecyclers wrote:
Mon Feb 01, 2021 6:06 pm
They are original from Opencart, Found them in extensions --> payment
What is your OC version?
3.0.3.2

For all of your Mobile phone needs.
https://mitrecyclers.com


Active Member

Posts

Joined
Tue Sep 25, 2018 5:34 pm

Post by khnaz35 » Mon Feb 01, 2021 6:48 pm

Would suggest download the master branch from github and compare your files.

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by mitrecyclers » Mon Feb 01, 2021 6:50 pm

Compare all files? or any specific folder?

For all of your Mobile phone needs.
https://mitrecyclers.com


Active Member

Posts

Joined
Tue Sep 25, 2018 5:34 pm

Post by paulfeakins » Mon Feb 01, 2021 6:59 pm

When trying to delete an item from the cart, I inspect the AJAX response and it is:

Code: Select all

{"success":false}
So my guess is an extension.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by mitrecyclers » Tue Feb 02, 2021 12:15 am

I copied all text from github and replaced on server for these 4 files

/admin/controller/extension/payment/pilibaba.php
/admin/view/template/extension/payment/pp_express_transaction.twig
/catalog/controller/api/login.php
/catalog/controller/extension/module/paypal_smart_button.php

That does not seems to resolve issue.

For all of your Mobile phone needs.
https://mitrecyclers.com


Active Member

Posts

Joined
Tue Sep 25, 2018 5:34 pm

Post by straightlight » Tue Feb 02, 2021 12:20 am

mitrecyclers wrote:
Tue Feb 02, 2021 12:15 am
I copied all text from github and replaced on server for these 4 files

/admin/controller/extension/payment/pilibaba.php
/admin/view/template/extension/payment/pp_express_transaction.twig
/catalog/controller/api/login.php
/catalog/controller/extension/module/paypal_smart_button.php

That does not seems to resolve issue.
Error logs.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by mitrecyclers » Tue Feb 02, 2021 12:29 am

straightlight wrote:
Tue Feb 02, 2021 12:20 am
mitrecyclers wrote:
Tue Feb 02, 2021 12:15 am
xxvirusxx wrote:
Mon Feb 01, 2021 7:10 pm
I copied all text from github and replaced on server for these 4 files

/admin/controller/extension/payment/pilibaba.php
/admin/view/template/extension/payment/pp_express_transaction.twig
/catalog/controller/api/login.php
/catalog/controller/extension/module/paypal_smart_button.php

That does not seems to resolve issue.
Error logs.
2021-01-31 19:51:47 - PHP Notice: Undefined index: enquiry in /home/mitrecyc/storage/modification/catalog/controller/information/contact.php on line 159

For all of your Mobile phone needs.
https://mitrecyclers.com


Active Member

Posts

Joined
Tue Sep 25, 2018 5:34 pm

Post by mitrecyclers » Tue Feb 02, 2021 12:29 am

mitrecyclers wrote:
Tue Feb 02, 2021 12:29 am
straightlight wrote:
Tue Feb 02, 2021 12:20 am
mitrecyclers wrote:
Tue Feb 02, 2021 12:15 am


I copied all text from github and replaced on server for these 4 files

/admin/controller/extension/payment/pilibaba.php
/admin/view/template/extension/payment/pp_express_transaction.twig
/catalog/controller/api/login.php
/catalog/controller/extension/module/paypal_smart_button.php

That does not seems to resolve issue.
Error logs.
2021-01-31 19:51:47 - PHP Notice: Undefined index: enquiry in /home/mitrecyc/storage/modification/catalog/controller/information/contact.php on line 159
nothing of today.

For all of your Mobile phone needs.
https://mitrecyclers.com


Active Member

Posts

Joined
Tue Sep 25, 2018 5:34 pm

Post by straightlight » Tue Feb 02, 2021 12:34 am

Caused by an installed extension. Line 159 from catalog/controller/information/contact.php file from the core does not contain any terms of: enquiry . Contact the extension developer to resolve this issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by mitrecyclers » Tue Feb 02, 2021 12:43 am

straightlight wrote:
Tue Feb 02, 2021 12:34 am
Caused by an installed extension. Line 159 from catalog/controller/information/contact.php file from the core does not contain any terms of: enquiry . Contact the extension developer to resolve this issue.
Thanks. I will check that as well. At the moment issue is when we enable Paypal Express checkout, Confirm Order does not work for Bank Payments.

For all of your Mobile phone needs.
https://mitrecyclers.com


Active Member

Posts

Joined
Tue Sep 25, 2018 5:34 pm

Post by straightlight » Tue Feb 02, 2021 1:02 am

mitrecyclers wrote:
Tue Feb 02, 2021 12:43 am
straightlight wrote:
Tue Feb 02, 2021 12:34 am
Caused by an installed extension. Line 159 from catalog/controller/information/contact.php file from the core does not contain any terms of: enquiry . Contact the extension developer to resolve this issue.
Thanks. I will check that as well. At the moment issue is when we enable Paypal Express checkout, Confirm Order does not work for Bank Payments.
Enable the debug. In the mean time, which custom theme are you using?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by mitrecyclers » Tue Feb 02, 2021 1:24 am

straightlight wrote:
Tue Feb 02, 2021 1:02 am
mitrecyclers wrote:
Tue Feb 02, 2021 12:43 am
straightlight wrote:
Tue Feb 02, 2021 12:34 am
Caused by an installed extension. Line 159 from catalog/controller/information/contact.php file from the core does not contain any terms of: enquiry . Contact the extension developer to resolve this issue.
Thanks. I will check that as well. At the moment issue is when we enable Paypal Express checkout, Confirm Order does not work for Bank Payments.
Enable the debug. In the mean time, which custom theme are you using?
Debug already on and using Default Theme

Display Errors Yes
Log Errors Yes

For all of your Mobile phone needs.
https://mitrecyclers.com


Active Member

Posts

Joined
Tue Sep 25, 2018 5:34 pm

Post by straightlight » Tue Feb 02, 2021 1:33 am

Use the Developers Kit (F12) on the browser. Then, go to the console tab. Hit the confirm order button again and see in the console tab if errors are showing. If, even if not, go to the network > XHR tab and hit the button again. See if you notice a response below.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by mikeinterserv » Tue Feb 02, 2021 1:41 am

paypal is the only standout.
There are also widgets - trustpilot - gootagmanager
It is almost certainly the paypal and or checkout.js
Last edited by mikeinterserv on Tue Feb 02, 2021 9:08 am, edited 1 time in total.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by mikeinterserv » Tue Feb 02, 2021 9:08 am


Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by mikeinterserv » Tue Feb 02, 2021 10:03 am

The problem is definitely the paypal express checkout button
If you use devtools - add an item and go to checkout
Now - use devtools to Delete just the express checkout button element at the top of the page.
Now you can continue to complete - paypal is still obviously available as a payment option but you can now select bank transfer and successfully complete the order. So its just finding out why the paypal express checkout button is causing the error.

The error being :
checkout.js:15655 Uncaught Error: PayPal Checkout Integration Script with same version (4.0.323) already loaded on page
at Module.<anonymous> (checkout.js:15655)
at __webpack_require__ (checkout.js:11)
at checkout.js:59
at checkout.js:60

Further:
Looking at the source code I am guessing the two scripts are causing the Uncaught Error: PayPal Checkout Integration Script with same version (4.0.323) already loaded on page error above.

<script type="text/javascript"><!--
window.paypalCheckoutReady = function () {
paypal.checkout.setup('paypal_api1.mitrecyclers.com', {
container: 'button-confirm',
environment: 'production'
});
};
//--></script>
<script src="//www.paypalobjects.com/api/checkout.js" async></script>

Further
I can confirm I have duplicated the error on a clean install of 3.0.3.2
The problem is the express checkout button module, once disabled everything works. The actual paypal payment works and any other method including bank tranfer

Next I'll try all the available fixes one by one and see if they fix it, The OP says he tried the fixes without success.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by khnaz35 » Tue Feb 02, 2021 12:13 pm

I would suggest delete all the files and directories related to Paypal manually from website and download master branch and extract the paypal express files and place on website to test.

I would love to help with more but sorry not enough bandwidth on my end yet.

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by straightlight » Tue Feb 02, 2021 12:26 pm

khnaz35 wrote:
Tue Feb 02, 2021 12:13 pm
I would suggest delete all the files and directories related to Paypal manually from website and download master branch and extract the paypal express files and place on website to test.

I would love to help with more but sorry not enough bandwidth on my end yet.
The master branch does not include the PP Express payment extension anymore.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by xxvirusxx » Tue Feb 02, 2021 4:17 pm

From that message I understand that script is loaded twice.
How many paypal payments you have enabled?

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: niagato, Semrush [Bot], TheDeerKami and 444 guests