An error occurred at http://...site..../admin/build/views/ajax/display/homepage/page/analyze-theme.

I've been getting this error message when hitting the rescan templates files button under information.

Thanks

CommentFileSizeAuthor
#3 template_php.zip5.06 KBandrew.eatherington@gmail.com

Comments

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Could you disable js and have a look what php error is there.

andrew.eatherington@gmail.com’s picture

Thanks.
The PHP error is:
Fatal error: Cannot redeclare phptemplate_preprocess_page() in ..../sites/all/themes/blueprint/template.php on line 17

Strange as this is not happening on another site. I have copied that files' content into this one and the same error is being thrown.

andrew.eatherington@gmail.com’s picture

StatusFileSize
new5.06 KB

Here is the template.php file. If you can spot anything it would be a great help.

I've looked and can't seem to see anything amiss. I've also copied a 'working' file but still the same error.

Thanks

andrew.eatherington@gmail.com’s picture

Status: Postponed (maintainer needs more info) » Active
dawehner’s picture

Status: Active » Fixed

rename the function to yourtheme_preprocess_page

It was your fault not views one :)

andrew.eatherington@gmail.com’s picture

Thanks - That works but I'm still a little confused as the same function name (phptemplate_preprocess_page()) is in use on several sites. I have many functions in here that are prefixed with phptemplate and quite a few others with blueprint (the theme name - it's a base theme).

Just checked the Garland theme and it also follows this pattern.

dawehner’s picture

I think you shouldn't use phptemplate at all in your theme.
1. its not needed.
2. in d7 i think it is removed.
3. It was used in d5 when there was no theme registry, but theme stuff in modules, for example theme_username

andrew.eatherington@gmail.com’s picture

Oh okay - this is D6 does that follow the same?

If so I will send on to the theme developer.

Thanks again

dawehner’s picture

In d6 there is the theme registry. There is afaik no reason to use phptemplate_ in your theme.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ivaneric79’s picture

hi, i have a similar problem , but when i hit the information link, i disable javascript and i recibe "Forbidden
You do not have permission to access this document. " i all my views