• I have more than 20 self-hosted WP sites, so I wrote a program in VB6 to check for updates and apply them automatically. It worked fine up until 3.1; now it fails.

    The program logs into each site one by one, then checks for the “WordPress has been updated message” as well as the number of plug-ins updated. If found, it then clicks on the ‘Please update now’ link (for the WP upgrade) which then invokes the wp-admin/wp-core.php file.

    This worked fine until 3.1; now it fails in that, after clicking on the link, it doesn’t go to wp-core.php, instead it re-displays the login window. Re-entering the username and password takes me back to the Dashboard, it never gets to the wp-core.php file.

    When doing this by hand, instead of by VB6, it works just fine.

    I have cleared cookies, changed the secret keys, switched from using the VB6 WebBrowser control (which is a programmable interface to IE) to using IE directly, via the document object. None makes any difference.

    I have also searched this forum and read anything relevant, as well as Googled for other people with the same problem, without result. I cannot use FireFox or any other browser because the VB6 program requires access to the document object to determine which tags to use.

    I have spent two full days on this and got nowhere. It looks to me like WP can tell that a program is accessing it, rather than a human, and it is behaving differently now in 3.1 than it did in 3.0 and it appears that the behaviour is incorrect (i.e., it’s a bug).

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hm… I think the first thing you made wrong about it is language choice. VB6 is pretty old and you should move to some modern language like Java, Delphi or even C++. I think it was caused that your “browser” caused usage of some security loopholes which was removed in 3.1 and this is the reason it don’t work now.

    Thread Starter dougbangkok

    (@dougbangkok)

    I realise that VB6 is quite old, but so am I. It’s just a wrapper (an easy way to access) an object, such as the browser object called “Document Object Model”. The choice of language is, I think, irrelevant.

    The browser object exposes the properties and methods of the HTML document, and any language that can access ActiveX objects will work; VB6 does it quite well with a minimum of fuss.

    The problem is that WP is requiring a re-login, probably due to some incorrect hash calculation internally.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Relogin required when scripted by VB6 but not when manual’ is closed to new replies.