VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: joaobraga on February 05, 2015, 16:19:23 PM

Title: Can't process workflow, contact the shopowner. Status is P
Post by: joaobraga on February 05, 2015, 16:19:23 PM
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
Title: Re: Can't process workflow, contact the shopowner. Status is P
Post by: GJC Web Design on February 05, 2015, 18:18:05 PM
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
Title: Re: Can't process workflow, contact the shopowner. Status is P
Post by: joaobraga on February 06, 2015, 18:12:28 PM
Yes, but i still Is not sent the email to the shop owner and customer.

Any solutions ;-)
Title: Re: Can't process workflow, contact the shopowner. Status is P
Post by: GJC Web Design on February 06, 2015, 18:15:54 PM
I repeat!

looks like either a state your trying to change to or from doesn't exist -- do they?????