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

Failed to change the status of an order

Started by Solucionesvigo, September 01, 2020, 02:53:19 AM

Previous topic - Next topic

Solucionesvigo

With Joomla 3.9.21 , PHP  7.2.32 and with virtuemart version 3.8.4 10335 I get an error when trying to change the status of some orders.
Sun Aug 30 20:08:50.604004 2020] [php7:warn] [pid 6369] [client ::1:43724] PHP Warning: strtoupper() expects parameter 1 to be string, object given in /www/Clientes/superoliva/web/libraries/src/Language/Language.php on line 314, referer: http://localhost/Clientes/superoliva/web/administrator/index.php?option=com_virtuemart&view=orders
[Sun Aug 30 20:08:50.604083 2020] [php7:warn] [pid 6369] [client ::1:43724] PHP Warning: strpos() expects parameter 1 to be string, object given in /www/Clientes/superoliva/web/libraries/src/Language/Language.php on line 361, referer: http://localhost/Clientes/superoliva/web/administrator/index.php?option=com_virtuemart&view=orders
[Sun Aug 30 20:08:50.604106 2020] [php7:error] [pid 6369] [client ::1:43724] PHP Recoverable fatal error: Object of class stdClass could not be converted to string in /www/Clientes/superoliva/web/libraries/src/Language/Language.php on line 364, referer: http://localhost/Clientes/superoliva/web/administrator/index.php?option=com_virtuemart&view=orders

I think the problem only arises in orders that have a status created by us. (I'll text it more)

We look for what may be the cause and it is the file administrator / components / com_virtuemart / models / orderstatus.php

Forgive for my english, translated by google

Mas informacion en español: https://ayuda.svigo.es/index.php/programacion/cms/joomla/componentes/virtuemart/262-error-cambio-estado-virtuemart
Passionate about Joomla and Virtuemart

Lengua: Español
Mi ingles es gracias al traductor de Google. :-)

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Solucionesvigo

En servidor local: PHP Version 7.2.32-1+0~20200710.46+debian10~1.gbp625eb5
En servidor produccion: PHp Version 7.2.32
Passionate about Joomla and Virtuemart

Lengua: Español
Mi ingles es gracias al traductor de Google. :-)

jenkinhill

Appears to be language error? 

Object of class stdClass could not be converted to string in /www/Clientes/superoliva/web/libraries/src/Language/Language.php
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Solucionesvigo

Si pero en la version 9831 no falla.
Acabo de hacer un mirror de svn de virtuemart en github , donde hizo una rama para que veas la diferencias.
https://github.com/Ricardolau/mirror_virtuemart/commit/2362f20f915fa18963b3d4f481422f6ae68cde19

Yes, but in version 9831 it does not fail.
I just mirrored virtuemart's svn on github, where it made a branch for you to see the differences.
https://github.com/Ricardolau/mirror_virtuemart/commit/2362f20f915fa18963b3d4f481422f6ae68cde19

Passionate about Joomla and Virtuemart

Lengua: Español
Mi ingles es gracias al traductor de Google. :-)