Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Warning: [function.array-merge]: Argument #1 is not an array
mapiq
post 18.04.2008, 11:42:26
Post #1





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 26.06.2007

Ostrzeżenie: (10%)
X----


Witam,
czy ktoś potrafiłby mi pomóc ...dlaczego się to sypie?

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /admin/includes/classes/xml_parser.php on line 201

|
|
V

//xml_parser.php
..
200 if ($this->text_node)
201 $this->estra[$this->index] = array_merge($this->estra[$this->index], array($this->node_name => $data));
202 $this->text_node = false;
..

Czy to coś nie tak z php4 / php5?
Go to the top of the page
+Quote Post
mike
post 18.04.2008, 11:46:31
Post #2





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

Ostrzeżenie: (0%)
-----


A czytałeś dokumentację? Wątpię.
array_merge()
Masz tam jak byk napisane:
Cytat
Ostrzeżenie

Zachowanie array_merge() zostało zmienione w PHP 5. Inaczej niż w PHP 4, array_merge() akceptuje teraz tylko parametry typu array. Jednakże można użyć rzutowania typów aby łączyć zmienne innych typów.
Go to the top of the page
+Quote Post
mapiq
post 18.04.2008, 13:32:32
Post #3





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 26.06.2007

Ostrzeżenie: (10%)
X----


fenks majk wstydnis.gif
nie czytalem :]

dziekuje guitar.gif

ehh kombinuje jak koń pod górę i nie idzie mi tego przerobić na php5 - ciągle to inny błąd mi wylatuje :/


if ($this->text_node) $this->estra[$this->index] = array_merge($this->estra[$this->index], array($this->node_name => $data));

plizzz help


ehh kombinuje jak koń pod górę i nie idzie mi tego przerobić na php5 - ciągle to inny błąd mi wylatuje :/


if ($this->text_node) $this->estra[$this->index] = array_merge($this->estra[$this->index], array($this->node_name => $data));

plizzz help
Go to the top of the page
+Quote Post
Crozin
post 18.04.2008, 14:29:25
Post #4





Grupa: Zarejestrowani
Postów: 6 476
Pomógł: 1306
Dołączył: 6.08.2006
Skąd: Kraków

Ostrzeżenie: (0%)
-----


  1. <?php
  2. ... array_merge((array) $this->estra[$this->index], array($this->node_name => $data));
  3. ?>
Go to the top of the page
+Quote Post
mapiq
post 23.04.2008, 09:24:39
Post #5





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 26.06.2007

Ostrzeżenie: (10%)
X----


dziękuje - wszystko gra i burczy smile.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 6.07.2025 - 23:59