Fork me on GitHub

Problems with Auto-Theme, Theme 425  Bottom

  • History: A year ago, put up a PostNuke site, using Auto-Theme and theme #425. Had some problems, eventually figured them out.

    Now, I've moved the site to a new server, and have to reinstall everything. PostNuke is working, Auto-Theme is working. But whenever I tell AutoTheme to switch over the 425 as the default, I get this error:

    Fatal error: Unknown function: themeheader() in /home/harmatta/public_html/clan/header.php on line 42 on a BLANK SCREEN. Can't switch it back, so end up having to empty out my SQL database, then install PostNuke... One guy in another thread had this same problem, he said he fixed it by re-uploading his INCLUDES folder from PostNuke. Tried that (and replacing all else) nothing works.

    I had this same problem a year ago, but can't find what was done to fix it. I thought it was something simple, like editing one line in a PHP file.

    The line that the error mentions just says [/b]themeheader();[b]. I've checked through my backup'd files from the old server to try to find any difference between the header.php files, but replacing it with the file from the old site does nothing, same error???

    Help!!!!!!!
  • http://community.postnuke.com/Wiki-UndefinedFunctionThemeHeader.htm

    Use PSAK, to switch back to a default theme.

    --
    David Pahl
    Zikula Support Team
  • Been using Psak.php but every once in a while I completely remove everything and start over fresh. For some reason, PostNuke works, AutoTheme works, but when I try to switch to theme 425, it doesn't like the line:

    themeheader(); or themefoot(); in either the Header.php or Footer.php files.

    Just for the heck of it, I deleted those lines from the Header and Footer files. Theme 425 worked, sort of. I was at least able to navigate around in it, but the color scheme seemed missing (everything in black and white (just text and background was visible), and I was only able to access certain screens). I went into the configuration settings, and all the default colors were missing??

    I think this might be a permissions problem. I don't think it is able to draw the information it needs from other files/directories. Now, I've noticed that this server is case sensitive. Every filename/directory needs to be the exact case of the urls etc or it doesn't recognize it. Also, I've had problems changing some of the permisssions (chmod). If I make the change in FTP, it says it worked, but it actually doesn't. If I make the change in the server's file manager, it sometimes takes and sometimes doesn't. With the exception of the config. files, what should be the common permission (chmod) used by the majority of PostNuke's files/directories?

    The next thing I am going to try is upload all the files from my old server, then import my old SQL tables into the new SQL, and just see if everything works. I was hoping to get the theme working first, then do all that, but I am running out of ideas of what to try...



    edited by: :]-[:Assassin, Nov 14, 2006 - 04:34 PM
  • Well, that idea didn't work...

    This is the order in which I am doing things, let me know if this is not correct:

    upload PostNuke files to the root directory (then renamed the folder 'HTML' to 'clan').
    empty out the contents of the SQL database (created previously)
    check permissions of config.php and config_old.php = 666 = ok
    point browser to the install.php file in CMS directory
    follow prompts to populate SQL database and config. file
    remove the install.php file and install directories
    alter the permissions on config.php and config_old.php files to chmod 644
    upload AutoTheme 1.77 into the CMS directory (places 4 files into CMS directory, the rest go automatically into modules and themes)
    upload theme 425 into themes
    initialize and activate AutoTheme in PostNuke Modules
    go to admin, 3rd party, AutoTheme to switch default theme to 425

    That's when I get a BLANK SCREEN and the error message:Fatal error: Unknown function: themeheader() in /home/harmatta/public_html/clan/header.php on line 42
    It doesn't seem to like the "themeheader();" line of the Header or Footer.php files...

    How can I fix this????
    I have tried everything I can think of (and some wild guesses).
    Is this a permissions problem, in other words is it not able to read data from the other files that it needs to? If not, what chmod should I change them to (or check to make sure that they already are)? I wonder this, because I noticed that my signature isn't displaying in these posts, yet it displays in our forums. It seems that info can be pulled by programs/files from within the directory but not from outside the directories...

    I've sent this same request for information to Spidean's Shawn McKenzies (several days ago).
    I'm thinking of trying a different version of AutoTheme. A year ago, when I first put this site up on another server, I had this same problem but can't remember how I solved it.

    Any advice would be greatly appreciated...





    edited by: :]-[:Assassin, Nov 14, 2006 - 04:53 PM
  • OH YOU ARE NEVER GOING TO BELIEVE THIS!!!!

    I got it to work...
    Still can't believe it...
    Wanna know how?
    I renamed the theme from 425 to the name of my clan. Aparently this server doesn't like numbers as folder names.... wish they had told me that!!!!!!!!!!!!

    I can't believe how much time I wasted on this.

    Thank you AmmoDump and all for putting up with my rants. Please post this info in whatever other forums or as a sticky for people to try changing the folder name to not include numbers if they have the same problem. My server provider is www.siteground.com.

    Am now going to upload my old SQL database and hope all my old content becomes available again...

    I am SO happy!
  • Starting replacing tables in the new SQL with the data from the old, replaced the pn_blocks and pn_block_buttons tables. Got all my old blocks up, but for some reason I can't access the Admin, Blocks module? Any clues on how I can both have my old blocks, and still access the blocks button in the Admin menu?
  • Got the blocks module to work by replacing the Blocks folder with the one from my old server. The buttons within the blocks don't work (deactivate, activate both work... edit, and create new do not work). The pn_blocks_buttons table in the SQL database is from the PostNuke installation. It wouldn't let me replace that one with the one from my old SQL database, saying something about cannot replace this because can't modify header information already sent... Any ideas? (I'm just full of questions, aren't I.)



    edited by: :]-[:Assassin, Nov 15, 2006 - 02:47 PM
  • 0 users

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