1b.app
Link copied -

Opencart integration not working

Photos not uploading to opencart
The site was transferred to another host
integration is configured and tested, host support is connected, we found this when processing the oneboxsync.php file
Original question is available on version: ru

Answers:

Vadim, you need to describe the task in more detail, preferably with examples, as well as access to opencart, for verification
17.08.2020, 16:58
Original comment available on version: ru

Vadim, you need to describe the task in more detail, preferably with examples, as well as access to opencart, for verification
17.08.2020, 16:58
Original comment available on version: ru

Andrey, how can I write opencart access to a public task?
17.08.2020, 18:24
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
I assume that the server to which you transferred the site is not quite configured for such work.
That is, there is not enough memory for the cron task on the server to fully execute the script that is needed to upload the photo.
Try on the site server to increase the script execution timeout and the amount of memory for its execution.
17.08.2020, 19:00
Original comment available on version: ru

Good afternoon,
Andrew,
increased the script time to 600 sec at 12.22 2.5 hours passed, it did not help
18.08.2020, 14:50
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
The bottom line is that when you export a photo from the box to opencart, the image.json file is uploaded to the opencart server
and so, this file is further loaded by cron, which is registered on the server.
If you have registered this cron, but it does not work, then the photos will not load. If you have, for example, 100,000 images in this file, then 2.5 hours is not the time for which it will work.
After you increased the parameters, did the error remain or has it changed?
19.08.2020, 10:17
Original comment available on version: ru

Vadim, I can't log into the admin panel: https://prnt.sc/u514dd
Please clarify a few points.
What exactly did you find when processing the oneboxsync.php file https://prnt.sc/u51ge4?
Have you registered access for the database user from the onebox ip address?
Has the database host changed since the migration? And if so, did you change it in the integration settings?
In general, please check the correctness of the settings following this algorithm: https://prnt.sc/mqxi8n and give feedback. Thank you.
24.08.2020, 18:37
Original comment available on version: ru

Good afternoon,
- What exactly did you find when processing the oneboxsync.php file https://prnt.sc/u51ge4? -
2020-08-16 15:29:08 - PHP Warning: file_get_contents(https://box.lurestore.com.ua/media/export/opencart/product.json): failed to open stream: Connection timed out in /var /www/www-root/data/www/lurestore.ua/catalog/controller/api/oneboxsync.php on line 936
- Have you registered access for the database user from the onebox ip address? - Yes
- Has the database host changed since the migration? And if so, did you change it in the integration settings? - Yes, I changed.
The answer was written informationally, the site was transferred to the old host
26.08.2020, 13:01
Original comment available on version: ru

This warning says that the code does not work on OpenCart:
$a = file_get_contents('https://sale.brille.ua/media/export/opencart/images.json');
print_r($a);
That is, your file_get_contents function returns false, which happens in case of failure. You need to fix the work of this function on opencart and then the images will be transferred.
26.08.2020, 15:05
Original comment available on version: ru

More precisely, this is the code:
$a = file_get_contents('https://box.lurestore.com.ua/media/export/opencart/product.json');
print_r($a);
26.08.2020, 15:06
Original comment available on version: ru

in the php settings in the php.ini file, you need to set allow_url_fopen=1 on the opencart server. In most cases, it solves the problem.
26.08.2020, 18:54
Original comment available on version: ru

in the php settings (php.ini) you need to set allow_url_fopen=1 on the opencart server. This usually solves the problem.
26.08.2020, 18:56
Original comment available on version: ru

in the php settings you need to set allow_url_fopen=1 on the opencart server. This usually solves the problem.
26.08.2020, 18:56
Original comment available on version: ru

Good afternoon,
Vladimir,
Is it necessary to rewrite the core of opencart?
27.08.2020, 09:56
Original comment available on version: ru

Good afternoon, change the opencart kernel code?
27.08.2020, 13:15
Original comment available on version: ru

rewrite opencart core code?
27.08.2020, 16:03
Original comment available on version: ru


It is not enough just to register accesses in the integration. Everything will work, but the photo will not load. Faced such a problem. You need to specify the api profile in the opencart settings + you need to provide access to the opencart database. I got paid support
07.09.2020, 10:03
Original comment available on version: ru

Good afternoon,
Andrew,
Thanks for the answer
12.09.2020, 10:43
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