Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-02 14:24:03

Nonsense
Member
Registered: 2005-11-25
Posts: 53

Image upload problem.

I have a strange problem.

When I try to upload an image via TXP everthing is ok as long as I have no other images listed in TXP.
As it is I can only have one image uploaded to TXP. If I try to upload a second I get this:

“There was a problem saving the image”

So I figured there was something wrong with my db and I added MySQL error message and it states:

“Duplicate entry ‘0’ for key 1”

Offline

#2 2005-12-02 14:29:40

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Image upload problem.

When you hover on that single image it allows you what id number does it give you down in the status bar?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2005-12-02 14:31:58

Nonsense
Member
Registered: 2005-11-25
Posts: 53

Re: Image upload problem.

0

Offline

#4 2005-12-02 14:34:36

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Image upload problem.

When TXP istalls there is already a single image as part of the setup process. It is used in the default form template as a divider at the bottom of an article. Do you remember that being there?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#5 2005-12-02 14:41:09

Nonsense
Member
Registered: 2005-11-25
Posts: 53

Re: Image upload problem.

Yes.

It’s called 1.gif right?

Offline

#6 2005-12-02 14:47:24

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Image upload problem.

That’s the one. So it did install then? Have you done much work so far?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#7 2005-12-02 14:53:07

Nonsense
Member
Registered: 2005-11-25
Posts: 53

Re: Image upload problem.

Yes

Offline

#8 2005-12-02 14:54:10

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Image upload problem.

Are you able to run “repair” on the txp_image table of your database?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#9 2005-12-02 14:55:11

Nonsense
Member
Registered: 2005-11-25
Posts: 53

Re: Image upload problem.

Yes.

But, I’m not sure how.

Offline

#10 2005-12-02 15:00:13

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Image upload problem.

Is this on a host or on your machine?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#11 2005-12-02 15:05:16

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Image upload problem.

You need to go into phpMyAdmin and select the database you are using. This should then show you all the tables in the database. On the left of the list are little check-boxes. Check the one beside txp_images then look beneath the tables where you should see a little drop-down box that says “with selected”. Click the arrow in the box and select the “Repair Table” option from the drop-down. Then pray. ;)

Last edited by thebombsite (2005-12-02 15:06:46)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#12 2005-12-02 15:11:41

Nonsense
Member
Registered: 2005-11-25
Posts: 53

Re: Image upload problem.

That did absolutely nothing.

Offline

Board footer

Powered by FluxBB