XP Publish Upload problem - Page 3 XP Publish Upload problem - Page 3
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

XP Publish Upload problem

Started by ranger77, November 25, 2005, 08:58:22 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

kegobeer

There is no "fix" for using IE - XP publisher is a Microsoft tool, so you have to use a Microsoft product to take advantage of it.  As for removing names from the publisher window, try a Google search.  I'm sure it involves editing your registry to remove those entries.  Remember, Coppermine has nothing to do with how the publisher actually works, it just takes advantage of the service.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Satyr

#41
This solutions did not helped me. :(
When i use the assistant it asks me to create an album (personal album) instead of letting me access as admin the albums and categories in the gallery. :(

I have no errormessages, i just cannot access existing albums and categories to create an album within or to upload into existing albums. :/
Kein Support über PN. Bitte im Forum posten, dann ist anderen auch geholfen.

http://www.gothicmodels.net/gothicmodels/gallery/

Testuser: Test23 PW: 123456

imrich

#42
Quote from: Nibbler on December 06, 2005, 12:17:57 PM
Does changing

postTag.setAttribute('href', '<?php echo trim($CONFIG['site_url'], '/') . '/' $_SERVER['PHP_SELF'] . '?cmd=add_picture'?>&amp;album=' + selform.album.value);

to

postTag.setAttribute('href', '<?php echo trim($CONFIG['site_url'], '/') . '/' $_SERVER['PHP_SELF'] . '?cmd=add_picture'?>&album=' + selform.album.value);

also fix the problem ?

Nibbler, Thanks for this! It fixed the problem where xp_publish wouldn't copy the file to coppermine. I have not tested every combination of uploading yet, and I did not try the 'other' fix which koder listed a few posts before this one.

However, there still is one problem. This new version of xp_publish has a nice feature to ask the user for their login credentials if they are not logged into coppermine.  This feature is not working. Even when you supply the correct credentials, it reports:
"The wizard cold not connect to the internet, or the web service returned a wizard page that is not valid."

Luckily if a person is already logged into coppermine this does not crop up, so we have an easy work around. But while we're looking at xp_publish it would be nice to get this fixed also.

I also have a minor request/suggestion about xp_publish. Could the name of the reg file which is created be changed to something more meaningful? For example, why not have it be something like cpg_mydomain.tld.reg or cpg_mydomain_tld.reg instead of the string of numbers which means nothing to most end users?  I think this would make it more 'user friendly', especially if users work with more than one coppermine site.

There's also a minor issue with the "Gallery name" and "Gallery description" of the Coppermine site being translated into the xp_publisher name/description. If an apostrophe (') is used in the site name (i.e.: If I have "Rich's Pictures" set as the site description), instead of seeing "Rich's Pictures" in the xp_publish to net screen, I see "Rich&#39;s Pictures". It looks a little dirty.  Seems like some translation is needed (or not needed).


imrich

#43
I did find one thing to my suggestion of a better file name for the registry file.

Go to xp_publish.php

find:

        header("Content-Disposition: attachment; filename=cpg_".$time_stamp.".reg");



change to:


        header("Content-Disposition: attachment; filename=cpg_".$_SERVER["HTTP_HOST"].".reg");


To me, this is much more 'user friendly' than the seemingly random sequence of numbers.

Another thing, this note:
"Code is based on article posted by Sebastian Delmont Creating your own XP Publishing Wizard."

Contains a link which has long been invalid. Why not simply include this reference in the source file but not to be displayed to the end user especially since the link is no longer valid?

koder

Quote from: imrich on December 08, 2005, 02:28:33 PM
Nibbler, Thanks for this! It fixed the problem where xp_publish wouldn't copy the file to coppermine. I have not tested every combination of uploading yet, and I did not try the 'other' fix which koder listed a few posts before this one.

Don't try mine if you're already using this one.  Mine's a kludge fix that I popped out because I wanted something quick-- this one's the better fix.

Quote
However, there still is one problem. This new version of xp_publish has a nice feature to ask the user for their login credentials if they are not logged into coppermine.  This feature is not working. Even when you supply the correct credentials, it reports:
"The wizard cold not connect to the internet, or the web service returned a wizard page that is not valid."
I explicitly tried to replicate this in CPG 1.4.2 to no avail.  I was able to successfully log in through the wizard.  What version on what platform are you running?

imrich

I'm using CPG 1.4.2 (just installed from the released package).

My environment is PHP 4.4.1 runing on Apache 1.3.34 / Linux 2.4.21.-27.0.2ELsmp and using MS IE 6.0.

It looks like some others have reported it here too, so I thought I'd echo my findings.

I only have one account right now (my admin account) and that's what I'm trying to test with. Should it work OK with the one and only admin account?

Lee Majors

THX to Koder & Imrich!!!!!  ;D

I use Mozilla Firefox 1.0.7 - an it works NOW again!!!

Lee

capt doufos

I have exactly the same problem. I was running 1.3.5 and it worked perfectly from the publishing wizard no problems at all. I upgraded to 1.4.2 and it instantly stopped working. I have tried on 5 different PC's and all of them give the "The wizard cold not connect to the internet, or the web service returned a wizard page that is not valid." error after you enter your login details.

The gallery itself is hosted with a MySQL database.

PC's were running (Not changed since 1.3.5)

XP SP2 PRO
XP SP2 Home
XP64

I cannot even get it to work if I log into the gallery first.


kegobeer

@doufos: Maybe you should read this entire thread before posting.  There's a fix posted.  ::)
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

capt doufos

There was no need for that.

For YOUR infomation, I have read the read all the way through and making the changes hasn't solved my problem.

I only posted the infomation as I thought it might be of some use. I won't bother next time.

I'll just revert back to 1.3.5 if I can. Anouther case of if it ain't broke it don't fix it on might part.

imrich

Quote from: Lee Majors on December 12, 2005, 01:20:02 AM
THX to Koder & Imrich!!!!!  ;D

I use Mozilla Firefox 1.0.7 - an it works NOW again!!!

Lee

Don't thank me, I just applied the fix myself.

But this fix doesn't solve the login issue, it just allows the upload to work if I'm already logged into the forum.

Is the login feature of working for anyone else? I can't get it to work no matter what I try.

phatbloke

Hi
Just letting you all know i have been running 1.4.1 beta since it came out and after bugs were ironed out it has ran perfectly for over 3 months now. After the stable version came out i thought i had better upgrade. I now get the below error as the last few people on this topic have been getting.

"The wizard cold not connect to the internet, or the web service returned a wizard page that is not valid."

I thought I might try some fixes from the bug forum but i have had no luck including this post
http://forum.coppermine-gallery.net/index.php?topic=15227.msg90474#msg90474

Hopefully someone can sus it out soon as its the best feature of coppermine.

Roel

Hi ya all! First of al I want to say that Coppermine rocks!
Ofcourse I also want to use the XP Publishing wizzard and have the same problem (albums are created but nu photos stored/shown).

- I changed the code in "postTag.setAttribute('href', '<?php echo trim($CONFIG['site_url'], '/') . '/' . $_SERVER['PHP_SELF'] . '?cmd=add_picture'?>&album=' + selform.album.value);"
- Generated a new .reg file and installed it
- No solution (albums are created nut no files are being uploaded
- Folder rights on the /albums/* dirs are 777

Anyone has some new ideas of a solve? It would be great if we can use this feature (incl. de username/pwd credentials if you're not logged on to the album website).

Kind regards and keep up the good work!!

Roel
The Netherlands

imrich

Quote from: phatbloke on December 12, 2005, 09:18:43 PM
Hi
Just letting you all know i have been running 1.4.1 beta since it came out and after bugs were ironed out it has ran perfectly for over 3 months now. After the stable version came out i thought i had better upgrade. I now get the below error as the last few people on this topic have been getting.

"The wizard cold not connect to the internet, or the web service returned a wizard page that is not valid."

I thought I might try some fixes from the bug forum but i have had no luck including this post
http://forum.coppermine-gallery.net/index.php?topic=15227.msg90474#msg90474

Hopefully someone can sus it out soon as its the best feature of coppermine.

I just posted a fix for the login issue here: http://forum.coppermine-gallery.net/index.php?topic=24945.msg115053#msg115053

capt doufos

The login problem has now been fixed. You are a star imrich! :)

However I still cannot get rid of the problem of uploading and no pictures appearing. I have edited my xp_publish.php numerous times, I have even tried a brandnew install on a totally different web server.

Is there any chance someone could post their fix xp_publish.php so I can make sure I am not just being a plank.

Thanks :)

imrich

I'm glad it worked for you! I don't know if they like complete posts here, so if you want my xp_publish.php, let me know and I'll try to PM it to you.

It has the other cutomizations which I listed done to it already, but you're welcome to it if you want it.

Roel

Great thank Imrich :D! The login works fine! I also still have the samen problem as capt doufos.
- Uploading pictures seems to go fine
- Albums are created
- /albums/* folder has 777 rights

But no pictures!!  :'( (also not in any of the /albums/ folders)

Somebody?? Where almost there!! Come on!!

Kind Regards,
Roel

imrich

Quote from: Roel on December 15, 2005, 10:53:00 PM
Great thank Imrich :D! The login works fine! I also still have the samen problem as capt doufos.
- Uploading pictures seems to go fine
- Albums are created
- /albums/* folder has 777 rights

But no pictures!!  :'( (also not in any of the /albums/ folders)

Somebody?? Where almost there!! Come on!!

Kind Regards,
Roel

Role and Capt,

Did you apply the fix that Nibbler originally suppiled in Reply #37 of this thread that looks like this?

Quote from: Nibbler
Find this:


postTag.setAttribute('href', '<?php echo trim($CONFIG['site_url'], '/') . '/' $_SERVER['PHP_SELF'] . '?cmd=add_picture'?>&amp;album=' + selform.album.value);


Change it to this:


postTag.setAttribute('href', '<?php echo trim($CONFIG['site_url'], '/') . '/' $_SERVER['PHP_SELF'] . '?cmd=add_picture'?>&album=' + selform.album.value);


The change is suibtle, change the &amp;album to &album.

This was the fix for me which allowed files to be uploaded.

The fix I supplied in the other thread only allows the login feature to work. It was broken for coppermine installations which were in a sub folder (www.domain.tld would work, but www.domain.tld/coppermine would not work).

Nibbler

The issues with the &amp; and the missing global are now fixed in CVS.

Roel

Great!!! Nibler thanks! That was it!
Xp Publishing works great now!

CHeers!
:D ;D :D