VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Funtshirts on April 01, 2016, 22:24:35 PM

Title: Virtuemart error 1146
Post by: Funtshirts on April 01, 2016, 22:24:35 PM
Hello all,

I have a question about an error. Im trying implement Ideal ( a popular Dutch payment method), with an extension called ccideal, but when i go to test it i get the errors shown in the added screenshots.
I really hope someone here knows what causes this problem and can tell me how i can fix it.
After looking on the interwebs I've found some things, but nothing seems to work.

Im using
Joomla 3.5.0
Virtuemart 3.0.14
PHP 5.6.19

I really hope someone can help me out.
Title: Re: Virtuemart error 1146
Post by: GJC Web Design on April 01, 2016, 23:37:16 PM
the problem is what ever is calling this query ( I assume cc ideal thing) isn't "discovering" the site language

the failure is #__virtuemart_products_   it should be in your case  #__virtuemart_products_ nl_nl 

If your sure you have setup the sites languages correctly and everything else is working then ask chilli
Title: Re: Virtuemart error 1146
Post by: Funtshirts on April 01, 2016, 23:46:37 PM
Hey thanks for your reply.

I checked those database tables. Of all the needed version i have both the en-En and the nl-NL versions.

And so far chill creations don't reply..
Title: Re: Virtuemart error 1146
Post by: GJC Web Design on April 02, 2016, 00:02:41 AM
so the problem is -- if the query comes from the chilli thing - is that the lang detection is failing in their extension
Title: Re: Virtuemart error 1146
Post by: Funtshirts on April 03, 2016, 17:37:34 PM
They say it probably not related to their extension :(
And atm very slow at responding.

I think there is somewhere something wrong with the language but i cant figure out what.
Would you mind taking a look for me if i give you admin login info?

Title: Re: Virtuemart error 1146
Post by: GJC Web Design on April 03, 2016, 20:38:32 PM
you can email me...
Title: Re: Virtuemart error 1146
Post by: Funtshirts on April 03, 2016, 21:57:19 PM
Mail send.
Title: Re: Virtuemart error 1146
Post by: Funtshirts on June 24, 2016, 17:02:09 PM
For anyone who finds this post and wants to know:

for me i had this type of prob 2 times. First time solution was turn off dynamic cache (duhh)

For me this time this was the fix:

For anyone who wants to know, this can be fixed by adding VmConfig::loadConfig(); at line 21 of the file /modules/mod_virtuemart_ajax_cart.php:


defined('_JEXEC') or die('Direct Access to ' . basename(__FILE__) . ' is not allowed.');
if(!class_exists('plgSystemVirtuemart_ajax_cart')){
echo '<p style=" background: #bcdebc; padding:5px;"><b>'.JText::_('WARNING_NOT_INSTALL_PLUGIN').'</b></p>';
return ;
}
if (!class_exists('VmConfig'))
    require(JPATH_ADMINISTRATOR . "/" . 'components' . "/" . 'com_virtuemart' . "/" . 'helpers' . "/" . 'config.php');

VmConfig::loadConfig(); <-------THIS LITTLE PIECE OF CODE

if (!class_exists('VirtueMartCart'))
    require(JPATH_VM_SITE . DS . 'helpers' . DS . 'cart.php');


Credits go to the sh404sef support
Title: Re: Virtuemart error 1146
Post by: GJC Web Design on June 25, 2016, 01:53:33 AM
note:  mod_virtuemart_ajax_cart.php is not part of a standard VM install...