VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: danielll on April 14, 2016, 15:45:02 PM

Title: Problem with virtuemart
Post by: danielll on April 14, 2016, 15:45:02 PM
Hello, please Im working on my site reachtraining.eu, and today im trying to set a multilingual page by adding another language to my site.. Before virtuemart went well, no problems. But today when I click on virtuemart in administrator, it gives me this:

1146 Table 'ee016700db.#__virtuemart_products_en_gb' doesn't exist SQL=SELECT SQL_CALC_FOUND_ROWS p.`virtuemart_product_id` FROM `#__virtuemart_products` as p INNER JOIN `#__virtuemart_products_en_gb` as l using (`virtuemart_product_id`) LEFT JOIN `#__virtuemart_product_categories` as pc ON p.`virtuemart_product_id` = `pc`.`virtuemart_product_id` WHERE ( p.`virtuemart_vendor_id` = "1" ) group by p.`virtuemart_product_id` ORDER BY `pc`.`ordering` DESC, `virtuemart_product_id` DESC LIMIT 0, 30

Also the same when I click on "webshop" in my site online at reachtraining.eu...
I dont know what I did wrong and what should I do right now, can u please help me with that? :/

THANKS A LOT FOR HELP!!


Title: Re: Problem with virtuemart
Post by: GJC Web Design on April 14, 2016, 17:01:39 PM
#__virtuemart_products_en_gb' doesn't exist

have u deleted the eng language from VM?
Title: Re: Problem with virtuemart
Post by: danielll on April 14, 2016, 17:25:57 PM
Hello, thanks for reply,
No I have not, I just added language to joomla, but not deleting anything, and I was not doing anything to VM for sure :/.

Title: Re: Problem with virtuemart
Post by: danielll on April 14, 2016, 17:28:02 PM
here are screenshots :
https://gyazo.com/faf32c3ec2d2f048ca5279dbd16b99fb
https://gyazo.com/8cad4aa3187658f56710bf5577d09913
Title: Re: Problem with virtuemart
Post by: GJC Web Design on April 14, 2016, 23:40:01 PM
config looks fine to me

is #__virtuemart_products_en_gb really not there?

If not try making it
Title: Re: Problem with virtuemart
Post by: danielll on April 18, 2016, 14:22:28 PM
It seems like it has a problem with en language, but im not sure why because in VM configurations it seems like EN is there (I was not adding any language to VM) :/... This is my first time working with VM, so I dont really know what to do, when I click in administrator/VM on almost everything, it gives error such as - 1146 Table 'ee016700db.#__virtuemart_categories_en_gb' doesn't exist SQL=SELECT etc...
so what should I do please?  , how can I make #__virtuemart_products_en_gb?

Thanks for answers! really appriciate your help!!
Title: Re: Problem with virtuemart
Post by: danielll on April 18, 2016, 14:27:12 PM
Error: 1146 - Table 'ee016700db.#__virtuemart_manufacturers_en_gb' doesn't exist SQL=SELECT
Title: Re: Problem with virtuemart
Post by: GJC Web Design on April 18, 2016, 23:22:15 PM
it is fairly obvious your en lang tables aren't there

I have asked u to check...

if not remake them

just re-install VM again should do it...  back up first
Title: Re: Problem with virtuemart
Post by: Ghost on April 19, 2016, 08:29:00 AM
Do you have en-GB content language setup properly (not just the language pack)?
Title: Re: Problem with virtuemart
Post by: danielll on April 22, 2016, 10:48:33 AM
I reinstalled it, and it works well right now, thanks guys!.. I just have another problem, when I started to rebuild the virtuemart webshop, I found out that when I go to my website, there are still the old products from old virtuemart, and when in administrator, there are not appearing... what should I do to completely delete those old products when I dont see them in my administrator?

thanks a lot for help!
Title: Re: Problem with virtuemart
Post by: GJC Web Design on April 22, 2016, 15:17:56 PM
probably don't have translations

just remove them directly from the DB
Title: Re: Problem with virtuemart
Post by: 2dmaster on June 01, 2016, 14:06:57 PM
need delete all languages, save, set english and save, next tables created
Title: Re: Problem with virtuemart
Post by: Milbo on June 01, 2016, 21:40:51 PM
Quote from: GJC Web Design on April 18, 2016, 23:22:15 PM
just re-install VM again should do it...  back up first

Storing the config ususally recreates the tables, if not existing. Or using the table updater in the tools and btw, we have a manual and FAQ about that topic http://docs.virtuemart.net/manual/general-concepts/214-multilanguage-and-multlingual.html
http://docs.virtuemart.net/faqs/38-troubleshooting/113-products-vanished.html
Title: Re: Problem with virtuemart
Post by: Milbo on June 02, 2016, 22:35:34 PM
I think I found the reason, that tables are not created.
file /administrator/components/com_virtuemart/models/config.php (or just the config model)

replace around line 479

$d = array_diff($oldLangs,$active_langs);


with

$d = array_diff($active_langs,$oldLangs);
Title: Re: Problem with virtuemart
Post by: ptrouw on June 22, 2016, 14:00:16 PM
Indeed, just added a new languages. Works fine now.