Jump to content
Sign in to follow this  
Dayan

Ошибка после выполнения скрипта

Recommended Posts

Здравствуйте, пытался поставить Seo Pro на OpenCart 1.5.5.1 по этой инструкции http://opencartforum...8%D1%86-seopro/ и видимо после выполнения вот такого скрипта в PhpMyAdmin ALTER TABLE `product_to_category` ADD `main_category` tinyint(1) NOT NULL DEFAULT '0'; возможно не из за него, я новичок так что сильно не ругайте, ошибка появляется при изменении старого товара.

Notice: Error: Unknown column 'main_category' in 'where clause'

Error No: 1054

SELECT category_id FROM oc_product_to_category WHERE product_id = '42' AND main_category = '1' LIMIT 1 in /var/www/****/data/www/****/system/database/mysql.php on line 50

Версия Opencart 1.5.5.1

Share this post


Link to post
Share on other sites

Все манипуляции которые сделал, но в большинстве случаев не находил такие таблицы:

INSERT INTO oc_url_alias (query, keyword) VALUES ('common/home', '');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/wishlist', 'wishlist');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/account', 'my-account');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('checkout/cart', 'shopping-cart');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('checkout/checkout', 'checkout');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/login', 'login');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/logout', 'logout');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/order', 'order-history');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/newsletter', 'newsletter');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('product/special', 'specials');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/account', 'affiliates');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('checkout/voucher', 'gift-vouchers');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('product/manufacturer', 'brands');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('information/contact', 'contact-us');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/return/insert', 'request-return');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('information/sitemap', 'sitemap');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/forgotten', 'forgot-password');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/download', 'downloads');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/return', 'returns');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/transaction', 'transactions');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/register', 'create-account');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('product/compare', 'compare-products');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('product/search', 'search');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/edit', 'edit-account');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/password', 'change-password');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/address', 'address-book');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('account/reward', 'reward-points');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/edit', 'edit-affiliate-account');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/password', 'change-affiliate-password');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/payment', 'affiliate-payment-options');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/tracking', 'affiliate-tracking-code');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/transaction', 'affiliate-transactions');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/logout', 'affiliate-logout');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/forgotten', 'affiliate-forgot-password');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/register', 'create-affiliate-account');
			INSERT INTO oc_url_alias (query, keyword) VALUES ('affiliate/login', 'affiliate-login');

INSERT INTO `yzw_url_alias`(query,keyword) VALUES ('account/register','register.html'),('common/home','home.html'),('account/login','login.html');

Share this post


Link to post
Share on other sites

Решил тем что заменил index.php в admin папке на стоковый. Видимо в какомто модуле заменил этот файл, буду теперь аккуратнее с модулями и делать бэкапы.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

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.