Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Warning: [function.array-merge]: Argument #1 is not an array
mapiq
post
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
 
Start new topic
Odpowiedzi (1 - 4)
mike
post
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
Post #3





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

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


fenks majk (IMG:http://forum.php.pl/style_emoticons/default/wstydnis.gif)
nie czytalem :]

dziekuje (IMG:http://forum.php.pl/style_emoticons/default/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
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
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 (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 24.08.2025 - 01:28