1b.app
Link copied -

Orders are not pulled into the box and product images are not transferred to opencart

Opencart integration configured https://montazhka.crm-onebox.com/admin/shop/integrations/opencart-1/control/
Products are transferred from opencart to box and from box to opencart, but product images are not transferred to opencart. Orders have also stopped being pulled from opencart.
In the opencart log for today, there is an error on orders:
[responce] => <b>Notice</b>: Undefined property:...
The check has the same error on OpenCart send images.json: Notice: Undefined property: Proxy::getApiId in...
Please tell me why it gives errors and how can I fix it?
Original question is available on version: ru

Answers:

most likely the integration is not configured correctly or there are errors on the side of the opencart itself in the api
we can set up and figure it out ourselves - it will take 2 hours
17.06.2021, 18:06
Original comment available on version: ru

The client initially tried to set up the integration himself.
Now the oneboxsync.php file is located in the /www/catalog/controller/api folder and in the /www/system/storage/modification/catalog/controller/api folder
Refers to the file in the second path in the error.
Tell me, please, is it normal that there are 2 files?
18.06.2021, 11:45
Original comment available on version: ru


Tkachenko Roman Anatolievich wrote:
The client initially tried to set up the integration himself.
Now the oneboxsync.php file is located in the /www/catalog/controller/api folder and in the /www/system/storage/modification/catalog/controller/api folder
Refers to the file in the second path in the error.
Tell me, please, is it normal that there are 2 files?

Yes, good
most likely the files are filled with the wrong version
18.06.2021, 17:35
Original comment available on version: ru

