XP Publish returns an error XP Publish returns an error
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

XP Publish returns an error

Started by reflecs, August 24, 2009, 01:59:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

reflecs

Hello all,

I've installed a new copy of coppermine. Now I tried to upload through XP Publish and the following error is returned to me:

The Wizzard Could not connect to the Internet, or the Web Service returned a wizard page that is nog valid.

To try again, click back.

To close this wizard, click Cancel


I've looked into it myself and concluded the following:
- This problem only occurs when a new album needs to be created by XP Publish
- If I first create an album via the web interface and then I use XP Publish by choosing that album, the files are uploaded correctly.

Regards,
Rob

reflecs

A small adition to the toppicstart:

Server: Windows 2003 R2 (x64)
Webserver: IIS v6
PHP version: 5.2.5 (x64)
MySQL: 5.0.51b

Joachim Müller

Well well. Sounds very promising. Maybe you want to add more details about your favorite drink and color, or what the maiden name of your aunt Emma was.
Or maybe you'll read the documentation, section "Asking for support on upload issues" and do as suggested there.

reflecs

I'm sorry for not reading the docs on uploading troubleshooting. I'm also sorry for the way you react. I'm not a small child or a retard and I like your product very much. I understand you get tired of repeating the same questions every time. But if I schould react to a client in a shop like this I will lose lots of customers. You could have asked me in a normal way if I would like to check out the documentation.

Well now that is said. I realy like to see this problem solved and I also know more people with this problem.

I executed all settings on my album and I have created a test account:
Account name: test
Password: test

the URL is: http://mode7.no-ip.com/fotos

With XP Publish when I get the error I get no debug info or any logging.

Regards,
Rob

Joachim Müller

Quote from: reflecs on August 24, 2009, 02:44:45 PM
I'm sorry for not reading the docs on uploading troubleshooting. I'm also sorry for the way you react. I'm not a small child or a retard and I like your product very much. I understand you get tired of repeating the same questions every time. But if I schould react to a client in a shop like this I will lose lots of customers. You could have asked me in a normal way if I would like to check out the documentation.
Then you should have done as suggested: the test user account doesn't have upload privileges and therefor is utterly useless. Definitely not what I have asked for. What can I say? You say that you don't want to be treated like a child, but you behave like one. Instead of complaining about my reply you should have done as suggested. Do your homework now. Then post back here.

reflecs

I behave like a child??? I don't think so. If I treat people that way at my job I will be kicked out realy soon. What would you do if a shop salesman would talk to you that way? I surely would walk out the store without buying a product.

I checked the rights again and the rights are ok. If I use the test user I can upload files. So the account is ok.


phill104

Quote from: reflecs on August 24, 2009, 11:33:55 PM

I checked the rights again and the rights are ok. If I use the test user I can upload files. So the account is ok.



Erm.... ::)

QuoteSorry there is no album where you are allowed to upload files

Create / order my albums

File: D:\wwwroot\fotos\upload.php - Line: 876

We do not want to create an album for you.
It is a mistake to think you can solve any major problems just with potatoes.

reflecs

I will create an album called test. But the problem with XP Publish is the creation of a new album then the error will appear. If a album is created in coppermine and XP publish is used to add pics to that album there is no problem. So it seems there is a small problem in album creation by use of XP Publish.

Thanx for your reply!

Regards,
Rob

Joachim Müller

If we get the error message
QuoteSorry there is no album where you are allowed to upload files
this proves that you haven't even bothered to try for yourself. So I went ahead and created that folder and the upload may or may not have worked as expected, because you have admin approval turned on. Why are you behaving difficult?
We believe in taking one step at a time.

reflecs

As stated before. This is a fresh installation. I tested throughout but deleted my own test albums again. So don't tell me I didn't try a thing because I did. Troubleshooting IT systems Linux aswell as Microsoft is my job.

I also took a look at the code. I can read PHP and so on but if you didn't create it yourself it isn't that easy troubleshooting. You know the code so troubleshooting should be lots easier for you and less time consuming.


phill104

You still have not turned off admin approval  ::)
It is a mistake to think you can solve any major problems just with potatoes.

Nibbler

Edit xp_publish.php, find


$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos) VALUES ('$category', '" . addslashes($_POST['new_alb_name']) . "', 'NO',  '0')";


Change to


$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description) VALUES ('$category', '" . addslashes($_POST['new_alb_name']) . "', 'NO',  '0', '')";

reflecs

Nibbler,

The solution you posted is working!

Many thanx!

Regards,
Rob

reflecs

I was to early with my conclusion. The error is not there anymore but now album information is not updated in XP Publish and files are not uploaded into the newly (by XP Publish) created album. Any idea on that?

reflecs

Ok I'm a bit further. I solved the problem of the files not being uploaded to the album by replacing the XP_Publish.php with a fresh copy and I made your change again. Now XP Publish can create an album and it is filled with the selected pics.

However the list of albums in XP publish is not being refreshed. Therefore I now cannot upload pics to existing albums because they are not shown in the list.

Regards,
Rob

Nibbler

I noticed that too. Just press F5 to reload the list.

reflecs

That is working too!! Many thanx!

I noticed that after a while the list refreshes automaticly too.

Regards,
Rob

Nibbler

See if adding a no-cache header helps.

After


<title><?php echo $lang_xp_publish_php['title'?></title>


Add


<meta http-equiv="Pragma" content="no-cache" />

reflecs

That seems to do the trick!

Another thanx!!

Regards,
Rob

Nibbler

Great. Thanks for confirming. These fixes will be in the next Coppermine release.