Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Ошибка 500 - fatal error


Recommended Posts

Ребяи помогите решить ребус.

Перенес сайт (OpenCart 3.0.3.6 rus) на хостинг с локалки (МАМP). Импортировал БД + исправил пути в config.php (в 2х файлах). В обещём все по инструкции, ничего военного. В Админку попадаю, а когда хочу перейти на сайт получаю ошибку 500, а именно: 

 

Fatal error: Uncaught Exception: Error: Table 'zebra_dwnhill.ocdh_translation' doesn't exist<br />Error No: 1146<br />SELECT * FROM ocdh_translation WHERE store_id = '0' AND language_id = '0' AND (route = 'engb' OR route = '') in /home/zebra/downhill.zebra.com/system/library/db/mysqli.php:40 Stack trace: #0 /home/zebra/downhill.zebra.com/system/library/db.php(45): DB\MySQLi->query('SELECT * FROM o...') #1 /home/zebra/downhill.zebra.com/catalog/model/design/translation.php(6): DB->query('SELECT * FROM o...') #2 /home/zebra/ocartdata/storage/modification/system/engine/loader.php(248): ModelDesignTranslation->getTranslations('engb') #3 /home/zebra/downhill.zebra.com/system/engine/proxy.php(47): Loader->{closure}(Array, Array) #4 /home/zebra/downhill.zebra.com/catalog/controller/event/translation.php(6): Proxy->__call('getTranslations', Array) #5 /home/zebra/ocartdata/storage/modification/system/engine/action.php(79): ControllerEventTranslation->index('engb', '', Array) #6 /home/zebra/downhill.zebra.co in /home/zebra/downhill.zebra.com/system/library/db/mysqli.php on line 40

 

Как можно это исправить?

Link to comment
Share on other sites


Интересно, в БД есть только похожий 

oc_dwhltranslation

 

 

да и все иблицы в БД (на хостинге и на локалке) имеют префикс oc_dwhl...

А префикс ocdh_??? (вспомнил) я сивил в Админке Хостинга при усиновке новой OpenCart (авторежим CMS).  

После усиновки я заменил архив и в уже усиновленную БД импортировал мои данные.

 

Возможно в этом вся прилина? Тогда как теперьь решить эту проблему?

Link to comment
Share on other sites


Да нашел решения - может кому-то пригодится!!!)))

Вся проблема была зарыи в префиксе БД.

Да что внимательно к последней строчке config.php - define('DB_PREFIX', '...');

... - префикс БД

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.