News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Can't process workflow, contact the shopowner. Status is P

Started by joaobraga, February 05, 2015, 16:19:23 PM

Previous topic - Next topic

joaobraga

I am using the Latest Virtuemart 3.0.4 and Joomla 3.3.6.  My site is http://coronel.sopravista.pt
I keep getting this error when I Confirm order. Is not sent the email to the shop owner and customer.

But in the order backoffice appears recorded and when I change the status of the order, the customer is notified. The owner shop does not receive the email.

Versão PHP    5.3.28

GJC Web Design

comes from this

function handleStockAfterStatusChangedPerProduct($newState, $oldState,$tableOrderItems, $quantity) {

      if($newState == $oldState) return;
      // $StatutWhiteList = array('P','C','X','R','S','N');
      $db = JFactory::getDBO();
      $db->setQuery('SELECT * FROM `#__virtuemart_orderstates` ');
      $StatutWhiteList = $db->loadAssocList('order_status_code');
      // new product is statut N
      $StatutWhiteList['N'] = Array ( 'order_status_id' => 0 , 'order_status_code' => 'N' , 'order_stock_handle' => 'A');
      if(!array_key_exists($oldState,$StatutWhiteList) or !array_key_exists($newState,$StatutWhiteList)) {
         vmError('The workflow for '.$newState.' or  '.$oldState.' is unknown, take a look on model/orders function handleStockAfterStatusChanged','Can\'t process workflow, contact the shopowner. Status is '.$newState);
         return ;
      }

looks like either a state your trying to change to or from doesn't exist
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

joaobraga

Yes, but i still Is not sent the email to the shop owner and customer.

Any solutions ;-)

GJC Web Design

I repeat!

looks like either a state your trying to change to or from doesn't exist -- do they?????
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation