Warning: Missing argument 2 for shopFunctionsF::EmailIcon(), called in /home/con

Started by barone, July 16, 2012, 22:01:09 PM

Previous topic - Next topic

barone

Hola Amigos, tengo estos dos errores:
Warning: Missing argument 2 for shopFunctionsF::EmailIcon(), called in /home/content/64/9413964/html/templates/ot_boutiquebox/html/com_virtuemart/productdetails/default.php on line 84 and defined in /home/content/64/9413964/html/components/com_virtuemart/helpers/shopfunctionsf.php on line 490

Warning: Missing argument 3 for shopFunctionsF::EmailIcon(), called in /home/content/64/9413964/html/templates/ot_boutiquebox/html/com_virtuemart/productdetails/default.php on line 84 and defined in /home/content/64/9413964/html/components/com_virtuemart/helpers/shopfunctionsf.php on line 490

Gracias

ivus

function EmailIcon( $virtuemart_product_id, $use_icon,$modal ) {}

requires 3 parameters to be passed to it for it to function correctly. Your error simply states that an expected parameter is missing.

Your 2 errors states:

Warning: Missing argument 2 for shopFunctionsF::EmailIcon(), called in /home/content/64/9413964/html/templates/ot_boutiquebox/html/com_virtuemart/productdetails/default.php on line 84 and defined in /home/content/64/9413964/html/components/com_virtuemart/helpers/shopfunctionsf.php on line 490
   - $use_icon is missing.

Warning: Missing argument 3 for shopFunctionsF::EmailIcon(), called in /home/content/64/9413964/html/templates/ot_boutiquebox/html/com_virtuemart/productdetails/default.php on line 84 and defined in /home/content/64/9413964/html/components/com_virtuemart/helpers/shopfunctionsf.php on line 490
  - $modal is not defined

So to fix this, go to "/home/content/64/9413964/html/templates/ot_boutiquebox/html/com_virtuemart/productdetails/default.php on line 84" and ensure that all parameters are in there.



OR change the function to



   function EmailIcon( $virtuemart_product_id, $use_icon=true, $modal=true ) {}


I hope that helps.


barone

Hice ese cambio y es peor el daño, pues no abre el sitio, actualice a la ultima versión y nada que se arregla el error.
Que podrá ser?

ivus

Hi barone,

have you checked the error.log

¿Ha revisado el error.log

bad translation.. sorry

Abbring

IVUS

Much love for the post, you saved me a few hours of already built up frustrations and now my site works perfectly from changing the function as you indicated.

THANK YOU