• Resolved Nephalem

    (@nephalem)


    Autoposting to VK.com has stopped working today. Re-authorization doesn’t help anymore. I have even tried to remove the account from SNAP and re-created a new one. No luck. Since now all attempts to post to VK.com end up with this error:

    Array ( [pgID] => [isPosted] => 0 [pDate] => 2018-03-01 18:10:35 [Error] => -=IMG ERROR=- Error: Array ( [headers] => Array ( [server] => Apache [date] => Thu, 01 Mar 2018 18:10:36 GMT [content-type] => application/json; charset=utf-8 [content-length] => 476 [connection] => keep-alive [x-powered-by] => PHP/3.14758 [set-cookie] => remixlang=3; expires=Thu, 28 Feb 2019 05:52:44 GMT; path=/; domain=.vk.com [pragma] => no-cache [cache-control] => no-store [content-encoding] => gzip ) [body] => {“error”:{“error_code”:8,”error_msg”:”Invalid request: v (version) is required”,”request_params”:[{“key”:”oauth”,”value”:”1″},{“key”:”method”,”value”:”wall.post”},{“key”:”from_group”,”value”:”1″},{“key”:”message”,”value”:”Test post”},{“key”:”attachment”,”value”:””}]}} [response] => Array ( [code] => 200 [message] => OK ) [cookies] => Array ( [0] => nxs_Http_Cookie Object ( [name] => remixlang [value] => 3 [expires] => 1551333164 [path] => / [domain] => .vk.com ) ) ) )

Viewing 15 replies - 1 through 15 (of 22 total)
  • I ran into the same problem. I’m using the latest version of the plug-in + PRO.

    Have the same problem. Plugin does not work with VK.com

    I figured out what the problem is: now you need to specify the version for queries (https://vk.com/dev/version_update), temporarily fixed manually in the file “vk.api.php”, I wait for the update of the plug-in with the solution of the problem.

    I figured out what the problem is: now you need to specify the version for queries (https://vk.com/dev/version_update), temporarily fixed manually in the file “vk.api.php”, I wait for the update of the plug-in with the solution of the problem.

    Hello! Can you please tell me how to do this?

    Yes, I will write below what helped me, but this is a temporary solution, until the plug-in update is released.

    In the file “/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/vk.api.php” you need to add the parameter “v” in url requests to api vk:

    15 line was:
    $postUrl = 'https://api.vk.com/method/photos.getWallUploadServer?gid='.(str_replace('-','',$options['pgIntID'])).'&access_token='.$options['appAuthToken'];
    It became:
    $postUrl = 'https://api.vk.com/method/photos.getWallUploadServer?gid='.(str_replace('-','',$options['pgIntID'])).'&access_token='.$options['appAuthToken'].'&v=5';

    35 line was:
    $postUrl = 'https://api.vk.com/method/photos.saveWallPhoto?server='.$uploadResultObj->server.'&photo='.$uploadResultObj->photo.'&hash='.$uploadResultObj->hash.'&gid='.(str_replace('-','',$options['pgIntID'])).'&access_token='.$options['appAuthToken'];
    It became:
    $postUrl = 'https://api.vk.com/method/photos.saveWallPhoto?server='.$uploadResultObj->server.'&photo='.$uploadResultObj->photo.'&hash='.$uploadResultObj->hash.'&gid='.(str_replace('-','',$options['pgIntID'])).'&access_token='.$options['appAuthToken'].'&v=5';

    56 line was:
    $postUrl = 'https://api.vk.com/method/wall.post';
    It became:
    $postUrl = 'https://api.vk.com/method/wall.post?v=5';

    Kodintsev Thanks, it really works!

    Also found this way out. After correcting the code, the messages are published but it does not seem to be without thumbnail.

    Also found this way out. After correcting the code, the messages are published but it does not seem to be without thumbnail.

    We are waiting for the official update of the plug-in with the solution of the problem.

    We are waiting for the official update of the plug-in with the solution of the problem.

    I noticed. That the pictures are not attached to the posts. Maybe you need to change something else?

    I noticed. That the pictures are not attached to the posts. Maybe you need to change something else?

    At me the image was attached.
    I’m not a developer of this plugin.) I just found a temporary solution to the problem, I’m waiting for the official update of the plug-in.

    At me the image was attached.
    I’m not a developer of this plugin.) I just found a temporary solution to the problem, I’m waiting for the official update of the plug-in.

    I get this error message when trying to publish an image. Can you know what you need to change in the code?

    -=IMG ERROR=- Could not get image ( https://direct.gtln.us/img/nxs/df/dfImg7.jpg ), will post without it – nxs_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => Peer’s Certificate has expired. ) ) )?
    Your post has been successfully sent to VK.Com

    I’m really looking forward to the update, but I’m afraid that it will take a few more days to wait.

    • This reply was modified 6 years, 8 months ago by AppleStage.

    Judging by the description of the error, the problem is in some of the certificates. What kind of certificate is it and how does it work in the plugin I do not know.
    I recommend that you wait for the plug-in update.

    Plugin Author NextScripts

    (@nextscripts)

    Please update to the latest version 4.1.6. This problem has been fixed there.

    Thread Starter Nephalem

    (@nephalem)

    @applestage: The SSL certificate for the website (direct.gtln.us) you are trying to link an image from has expired, therefore any attempt to download an image will fail. This has nothing to do with the SNAP plugin.

    Thread Starter Nephalem

    (@nephalem)

    @Kodintsev: I can confirm your fix works only for text-only posts. When the image post selection is used, images get lost during the autopost process and all posts arrive on VK.com as text-only posts, although no error is displayed. This issue really needs to be addressed by the devs.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘VK.com stopped working, re-authorization doesn’t help anymore’ is closed to new replies.