Can anyone tell me how to fix this problem i keep getting this error and everything in my .info looks fine, i cant figure it out.

this is the error i get
This version is not compatible with Drupal 7.x and should be replaced.

This is my .info file
name = theme1
description = 1st test theme
core = 7.x
engine = phptemplate
stylesheets[all][]= style.css
regions[left] = Left Sidebar
regions[right] = Right Sidebar
regions[featured] = Featured
regions[content] = Content
regions[header] = Header
regions[footer] = Footer
scripts[] = effects.js

any help is greatly appreciated.

Comments

greg_gy’s picture

Code files must be declared in your .info :

name = Example module
description = "Gives an example of a module."
...
files[] = example.module
files[] = example_types.inc
files[] = example.admin.inc
files[] = example.pages.inc
files[] = example.install

peter.b-1’s picture

What did you specify as the version of your .info file?

Dave Cohen’s picture

Wow, those comments are not helpful.

I've copied two themes from my D6 server to my D7. I've updated the .info files to say core=7.x. One of the themes, I can enable. The other says, "This version is not compatible with Drupal 7.x and should be replaced."

I can't figure out why D7 won't recognize the theme!

Dave Cohen’s picture

In my case, it was because the theme did not define a content region. All D7 themes need a region called content.

Added this to .info file...

regions[content] = 'content' ;; All D7 themes need this.  
vmanimaran’s picture

It's works. Thanks Dave Cohen

deggertsen’s picture

That fixed it for me as well. Thanks!

sboots’s picture

Thirded - worked for me as well!

Kuchy’s picture

Perfect - phew!

drupalninja99’s picture

worked for me!

nodeAche’s picture

thanks Dave, saved me as well.

nidhinbaby’s picture

Great Bro!, Its working fine, phew :)

theamoeba’s picture

Worked for me too :D. Thanks!

cmak’s picture

Thank you very much , The content region is really important in D7.

Senior Drupal Developer
Skype me on : mak_chavan
Email : Makarand Chavan

monalisab’s picture

Thank You So Much Dave...
Its worked for me... :)
Many Many Thanks...

rydje’s picture

Thanks Dave ! It works for me !

haroon373’s picture

This did a trick. Worked for me and fixed the issue. Thanks!

questsasi’s picture

Great It works...!

steve24822’s picture

Thank you. Fixed it. I actually knew this was a requirement in Drupal 7 and still missed it.

subgero’s picture

It works perfect.

dipan15’s picture

It requires minimum 3 parameters in theme.info file to display theme properly without any error message for version in Appearance page mentioned as below:

name = theme_name

core = 7.x

regions[content] = 'content'

Kevin_Mene’s picture

I have a content region defined but its still giving me the error.

larsdjohnson’s picture

@Dave Cohen's suggestion worked for me too. Thanks!

daniel.nitsche’s picture

The description can't be empty either.

daniel.nitsche’s picture

Scratch that. My problem was this:

name = Theme
description =
core = 7.x

The core field wasn't found, because the description field wasn't defined.

daniel.nitsche’s picture

This is annoying. Logged an issue:
http://drupal.org/node/1422108

liz.oh’s picture

None of these things is my problem. I've compared my file to several other themes to see if maybe my punctuation is off... Ugh. Even if the solution was just a list of things you should check against, that would be lovely!

nicpeck’s picture

It also seems to break when there's a line break in the description

TribalMan’s picture

I developed a theme based on Blue Masters, it was running fine for months. Then I did a D7 core update from 7.08 (I think) to 7.12. Now I keep getting this error. I the theme I based it on works fine though :p

fraktal12’s picture

That was the problem for me also, the description field - pasted from a tutorial - was a 2 liner. Once I fixed it to a single line, it was solved.

cgamble1521’s picture

Changed core = 7.X to core 7.x and it fixed it for me.

Tezcatlipoca’s picture

My "description" field was too long and so it wasn't picking up my "core = 7.x" declaration.

trickyken’s picture

In my case, the trailing spaces following "core = 7.x" made the error.
Fixing is easy: remove all trailing spaces on each line.

jiaqi.yin’s picture

I used 7.X, then it said "This version is not compatible with Drupal 7.x and should be replaced." After I changed 7.X to 7.x (x in lower case) it works. Silly mistake.

kenorb’s picture

Thizozo’s picture

Thank you so much, it worked for me as well.

gregory-adam’s picture

Very interesting and useful tips.I read step by step this article and help me very much.Thank you because work for me

nonprofit’s picture

This is a good read: https://drupal.org/node/171205