Resposta do Suporte Open Cart:
Tentei isso vairas vezes, mas curiosamente o banco de dados(PHPMyadmin) continuava voltado as api´s para id 0, mas aparentemente apos configurar o banco novamente, ele funcionou:
Na primeira tentativa, voltava apenas a primeira linha do erro acima:
1. In Opencart Admin, go to Settings >> API and create a new user.
2. In cPanel navigate to phpMyAdmin and then select your database where your store is installed.
3. Find table oc_setting and then find key "config_api_id".
4. Set the value field to 1 where key = config_ap_id (it was set to 0 on my system).
5. Next go to table oc_api and check that api_id = 1
Na segunda tentativa, o erro mudou e começou a aparecer apenas: syntaxError: unexpected end of input e o botão de OK
As dicas abaixo dadas pelo Raymond, não foram testadas, pois ao voltar ao PHPMyadmin, notei que o usuário estava agora com ID 3( acredito que por ter sido a terceira tentativa de criar o API, então coloquei id 0 e agora ta tudo funcionando. Estas dicas abaixo, não foram testadas fica por conta e risco de quem quiser testar.
Hi Alex,
Your problem may be caused by:
1) Your site is Maintenance Mode. Please try disable it in In Opencart Admin, go to System >> Settings >> Edit >> Server tab >> Maintenance Mode: NO
2) Your language(new language) was error. Please try re-install the English language.
3) API user: In Opencart Admin, go to System >> Settings >> Users >> API and create a new user then go to System >> Settings >> Edit >> Option tab >> API User >> choose new API
4) Your hosting did disable the 443 port. Please try edit the file: admin/config.php
find the code:
define('HTTPS_CATALOG', '
https://yoursite.com/');
change to:
define('HTTPS_CATALOG', '
http://yoursite.com/');
change "https" to "http"
5) enable loopback in your hosting
If all of the above method still cannot work in a new opencart, i guess it is probably some wrong server setting in your hosting but i have no idea what is it...
Best Regards,
Raymond