PDA

Zobacz pełną wersję : Problem z mkpostman



szczypior88
21-09-2008, 22:51
Witajcie,
podczas dodawania nowego prenumeratora wywala mi błąd:

Fatal error: Cannot access empty property in /home/cwp/public_html/includes/database.php on line 867
Powoduje to dodanie usera, ale bez przypisania do grupy. Jak mogę to naprawić?

artmajster
11-01-2009, 19:34
odświeżam nico temat i dołączam się do pytania

Joomla! 1.0.15 + MkPostman Component Version 1.5 (http://www.das-medienkombinat.de/)

problem polega na tym iż nie da się nikogo zapisać do grup
wyskakuje błąd

Fatal error: Cannot access empty property in /includes/database.php on line 867 w obrębie tego miejsca jest


function store( $updateNulls=false ) {
$k = $this->_tbl_key;

if ($this->$k != 0) {
$ret = $this->_db->updateObject($this->_tbl, $this, $this->_tbl_key, $updateNulls);
} else {
$ret = $this->_db->insertObject($this->_tbl, $this, $this->_tbl_key);
}dokładnie
if ($this->$k != 0) {co można na to poradzić ?

czy winny może być Brak zdefiniowanego indeksu! w tabeli jos_mkpostman_subscriber_group (http://sql.elk.home.pl/sql/tbl_properties_structure.php?db=jacwing4&table=jos_mkpostman_subscriber_group&token=65c98435fd0ba0046142955a6fb93e3f) ?

EDIT:
trochę szukam i już wiem że jak się usunie dolara z przed k

if ($this->k != 0) { to dostanie się to

mosmkpostmansubscribers::store failed <br />Duplicate entry '1' for key 1 SQL=INSERT INTO jos_mkpostman_subscribers ( `subscriber_id`,`subscriber_name`,`subscriber_emai l`,`confirmed`,`newsletter_type`,`subscribe_date` ) VALUES ( '1','Artur','artmajster@gmail.com','1','1','2009-01-11 21:38:43' )