Installation, Configuration, & Upgrades  :: 
ANOTHER undefined function: themeheader() error
 Top

Goto page: 1 - 2 [+1]

  • Okay, I'm yet another new install with a "installation worked fine but now I get a fatal error" post.

    Apache: 1.? (hosted)
    PHP: Version 4.3.4
    MySQL: Version 3.23.49

    My test install gives the the now-famous error:

    Code

    undefined function: themeheader() in /postnuke/header.php on line 188


    Passing the theme in a query string gives me the theme but not much else. You can view the errors here: http://www.eightseve….php?theme=PostNuke You can see that many variables are missing and the center (main?) module fails. I cannot find a post that clearly explains what to do in this situation. The Swiss Army Knife - reseting theme, etc. - did not help. I have not had a chance to try installing any new themes

    Can somebody, once and for all, lend a concise solution to this problem? Please?!?
  • There is no concise solution because there is no one cause. So far I know the following causes for it, and there are probably others.

    1. The Theme is not for PostNuke
    2. The theme is developed for AutoTheme, and the AutoTheme module is not installed.
    3. Certian Linux OS distros cause a problem due to a system variable name (I think Mandrake is the one that causes this)
    4. PHP's Path directive is wrong or incomplete
    5. Files are missing

    Judging from the number of _SOMETHING defines I see on your site, I'm guessing 4 or 5 is your issue.
  • To address each point in turn:

    1. The Theme is not for PostNuke
    No extra themes were installed - this is a brand-new install.
    2. The theme is developed for AutoTheme, and the AutoTheme module is not installed.
    Ditto above; just the base code was installed, nothing more.
    3. Certian Linux OS distros cause a problem due to a system variable name (I think Mandrake is the one that causes this)
    No Mandrake, no Linux (that I know of); can't address this one any further than that.
    4. PHP's Path directive is wrong or incomplete
    Is this in the code or a php.ini directive? If the latter, everything else works fine, so why should this break? If the former, what's the fix?
    5. Files are missing
    Can't find any files that may be missing.

    Given the above, are there any steps I need to take to find/fix what is happening? I tell you what, I'm more likely to abandon PostNuke for something else (which I don't really want to do) than to spend every waking hour trying to debug code I didn't write.
  • Quote


    I tell you what, I'm more likely to abandon PostNuke for something else (which I don't really want to do) than to spend every waking hour trying to debug code I didn't write.

    ..Sorry for your troubles, but the error is due to improper installation, and not a "bug" in code.

    You might also want to make sure all of your files and folders are "readable" by the webserver.. the missing langauge defines and the module failing to load indicate their "absence" or the webserver's inability to read them.

    -IR

    --
    http://www.invalidresponse.com
  • Sorry if I sound bitter, and I'm not trying to be difficult, but I followed the install instructions to the letter. If there is something I did that I shouldn't have - or didn't do that I should have - it is a problem with your documentation and/or install instructions.

    I don't claim to be an expert, but I have done my share of web development. I checked all the obvious potential problems (such as file permissions) and such before I even consulted the forums. That I still do not have an inkling of a solution to this rather serious error, and that many others seem to be in the same position, leads me to believe the PostNuke developers have some issues they need be setting higher on their priority list.
  • What OS is your server running on?
  • eight17

    That I still do not have an inkling of a solution to this rather serious error, and that many others seem to be in the same position, leads me to believe the PostNuke developers have some issues they need be setting higher on their priority list.


    One of the above issues is the problem, or it's a new problem that we have not seen. There is NOTHING that the devs can do to solve all of these issues, they could potentially solve the problem with Mandrake Linux by changing the code, but there are bigger fish to fry when Mandrake's problem is an easy to solve problem that seems to only affect Mandrake Linux, and there's not, that I've seen a large base of Mandrake based hosting platforms.
  • This problem - regardless of it's origin - is ubiquitous in these forums, and most of the threads show no signs of any resolution. Believe me, I've checked.

    BTW I said I would rather find an alternative to PostNuke than waste my time debugging someone else's code. Well, I installed phpNuke in under 5 minutes (minus upload time) and it's working just fine. Hmmmm...
  • eight17

    This problem - regardless of it's origin - is ubiquitous in these forums, and most of the threads show no signs of any resolution. Believe me, I've checked.


    That is not true at all..

    Problem:
    The Theme is not for PostNuke
    Solution:
    Get a PostNuke theme

    Problem:
    The theme is developed for AutoTheme, and the AutoTheme module is not installed.
    Solution:
    Install AutoTheme

    Problem:
    Mandrake Linux, for whatever reason, has the theme variable name used in their default PHP install, this breaks themes under PostNuke (and I'd imagine PHPNuke and any others that store the theme name in $theme
    Solution:
    Reinstall PHP from the RPMs from PHP.net

    Problem:
    PHP's Path directive is wrong or incomplete
    Solution:
    Fix the Path directive in php.ini, may require going to your Hosting Provider

    Problem:
    Files are missing
    Solution:
    Reupload properly.

    Quote

    Well, I installed phpNuke in under 5 minutes (minus upload time) and it's working just fine. Hmmmm...


    I and many many many many others have installed PostNuke in under 3 minutes and it works just fine too HMmmm..

    And you have yet to answer my question, what OS is your server running on?
  • Okay, okay, okay. I finally found out what server OS my host is using: Linux 2.2.23-rp1 #3 SMP. (It's all greek to me, as I'm not a Linux person.) Does that help at all?
  • Nope, need to know who's linux. Make a file, name it info.php and put the following line in it...

  • Here you go: http://eightseventeen.com/info.php
  • Hmm, thought I'd seen the phpinfo report the Linux version. I don't seen anything majorly out of place in there. However I do see that PHP is running as a CGI on your server, make sure that you don't have any folders CHMOded to anything higher than 755
  • All folders are 755; all files are 644. Anything else?
  • Have you tried a reinstall? The only thing I can think of is missing files.

Goto page: 1 - 2 [+1]

This list is based on the users active over the last 60 minutes.