By hiddenfellon on
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
Code files
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
What did you specify as the
What did you specify as the version of your .info file?
same problem here
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!
fixed
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...
It's works. Thanks Dave Cohen
It's works. Thanks Dave Cohen
That fixed it for me as well.
That fixed it for me as well. Thanks!
Thanks!
Thirded - worked for me as well!
Worked
Perfect - phew!
worked for me!
worked for me!
worked
thanks Dave, saved me as well.
Great Bro!, Its working fine,
Great Bro!, Its working fine, phew :)
Worked for me too :D. Thanks!
Worked for me too :D. Thanks!
Thank you very much , The
Thank you very much , The content region is really important in D7.
Senior Drupal Developer
Skype me on : mak_chavan
Email : Makarand Chavan
Thank You !!!
Thank You So Much Dave...
Its worked for me... :)
Many Many Thanks...
Thanks!
Thanks Dave ! It works for me !
This did a trick. Worked for
This did a trick. Worked for me and fixed the issue. Thanks!
Great It works...!
Great It works...!
Thank you. Fixed it. I
Thank you. Fixed it. I actually knew this was a requirement in Drupal 7 and still missed it.
Thanks man!
It works perfect.
Solution that worked for me
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'
This version is not compatible with Drupal 7.x...error
I have a content region defined but its still giving me the error.
Worked for me too!
@Dave Cohen's suggestion worked for me too. Thanks!
The description can't be
The description can't be empty either.
Scratch that. My problem was
Scratch that. My problem was this:
The core field wasn't found, because the description field wasn't defined.
This is annoying. Logged an
This is annoying. Logged an issue:
http://drupal.org/node/1422108
Even just a list of possible problems would be nice
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!
Similar thing
It also seems to break when there's a line break in the description
Even from a D7 base theme
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
Regards,
TribalMan
Green, Holistic Web Marketing Solutions - Cape Town
description on 2 lines
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.
Found a fix
Changed core = 7.X to core 7.x and it fixed it for me.
My "description" field was
My "description" field was too long and so it wasn't picking up my "core = 7.x" declaration.
Check the trailing spaces
In my case, the trailing spaces following "core = 7.x" made the error.
Fixing is easy: remove all trailing spaces on each line.
core = 7.x
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.
regions[content]
See: https://drupal.org/comment/3960648#comment-3960648
it worked!!!
Thank you so much, it worked for me as well.
Very interesting and useful
Very interesting and useful tips.I read step by step this article and help me very much.Thank you because work for me
Writing theme .info files
This is a good read: https://drupal.org/node/171205