VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: barone on July 16, 2012, 22:01:09 PM

Title: Warning: Missing argument 2 for shopFunctionsF::EmailIcon(), called in /home/con
Post by: barone on July 16, 2012, 22:01:09 PM
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
Title: Re: Warning: Missing argument 2 for shopFunctionsF::EmailIcon(), called in /home/con
Post by: ivus on July 18, 2012, 07:47:36 AM
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.

Title: Re: Warning: Missing argument 2 for shopFunctionsF::EmailIcon(), called in /home/con
Post by: barone on July 25, 2012, 02:05:34 AM
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?
Title: Re: Warning: Missing argument 2 for shopFunctionsF::EmailIcon(), called in /home/con
Post by: ivus on July 25, 2012, 02:12:55 AM
Hi barone,

have you checked the error.log

¿Ha revisado el error.log

bad translation.. sorry
Title: Re: Warning: Missing argument 2 for shopFunctionsF::EmailIcon(), called in /home/con
Post by: Abbring on November 27, 2012, 21:56:28 PM
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