Back to top

Autore Topic: Problema con Featured Events Mode  (Letto 1060 volte)

Offline FMarinoni

  • Nuovo arrivato
  • *
  • Post: 24
    • Mostra profilo
Problema con Featured Events Mode
« il: 16 Dic 2008, 18:33:45 »
Ho scaricato questo modulo da questo sito.

L'ho provato, ma da un problema... appare questo errore:

"Warning: Invalid argument supplied for foreach() in /var/www/virtual/ti-musica.net/htdocs/modules/mod_featured_events/helper.php on line 22"


nella linea 22 del file helper.php c'e' scritto "foreach($events as $event)"


qcuno puo' aiutarmi pf? grazieeeee

Offline keyboardcowboy

  • Nuovo arrivato
  • *
  • Post: 1
    • Mostra profilo
Re: Problema con Featured Events Mode
« Risposta #1 il: 04 Gen 2009, 16:11:08 »
you will get this error if the table prefix of you're database is not jos_
in line 14 this is hardcoded

$query = "SELECT id, title FROM jos_eventlist_events where id IN(".$featured_events.") and published = 1";

replace by this

$query = "SELECT id, title FROM #__eventlist_events where id IN(".$featured_events.") and published = 1";

and the module will work for every prefix

sorry for english

 



Web Design Bolzano Kreatif