Solved

Joomla assigns ID=0 to all new articles i create

Posted on 2011-09-15
4
584 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

739 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