erro no template

  • reisa
  • Avatar de reisa Autor do Tópico
  • Offline
  • JCB! Novato
  • JCB! Novato
Mais
12 anos 11 meses atrás #81966 por reisa
reisa created the topic: erro no template
Tenho um template feito no artisteer e aparece o seguinte erro:

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\sitemm\templates\templatemm_final\functions.php on line 614

no functions.php on line 614 o código é seguinte:

614 $config =& JFactory::getConfig();
615 $sef = $config->getValue('config.sef');
616 if ($sef)
617 $content = str_replace('background:url(images/', 'background:url(' . JURI::base(true) . '/images/', $content);

não consigo resolver o erro. Podem me ajudar?

A versão do php é 5.3.8 e a versão do Joomla é 2.5.7

Please Entrar ou Registrar to join the conversation.


Mais
12 anos 11 meses atrás #81975 por israelguido
israelguido replied the topic: Re: erro no template
Isso não é um erro, é um strict ou warnning do PHP.

Para ocultar os warnning do php use o seguinte comando no inicio do código do template

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
ou
error_reporting(0);

lembre-se e melhor resolver o problema assim voce só vai ocultar... o problema é esse valor que você esta passando que não existe.

Please Entrar ou Registrar to join the conversation.