WinXP publisher: Could not connect to drupal
| Project: | Image Publishing |
| Version: | 6.x-1.0-beta2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | fixed |
After setting up Windows Publishing Wizard I am unable to upload any pictures after logging into my site via the WPW interface. I see my site on the list and I am able to type in my credentials but after that screen I get an error: "Could not connect to the internet, or the web service returned a wizard page that is not valid."
I have correctly configured my internet settings as well as attempted clearing all cookies from IE as I have seen mentioned in the support forums for Gallery.
I have also tried publishing from other XP machines in order to eliminate the possibility of misconfiguration.
One sidenote, I am running the site on an internal server, aka not connected to the internet. I am not sure if WPW has some weird way of doing things so I mention it just in case.
Thanks for any help.

#1
I experienced the same thing - got same error trying to publish to local site (http://localhost/drupal/?q=publish_xp)
When I get around to putting the site online, I'll try again.
#2
Has any progress been made on this issue? I have the same problem.
#3
+1 on this problem
The Page
http://localhost/drupal/?q=publish_xp
is there, I can see if through the browser, though it looks a little different that what I see in the image publish wizard.
The wizard onlys asks for name and password and then returns the error.
I have a fairly standard install, Apache on Windows, PHP 4.
Would there be other dependencies than those listed in the documentation?
Alan
#4
I'm not sure how you guys got your Drupal site added as an option for XP publishing wizard. I couldn't figure out how to do that until finally I decided to modify the LiveJournal registry file, replacing the first LiveJournal url with http://mysite/drupal/publish_xp and then putting this in the registry. Then everything seemed perfected: I found some images hit "Publish the selected items to the Web", selected my site in the dialogue, told it to resize the images and publish them to one of the galleries and ... nothing. The images don't seem to be getting uploaded at all...
Note: Gallery Remote is working for me (although I can't create albums with it, just post to existing ones), so something about my configuration is right.
#5
Never mind, it works! I had forgotten to give myself permissions under Access Controls (go figure).
Sweet.
Only problem now is that every image shows up as "Untitled image".
#6
OK, sorry for the flurry of posts. I have a suggestion for trying to figure out the problem people are having above. Go to your admin page and look for any SQL errors. I found the following:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND n.type = 'image'' at line 1 query: SELECT n.nid FROM node n INNER JOIN term_node t ON t.nid = n.nid WHERE t.tid = AND n.type = 'image'; in /home/dems/public_html/tigris/includes/database.mysql.inc on line 120.
(Notice that for some reason $tid was empty so it reads WHERE t.tid = AND which is a mistake. I don't know how to fix this, of course...) This may help you or others track down the problem...
#7
same issue, any update?
hoe to make the WPW working with drupal?
#8
Could someone explain the exact step to use the windows web publisher?
I am not the only one who has issue to make it work...
#9
Same issue. Let's figure this one out guys, such a great feature and I hate to see it not work.
Tried 4 XP machines within my local network, no go.
#10
Currently I modified the image_pub.module files to include isntructions on the admin/image_pub page on how to use it. Users are told to manualy authorize them selves by logging into my site using Internet Explorer and then proceed with using WPW.
Good enough for now.
#11
Could you provide a patch for that, or the text that you're using? I'll include it in the next release.
#12
#13
Same issue here. I've tried it on three different computers. Only occassionally it works but often it returns the error "the wizard could not connect to the internet or the web service returned a wizard page that is not valid" I am using drupal 6.6.
#14
I just tried publishing images to a 4.6 site I built a long time ago and had the image_pub module from back then --------- and no problem.
Then I put the latest version -- 6.x-1.0-beta1 -- on a different drupal 6.6 site and again no problem.
But on my latest 6.6 site, the image_pub 6.x-1.0-beta1 keeps returning the error "the wizard could not connect to the internet or the web service returned a wizard page that is not valid"
The only thing I can think of in the problem site is that both the file-system path and the image path have been changed to custom paths. I don't have any issues with both the image.module and imagefield.module.
#15
Hello crispy,
Thanks for your report. I'm the project maintainer (I took over a few months ago). To be honest, I've only used the WinXP part of image_pub once, and it worked, and I've been dealing with other issues before this one. And I'm not yet really familiar with that part of the code. However, here are some thoughts:
Given that image_pub works on one drupal 6 site, but not the other, I'm wondering if there are differences in the configurations between the sites. Have you checked that the user who is trying to upload has permission to administer image galleries as well as to create images? (I think this was mentioned further up the thread.)
I wouldn't have thought that changing the file system path and the image system path should make a difference, since that information is encapsulated in other functions. If you can create images in the normal way, image_pub should have no problem with file paths.
Does the problem occur before you even get to the login form?
Were there any problems installing the site information into the registry? It might be worth checking the contents of
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\PublishingWizard\PublishingWizard\Providersin the Windows Registry. Do they match the details of the site you're trying to connect to?
Please let me know if you find anything.
#16
Hi,
I'm encountering similar issues on one D6 site for a few days. My system environment:
* Publishing from: Windows XP SP3 (German) through Windows Explorer
* Publishing to: Drupal 6.13, Image Publishing 6.x-1.0-beta2, Image 6.x-1.0-beta2
What happens:
* Selecting files in Windows explorer, clicking on the "Publish selected elements to the web" link in Windows explorer;
* A new window with the Web Publishing wizard appears; clicking on "Continue";
* A selection list of the chosen files appears; the selected files are checken; clicking on "Continue";
* Web Publishing wizard gives a list of sites I can publish to; selecting the D6 site, clicking on "Continue";
* The next window says: "Web service error: No connection to the internet could be established".
This is quite strange since I'm using the 5.x-1.1 release of the "Image Publishing" module on a couple of D5 sites without any problems from the same WinXP computer. The D6 release does neither work if I publish to www.mysite.tld nor to mystie.tld.
The module was installed as usual (downloaded ./admin/settings/image_pub_xp_reghack to the local computer, merged the file with the registry).
Checks:
* "Have you checked that the user who is trying to upload has permission to administer image galleries as well as to create images?" - Yes. Also this happens with the account of User #1
* "Does the problem occur before you even get to the login form?" - After
* "Were there any problems installing the site information into the registry?" - None
* "It might be worth checking the contents of
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\PublishingWizard\PublishingWizard\Providers
in the Windows Registry. Do they match the details of the site you're trying to connect to?" - Yes, the records entered into the Windows registry are looking sane and similar so those working.
Are there other configuration options except/admin/settings/image_pub which I might have missed?
Also, I tried the Java Gallery Remote client; that one allows me to successfully connect to the URL mysite.com/gallery_remote2.php, to log in into the D6 site, and to display the album names (however, umlauts and other non ASCII characters are broken). Firstly uploading appears to work, but the error log says:
Upload error: The file was received, but could not be processed or added to the album. You must upload an image". This error repeates for each image I'm uploading.The D6 watchdog registers these publishing attempts at ./admin/reports/dblog also and says:
Request failure: 403, The file was received, but could not be processed or added to the album. You must upload an image.(URL: http://mysite.tld/gallery_remote2.php/gallery_remote2.php). New image nodes are simply not being created.Thanks & greetings, -asb
#17
Hello asb,
I've tried uploading files with gallery remote, and succeeded with no error messages. I haven't had a chance to look at XP yet.
As far as I can tell, you've done the configuration correctly.
I'm a bit stuck on this, and I haven't much time this evening, but could I suggest that you put some watchdog messages in _image_pub_image_add() in image.common.inc, in particular to see if $_FILES[$srcfield] is set in the XP mode? There should really be more helpful watchdog messages in the XP functions...
#18
I've also encountered this issue and I found the following message in the logs:
Missing argument 3 for form_builder(), called in /www/htdocs/xxx/v2/sites/all/modules/image_pub/image_pub.xp.inc on line 278 and defined in /www/htdocs/xxx/v2/includes/form.inc in Zeile 855.
Maybe this helps finding the cause of the problem.
#19
Hi,
I'm encountering the same issue on another D6 site, while the D5 version still works like a charm. To be more precise: the 'image_pub' module works always on D5 and never on D6.
> put some watchdog messages in _image_pub_image_add() in image.common.inc, in particular to see if $_FILES[$srcfield] is set in the XP mode?
Pardon?
Thanks & greetings, -asb
#20
Upgraded to 6.x-1.0-beta2, same issue.
#21
I think I have fixed the problem. A file in the image_gallery module was not being included.
I've put in one line to fix this, and commited the fix. If you download the development version of the module, the problem should now be fixed.
I've marked the issue as fixed, but if you find that things still don't work, please feel free to open it again.
I've also attached the patch, for the record.
Thanks for all the help given on this issue, and sorry it took so long to sort out.