Post by fatihcr » Mon Mar 20, 2023 11:29 pm

Hello,

I have got an opencart (3.0.3.8) store on www.domain.com and i needed a copy store for developement.

So i created a subdomain as ww1.domain.com and copied all the databases and files.
I made the config file settings and then i had two different stores on the same host as everything is seperated like database, files, dashboards, so its not a multistore.

ww1 is only for developement things, i test anything on that store and i put it to www store.

The problem is somethings getting weird on the www store when i make the ww1 store live.

For example; i have a local credit card payment extension which is working with 3d transactions.
It's having problems with callback after the 3d authorization.
After the client enter the 3d password, it should callback to opencart and then take the payment but the host doesnt response on that callback url.
Also wishlist doesnt work properly, you add some products to wishlist but its not recorded when you refresh or go to wishlist page.


The question is, is it possible to two totally seperated stores can affect each other by session cookies?
In between, today i realized that the encrpytion keys are same on both stores, i changed one when i see it but it not changed anything.

Do you guys have any idea on a weird scenario like this?

Thank you in advance.

Newbie

Posts

Joined
Fri May 18, 2012 6:16 am

Post by ADD Creative » Tue Mar 21, 2023 12:39 am

Have you checked your server/PHP error logs as well as the OpenCart one?

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by fatihcr » Tue Mar 21, 2023 12:44 am

yes like below

server log:
2023-03-09 00:12:59.992033 NOTICE [476840] [T0] [31.223.58.170:9543-H3:EC2C6172852A33B4-0#APVH_domain.com:443] [STDERR] PHP Fatal error: Uncaught Exception: error_payment_class_not_found in /home/domain.com/public_html/catalog/controller/extension/payment/grilabs_multi_pos.php:334

Stack trace:
0 /home/domain.com/storage/modification/system/engine/action.php(79): ControllerExtensionPaymentGrilabsMultiPos->callback()
1 /home/domain.com/public_html/catalog/controller/startup/router.php(25): Action->execute(Object(Registry))
2 /home/domain.com/storage/modification/system/engine/action.php(79): ControllerStartupRouter->index()
3 /home/domain.com/public_html/system/engine/router.php(67): Action->execute(Object(Registry))
4 /home/domain.com/public_html/system/engine/router.php(56): Router->execute(Object(Action))
5 /home/domain.com/public_html/system/framework.php(169): Router->dispatch(Object(Action), Object(Action))
6 /home/domain.com/public_html/system/startup.php(104): require_once('/home/domain.c...')
7 /home/domain.com/public_html/index.php(19): start('catalog')
8 thrown in /home/domain.com/public_html/catalog/controller/extension/payment/grilabs_multi_pos.php on line 334


opencart log
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Order' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 655
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'OrderID' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 655
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Transaction' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 656
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Response' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 656
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Code' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 656
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Transaction' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 657
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Response' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 657
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'ErrorMsg' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 657
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Transaction' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 658
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Response' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 658
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'SysErrMsg' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 658
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Transaction' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 659
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'RetrefNum' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 659

Newbie

Posts

Joined
Fri May 18, 2012 6:16 am

Post by fatihcr » Tue Mar 21, 2023 1:18 am

Client facing the host error at the last step:

1. Client fill the credit card form on opencart extension ,
2. Extension forwards client to bank's 3d secure authorization in a lightbox on the checkout page,
3. Bank sends the sms code to client's phone,
4. He enters the code to bank's page,
5. Last step: Bank says the auth ok and send the client back to our store
And then our host doesnt response

Newbie

Posts

Joined
Fri May 18, 2012 6:16 am

Post by paulfeakins » Tue Mar 21, 2023 6:58 pm

fatihcr wrote:
Mon Mar 20, 2023 11:29 pm
For example; i have a local credit card payment extension which is working with 3d transactions.
It's having problems with callback after the 3d authorization.
Yes because a lot of payment gateways will expect the site to be at a certain URL, and if you change it you'll need to change the gateway.

If this new site is a development site, then you could connect it to the test/sandbox mode of the payment gateways.

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


User avatar
Guru Member
Online

Posts

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

Post by fatihcr » Wed Mar 22, 2023 3:23 am

Hello paul, thank you for your reply.
The problem is its having problems on the main site (www), not the development one.
It was working well on every section on the main site till i set the dns record for ww1.domain.com and take it live.
I had remove the development site and also deleted on the host when i see the problems but 3d issue is still continues.
Also now i have problem about wishlist too. When i add 5 products to wishlist, it records only one or none :)
I am very close to going crazy. Any help will be really appreciated.

