ClankBundle icon indicating copy to clipboard operation
ClankBundle copied to clipboard

Illegal string offset 'name'

Open ansnap opened this issue 11 years ago • 6 comments

Hello. I've just installed the bundle with provided instructions and I have an error:

"Warning: Illegal string offset 'name' in \vendor\jdare\clank-bundle\JDare\ClankBundle\Server\App\Handler\TopicHandler.php on line 97"

How can I fix this? Is this bundle currently working?

ansnap avatar Feb 11 '14 16:02 ansnap

Any idea about how to fix this error?

I'm getting the exactly same error following the guide.

Merk87 avatar Sep 22 '14 10:09 Merk87

It's due to your configuration. The example configuration is wrong.

You need to do something like that :

...
topic:
    - { name: topic_name, service:my_topic_service }

EDIT: After looking more closer, the doc is right, look under topic, see -

    topic:
        -
            name: "acme" #Important! this is the topic namespace used to match to this service!
            service: "acme_hello.topic_sample_service" #The service id.

jjsaunier avatar Oct 30 '14 22:10 jjsaunier

Same error, i follow the exemple...

bourvill avatar Dec 08 '14 17:12 bourvill

I don't remember exactly how I fixed it, but with this config, is working:

clank:
    session_handler:   ~
    web_socket_server:
        port: "%clank_port%"        #The port the socket server will listen on
        host: "%clank_host%"   #(optional) The host ip to bind to
    rpc:
        -
            name: "conversation_service" #Important! this is the network namespace used to match calls to this service!
            service: "acme_message.rpc_chat_service" #The service id.
    topic:
        -
            name: "conversation_topic" #Important! this is the network namespace used to match calls to this service!
            service: "acme_message.rpc_topic_service" #The service id. ```

Merk87 avatar Dec 08 '14 17:12 Merk87

oh god, i haven't copied the "-" for topic.

Strange writing, but it work, sorry

bourvill avatar Dec 08 '14 17:12 bourvill

@bourvill I thought that was my error too!

Merk87 avatar Dec 08 '14 17:12 Merk87