Solved

Joomla assigns ID=0 to all new articles i create

Posted on 2011-09-15
4
585 Views
Last Modified: 2012-05-12
So i had a joomla 1.5 site and created a new joomla 1.6 site. I merged the old 1.5 jos_content table to the new 1.6 one and uploaded it to the new site. I now have all my old articles like I want but since then, everytime i try to create a new article it assigns it with an ID=0. How can i reset this to start adding to where the new jos_content table ends?
0
Comment
Question by:javajamminman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 60

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 36546675
So this is an AUTO_NUMBER field? If so, you can try seeding it to new starting point. i.e., if your old jos_content ended at 999, you can set AUTO_NUMBER = 1000.

ALTER TABLE jos_content AUTO_INCREMENT=1000;

Open in new window

0
 
LVL 60

Assisted Solution

by:Kevin Cross
Kevin Cross earned 500 total points
ID: 36546677
0
 

Author Comment

by:javajamminman
ID: 36546690
Thanks guys. I actually found the same answer you guys just posted.

http://www.webmasterworld.com/databases_sql_mysql/3569905.htm

I imported via excel and forgot that it did not set the auto increment. A minor overlook that caused me a big headache. thanks
0
 
LVL 60

Expert Comment

by:Kevin Cross
ID: 36546700
Glad it is working for you now.
Best regards and happy coding,

Kevin
0

Featured Post

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question