Hi,
Was looking for that modume to have diferent Theme on specified content type.
I have created Theme with Artisteer. Have named them for example Theme1 and Theme2.
Theme1 - default
Theme2 - should be used when navigated to specified content type.

I have not done any alteration on Theme2, so it's identical to Theme1 - they are the same, only named diferently.

For some reason when I navigate to the page with content type I want to use with Theme2 - browser gives me Error 500 ( internal Server Error )

I have tried with other Drupal themes like Seven and Garland and they worked absolutly fine.
Also have tried to choose Theme1 and it's working fine as well ( not sure if this makes any diference )

Was searching for support on Artisteer website ( where actualy found the sugestion for ThemeKey ) but all who used the ThemeKey does not have the same problem with Artisteer Themes.

So I don't know what to do ;o( help????

regards
Kos

Comments

mkalkbrenner’s picture

Priority: Major » Normal

I don't think that this is related to ThemeKey. Nevertheless some help ...

I guess a php fatal error occurred. The exact error should be described in your server log file.

I have not done any alteration on Theme2, so it's identical to Theme1 - they are the same, only named differently.

Maybe you simply renamed the directory and the file names, but not the functions within the files. That would lead to a PHP fatal error caused be duplicate functions and a 500 Internal Error response.

KoshaK’s picture

mkalkbrenner:

Maybe you simply renamed the directory and the file names, but not the functions within the files.

No, I have Saved themes as two different themes. Also As a test have saved the Default Artisteer Theme, but still does not work.
Going to try on another server to by sure if it's a server related problem.

Update: Have tried on different Server, and working - no problem... Will dig Error Log and submit the support ticket to Hosting.

KoshaK’s picture

Title: Custom Theme Gives Error 500 » Cannot redeclare get_drupal_major_version

Ok... now I'm receiving the following:

Fatal error: Cannot redeclare get_drupal_major_version() (previously declared in /home/koswe512/public_html/photoexp/themes/test/template.php:29) in /home/koswe512/public_html/photoexp/themes/photoexpeditionD7/template.php on line 32

do you still recons it's Server Issue? It was working on the 2nd server, and this is the 3rd server I'm trying on.
Unfortunately can't leave the website to the 2nd working server.

Thank you,
Kind Regards,
Kos

mkalkbrenner’s picture

Status: Active » Closed (won't fix)

Like I expected, a duplicate function.

I had a quick look and for me it seems like a bug in that Artisteer generator. Functions in template.php needs to be prefixed with the theme name!

If you don't prefix it doesn't matter as long as you only use one theme based on Artisteer. But if you want to use different themes based on it, it crashes.

I recommend to report that to Artisteer itself.

axa-xa-xa’s picture

Issue summary: View changes

I made ​​changes in the function
function get_drupal_major_version() {
$tok = strtok(VERSION, '.');
$tok[0] = 7;
//return first part of version number
return (int)$tok[0];
}

site works

pedrorestu’s picture

Hi, same problem for me !
I've done the fix from #5 (axa-xa-xa) but nothing happends.

Any help ?
Thanks

Pedro

pedrorestu’s picture

ok my solution was getting back libraries module to 2.1 version. and this solved the problem.

metakel’s picture

I have two Artisteer themes in the same directory and suddenly it got error after updated some modules. My solution is to remove one of the Artisteer themes.

RuudVanEck’s picture

I had the same problem after updating some modules. I had 2 artisteer themes active. After disabling one artisteer theme the problem was solved. (i did not remove the theme)