• Resolved polushinmk

    (@polushinmk)


    Seems, that field owner_id should be a number, not string
    Array
    (
    [pgID] =>
    [isPosted] => 0
    [pDate] => 2019-02-14 20:02:26
    [Error] => Error: Array
    (
    [headers] => Array
    (
    [server] => Internet Information Services
    [date] => Thu, 14 Feb 2019 20:02:27 GMT
    [content-type] => application/json; charset=utf-8
    [content-length] => 282
    [connection] => keep-alive
    [x-powered-by] => PHP/3.18237
    [cache-control] => no-store
    [content-encoding] => gzip
    )

    [body] => {“error”:{“error_code”:100,”error_msg”:”One of the parameters specified was missing or invalid: owner_id not integer”,”request_params”:[{“key”:”oauth”,”value”:”1″},{“key”:”method”,”value”:”wall.post”},{“key”:”v”,”value”:”5.71″},{“key”:”owner_id”,”value”:”-\”9535468\””},{“key”:”from_group”,”value”:”1″},{“key”:”message”,”value”:”Test Post from Р?Р?Р?Р?РР?Р?Р?\r\nhttps:\/\/maximum-kirov.ru”},{“key”:”attachments”,”value”:”https:\/\/maximum-kirov.ru”}]}}
    [response] => Array
    (
    [code] => 200
    [message] => OK
    )

    [cookies] => Array
    (
    )

    )

    )
    Array ( [pgID] => [isPosted] => 0 [pDate] => 2019-02-14 20:02:26 [Error] => Error: Array ( [headers] => Array ( [server] => Internet Information Services [date] => Thu, 14 Feb 2019 20:02:27 GMT [content-type] => application/json; charset=utf-8 [content-length] => 282 [connection] => keep-alive [x-powered-by] => PHP/3.18237 [cache-control] => no-store [content-encoding] => gzip ) [body] => {"error":{"error_code":100,"error_msg":"One of the parameters specified was missing or invalid: owner_id not integer","request_params":[{"key":"oauth","value":"1"},{"key":"method","value":"wall.post"},{"key":"v","value":"5.71"},{"key":"owner_id","value":"-\"9535468\""},{"key":"from_group","value":"1"},{"key":"message","value":"Test Post from Р?Р?Р?Р?РР?Р?Р?\r\nhttps:\/\/maximum-kirov.ru"},{"key":"attachments","value":"https:\/\/maximum-kirov.ru"}]}} [response] => Array ( [code] => 200 [message] => OK ) [cookies] => Array ( ) ) )

Viewing 5 replies - 1 through 5 (of 5 total)
  • ir3k

    (@ir3k)

    Please check the VK.Com URL field in the VK account settings (in SNAP).
    An error from the log “One of the parameters specified was missing or invalid: owner_id not integer” means that the receiver is incorrect.

    Please enter the name of the group in the settings using letters.

    Thread Starter polushinmk

    (@polushinmk)

    I deleted account from SNAP and add it again – the same error.
    VK group URL https://vk.com/maximum.kirov
    problem is here:

    “key”:”owner_id”,”value”:”-\”9535468\””

    owner_id is right, but it is string, but should be integer

    Thread Starter polushinmk

    (@polushinmk)

    I tried to change line 57 in vk.api.php file from
    'owner_id'=>$options['pgIntID'],
    to
    'owner_id'=>str_replace('"','',$options['pgIntID']),
    and now all works fine.

    I think that there isn`t good solution, but it proofs that owner_id should be integer, not string and ” symbols should be removed

    Plugin Author NextScripts

    (@nextscripts)

    We will fix this in the next release.

    I have problem with VK crossposting

    | WHERE (flt = “snap” OR (flt = “cron” AND (type = “E” OR type=”W”))) |
    [2019-04-25 05:58:36] [User ID:3] – [Error] [VK.Com – VK.Com #0] – -=ERROR=- Array ( [pgID] => [isPosted] => 0 [pDate] => 2019-04-25 02:58:36 [Error] => Error: Array ( [headers] => Array ( [server] => Internet Information Services [date] => Thu, 25 Apr 2019 02:58:36 GMT [content-type] => application/json; charset=utf-8 [content-length] => 292 [connection] => keep-alive [x-powered-by] => PHP/3.19076 [cache-control] => no-store [content-encoding] => gzip ) [body] => {“error”:{“error_code”:15,”error_msg”:”Access denied: no access to call this method”,”request_params”:[{“key”:”oauth”,”value”:”1″},{“key”:”method”,”value”:”wall.post”},{“key”:”v”,”value”:”5.71″},{“key”:”owner_id”,”value”:”-181577422″},{“key”:”from_group”,”value”:”1″},{“key”:”message”,”value”:”Test Post from Р?С?С?Р?Р?Р?С?С?С? С?С?С?Р°Р? Р?РёС?Р°\r\nhttps:\/\/aeroviza.ru”},{“key”:”attachments”,”value”:”https:\/\/aeroviza.ru”}]}} [response] => Array ( [code] => 200 [message] => OK ) [cookies] => Array ( ) ) ) 0

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error posting to vk.com’ is closed to new replies.