Why i have PubSub error error when configure new node

open 2 [http://jabber.org/protocol/pubsub#node_config](http://jabber.org/protocol/pubsub#node_config) open 2 [http://jabber.org/protocol/pubsub#node_config](http://jabber.org/protocol/pubsub#node_config)

What i doing wrong? I use the last version Openfire.

Does the node already exist?

1 Like

Yes it is. Thanks.

So the next problem I can’t add to a node max_items > 1. I have no error, but max_items attribute forced to be equals 1.

Here code:

  1. I created node using the code below with max_items = 2. It is success.
open **** ** 2** ** ** [http://jabber.org/protocol/pubsub#node_config](http://jabber.org/protocol/pubsub#node_config)
  1. Then i check for max_items attribute using this code and i see max_items = 1.

<iq type=‘get’

from=‘admin@example.ru’

to=‘pubsub.example.ru

id=‘config1’>

Узловая конфигурация

Пожалуйста обеспечьте конфигурацию для узла “GeoData”.

http://jabber.org/protocol/pubsub#node_config

1

0

1

1

1

1

0

authorize

open

presence

roster

whitelist

open

publishers

subscribers

open

open

English

admin@example.ru

owner

1

0

1

5120

Why it forced to be 1? How i can set max_items?

P.S. Sorry for russian localization in iq querries.

You have to set the field persist_items to 1 (true). The max_items can only be set if the node is persistent.

Thanks! Now it works fine.