ich habe mal versucht den Jax Kalender in Contenido 4.8.11 (jax_calendar21) einzubauen aber es hagelt nur noch Fehlermeldungen
Code: Alles auswählen
Notice: Undefined variable: con_cal_number in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 74
Notice: Undefined index: in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 91
Notice: Trying to get property of non-object in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 91
Notice: Undefined index: in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 92
Notice: Trying to get property of non-object in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 92
Notice: Undefined index: in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 93
Notice: Trying to get property of non-object in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 93
Notice: Undefined index: in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 94
Notice: Trying to get property of non-object in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 94
Notice: Undefined index: in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 95
Notice: Trying to get property of non-object in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 95
Notice: Undefined index: in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 96
Notice: Trying to get property of non-object in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 96
Notice: Undefined index: in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 97
Notice: Trying to get property of non-object in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 97
Notice: Undefined index: in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 98
Notice: Trying to get property of non-object in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 98
Notice: Undefined index: in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 99
Notice: Trying to get property of non-object in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/globals.inc2.php on line 99
Notice: Undefined variable: calendar_list in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/calendar.inc.php on line 24
Fatal error: Call to a member function get_entry() on a non-object in /www/htdocs/w00b289c/woman2men.com/contenido/plugins/calendar/calendar.inc.php on line 24
Code: Alles auswählen
$calendar_list->get_entry(0,$red_data);
und hier ist mal ein größerer Ausschnitt :
Code: Alles auswählen
error_reporting(E_ALL);
$booked_events = array();
for ( $i=1;$i<=31;$i++ )
{
$booked_events[$i] = 0;
}
if ($cal_show_reserved)
{
$red_data = array();
$calendar_list->get_entry(0,$red_data);
do {
if ( (gmdate( "m", $red_data["event_start"] ) == $cal_month) &&
(gmdate( "Y", $red_data["event_start"] ) == $cal_year))
{
$xday = gmdate( "j", $red_data["event_start"] );
$booked_events[ $xday ]++;
}
$calendar_list->get_next_entry( $red_data );
} while (!$calendar_list->eol());
}
Hier ist noch die Funktion dazu:
Code: Alles auswählen
function get_entry( $pos, &$rows )
// Task: returns an entry from the table
//
// Input: $pos = number of the line from where to fetch the data
//
// Output: $rows = array containing the entries
{
$this->open( "r");
$this->get_captions();
$query = "SELECT * FROM " . $this->name . " ORDER BY 'event_start' ASC";
$this->tab_list = mysql_query( $query, $this->handle );
$this->list_max_pos = mysql_num_rows( $this->tab_list );
if ($pos < $this->list_max_pos)
{
mysql_data_seek( $this->tab_list, $pos );
$rows = mysql_fetch_array( $this->tab_list, MYSQL_ASSOC );
$this->list_next_pos = $pos + 1;
}
else $this->eol = true;
}
function get_next_entry( &$rows )
// Task: returns the next entry from the table
//
// Output: $rows = array containing the entries
{
if ($this->list_next_pos < $this->list_max_pos)
{
mysql_data_seek( $this->tab_list, $this->list_next_pos );
$rows = mysql_fetch_array( $this->tab_list, MYSQL_ASSOC );
$this->list_next_pos++;
}
else $this->eol = true;
}
Meine Server Umgebung ist :
PHP Version 5.2.9-1nmm1
MYSQL : 5.0.51a
Ich werde aus "Fatal error: Call to a member function get_entry() on a non-object in" nicht schlau keine Ahnung was die Meldung bedeutet ?!
Falls Ihr Tips habt schreibt es bitte so das ich als PHP Anfänger auch was davon verstehe vielen Dank
Es wäre toll wenn ich doch noch einen lauffähigen Kalender haben könnte ... was mich wundert ist das es bei anderen auch mit der Version 4.8.8 funktioniert aber vieleicht ist dort die Serverumgebung auch anders.
Gruß
Steffen