Newbie

Posts

Joined
Fri May 18, 2012 6:16 am

Post by ADD Creative » Wed Mar 22, 2023 6:13 am

Do any of the errors in the logs occur at the same time as the payment fails?

When you say the host doesn't respond. What exactly do you mean? Not responding in a browser or to a callback? Is the URL correct? Have you look for the URL in your web access logs?

Does your host use an firewall that could be blocking the response?

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by fatihcr » Wed Mar 22, 2023 10:45 pm

how can i find the proper log of this error on cyberpanel/litespeed server?
Last edited by fatihcr on Wed Mar 22, 2023 11:29 pm, edited 1 time in total.

Newbie

Posts

Joined
Fri May 18, 2012 6:16 am

Post by fatihcr » Wed Mar 22, 2023 11:03 pm

it records the log after 5 minutes to opencart error logs when i submit the 3d pin code on bank page:

opencart log
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Order' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 655
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'OrderID' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 655
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Transaction' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 656
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Response' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 656
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Code' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 656
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Transaction' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 657
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Response' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 657
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'ErrorMsg' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 657
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Transaction' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 658
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Response' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 658
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'SysErrMsg' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 658
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'Transaction' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 659
2023-03-20 17:53:22 - PHP Notice: Trying to get property 'RetrefNum' of non-object in /home/domain.com/public_html/catalog/controller/extension/payment/lib/Garanti_PHP.php on line 659

Newbie

Posts

Joined
Fri May 18, 2012 6:16 am

Post by paulfeakins » Wed Mar 22, 2023 11:56 pm

fatihcr wrote:
Wed Mar 22, 2023 3:23 am
Also now i have problem about wishlist too. When i add 5 products to wishlist, it records only one or none :)
Sounds like possibly session issues or possibly some caching at your web host.

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


User avatar
Guru Member
Online

Posts

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

Post by fatihcr » Thu Mar 23, 2023 3:15 am

I found the reason for the wishlist problem, it's about official facebook extension. That extension was installed at the www main site and ww1 development site at the same time, i think the problem had a relationship with two separate sites with the same settings and codes on facebook extension. I just uninstall it and the wishlist is working well on the main store.

In the other hand, the credit card gateway problem is still exist. I had tried almost everything but still dont have anything to solve it.

Newbie

Posts

Joined
Fri May 18, 2012 6:16 am

Post by ADD Creative » Thu Mar 23, 2023 4:18 am

The 5 minutes sounds like some sort of timeout. Have you checked your PHP error log? Use phpinfo() to find it.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by fatihcr » Thu Mar 23, 2023 3:44 pm

I set the php error log records as you said but its not recording anything related payment error.

Just focused to facebook extension and i think it's the only reason for payment and wishlist error.
I had uninstalled facebook extension and everything works for now. There's no error on payment, there's no any problem with wishlist.

I think its all about we created ww1 store first, installed everything needed includes facebook extension too and we move it to www main store after the tests. When we face this stupid errors and tried everything to avoid it, what we did is closed the ww1 site and uninstall all extensions. It fixed it and we couldnt understand it's about ww1 or facebook extension. When there's no errors, we just install what we use and make the ww1 store live to develop something and the problems started again. Closed the ww1 site right away but it lasted long till we uninstall the facebook extension.

I still dont know how it is affect on payment or wishlist exactly, i think there's only way for this is it maybe causes a session situation.
Uninstalled and installed it again, it doesnt work. Change some options on facebook setup but it doesnt change anything, still doesnt work.
I had searched for ww1 text on entire database but cant find anything. I had searched for ww1 text on files but no, there's no any ww1 text anywhere.
I had also searched if anything is written on facebook account about ww1 related, no it's not.
I think there's something about we started it ww1 first and it still crashes session somehow.

What is your opinion guys? I can not use facebook extension because of this. Do you catch anything?

Newbie

Posts

Joined
Fri May 18, 2012 6:16 am

Post by ADD Creative » Thu Mar 23, 2023 10:21 pm

It hard to say without knowing how the payment extension you are using works. However the OpenCart Facebook does hook into the checkout/success so if there was an issue with it it could affect your orders.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: alanjones and 83 guests