Uploaded files of the required version. Orders are being sent.
But the images on opencart are still not uploaded. There is an error in the check:
opencart send images.json | Not ok | {"error":"no error"}
And in the logs on opencart:
2021-06-25 11:17:23 - PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/dl375723/montazhka.com.ua/www/catalog/controller /api/oneboxsync.php on line 936
2021-06-25 11:17:23 - PHP Warning: file_get_contents(https://montazhka.crm-onebox.com/media/export/opencart/images.json): failed to open stream: no suitable wrapper could be found in /home/dl375723/montazhka.com.ua/www/catalog/controller/api/oneboxsync.php on line 936
The time of recording in the logs coincides with the start time of the action to import products into opencart (products are transferred)
I know that the box.360auto.com.ua project has the same error. And on the forum I found 2 more questions with similar errors (there is also a problem with transferring pictures and also {"error":"no error"} ):
- https://crm-onebox.com/en/support/online-stores/9065-integratsiya-s-saytom-vidae...
- https://crm-onebox.com/ru/support/online-stores/9124-after-platnoy-dorabotki-ne-...
Could this be a common problem or is it in the integration settings or errors on the side of the opencart itself in the api?
28.06.2021, 12:03
Original comment available on version: ru


Tkachenko Roman Anatolievich wrote:
Uploaded files of the required version. Orders are being sent.
But the images on opencart are still not uploaded. There is an error in the check:
opencart send images.json | Not ok | {"error":"no error"}
And in the logs on opencart:
2021-06-25 11:17:23 - PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/dl375723/montazhka.com.ua/www/catalog/controller /api/oneboxsync.php on line 936
2021-06-25 11:17:23 - PHP Warning: file_get_contents(https://montazhka.crm-onebox.com/media/export/opencart/images.json): failed to open stream: no suitable wrapper could be found in /home/dl375723/montazhka.com.ua/www/catalog/controller/api/oneboxsync.php on line 936
The time of recording in the logs coincides with the start time of the action to import products into opencart (products are transferred)
I know that the box.360auto.com.ua project has the same error. And on the forum I found 2 more questions with similar errors (there is also a problem with transferring pictures and also {"error":"no error"} ):
- https://crm-onebox.com/en/support/online-stores/9065-integratsiya-s-saytom-vidae...
- https://crm-onebox.com/ru/support/online-stores/9124-after-platnoy-dorabotki-ne-...
Could this be a common problem or is it in the integration settings or errors on the side of the opencart itself in the api?

there are 30 operarts where image transfer works
the problem is purely in the settings of cron.php and the token in it.
I gave a higher rating - we can set it up in 1 hour
29.06.2021, 13:42
Original comment available on version: ru

Сусяк Ігор
Integrator.com.ua
Personal license
I run php /home/dl375723/montazhka.com.ua/www/catalog/onebox/cron.php
pardon on the server:
</br>
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/dl375723/montazhka.com.ua/www/catalog/onebox/cron.php on line 34
putting in php.ini a row
date.timezone = Europe/Kiev;
the code was corrected, but the photo did not fit
02.07.2021, 18:51
Original comment available on version: ru


Susyak Igor
Integrator
Premium partner
Integrator.com.ua wrote:
I run php /home/dl375723/montazhka.com.ua/www/catalog/onebox/cron.php
pardon on the server:
</br>
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/dl375723/montazhka.com.ua/www/catalog/onebox/cron.php on line 34
putting in php.ini a row
date.timezone = Europe/Kiev;
the code was corrected, but the photo did not fit

to answer me what is wrong with your settings, you need to spend 1-2 hours on parsing
when I understand what you did wrong, I will immediately correct it and write back to you what was wrong
now you're just wasting your time
03.07.2021, 14:45
Original comment available on version: ru


Ustimenko Igor
OneBox production
Premium Partner
OneBox CTO wrote:
to answer me what is wrong with your settings, you need to spend 1-2 hours on parsing

OK. Need an account
05.07.2021, 16:49
Original comment available on version: ru

1. wrong api authorization link in cron.php
was $host .'index.php?route=api/login/ and their version needs $host .'index.php?route=api/login (no trailing slash)
2. the ip address of the site itself is not added to itself in the api
stdClass Object
(
[error] => stdClassObject
(
[ip] => WARNING: Your IP address 2a06:6440:0:2c63::1 does not have API access!
[key] => WARNING: API key is not valid!!
)
)
you can see that the site is running on ipv6, so ip 2a06:6440:0:2c63::1 needs to be added to the api in the allowed addresses
I added
all in all it works now
09.07.2021, 11:17
Original comment available on version: ru

Test product: https://montazhka.crm-onebox.com/admin/shop/products/16234/edit/
In boxing, he has a picture, but it didn’t catch up on opencart.
The error {"error":"no error"} from check did not disappear.
09.07.2021, 13:08
Original comment available on version: ru


Tkachenko Roman Anatolievich wrote:
Test product: https://montazhka.crm-onebox.com/admin/shop/products/16234/edit/
In boxing, he has a picture, but it didn’t catch up on opencart.
The error {"error":"no error"} from check did not disappear.

no error - doesn't bother you?)))
you have kroner registered once an hour
how long did you wait?
09.07.2021, 17:04
Original comment available on version: ru

The action Upload products/categories/filters/characteristics to opencart (via database) was not disabled. Images haven't uploaded in a day.
09.07.2021, 17:57
Original comment available on version: ru


Tkachenko Roman Anatolievich wrote:
Test product: https://montazhka.crm-onebox.com/admin/shop/products/16234/edit/
In boxing, he has a picture, but it didn’t catch up on opencart.
The error {"error":"no error"} from check did not disappear.

and since when should remote products be unloaded?
12.07.2021, 12:50
Original comment available on version: ru


Ustimenko Igor
OneBox production wrote:

Tkachenko Roman Anatolievich wrote:
Test product: https://montazhka.crm-onebox.com/admin/shop/products/16234/edit/
In boxing, he has a picture, but it didn’t catch up on opencart.
The error {"error":"no error"} from check did not disappear.

and since when should remote products be unloaded?

in addition, see the screenshot
I spent over an hour looking for the fact that you are uploading 2 products with the same external id and different pictures!
who will cover it for me?
12.07.2021, 13:55
Original comment available on version: ru


Ustimenko Igor
OneBox production wrote:
and since when should remote products be unloaded?

At the time when I wrote that infa is not transmitted, the product has not yet been removed. It was later deleted by a client employee.
Removed extra product. Now the picture has been pulled up in opencart. Thanks
12.07.2021, 14:06
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment