Fork me on GitHub

Watch

GitHub Core

Show your support for Zikula! Sign up at Github account and watch the Core project!




GitHub Modules

Forum Activity

Forum feed

» Visit forum | » View latest posts

Problems with cavity theme  Bottom

  • I tried to install the cavity theme, but this is what I got

    Warning: main(modules/AutoTheme/autotheme.php) [function.main]: failed to create stream: No such file or directory in c:\inetpub\wwwroot\postnuke\HTML\themes\cavity1\theme.php on line 5

    Warning: main() [function.main]: Failed opening 'modules/AutoTheme/autotheme.php' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\postnuke\HTML\themes\cavity1\theme.php on line 5

    Fatal error: call to undefined function: themeheader() in c:\inetpub\wwwroot\postnuke\HTML\header.php on line 191


    I am locked out of my site. I tried the psak.asp swiss army fix but I am getting this error:

    Notice: Undefined variable: PHP_SELF in c:\inetpub\wwwroot\postnuke\HTML\psak.php on line 19

    Notice: Undefined variable: PHP_SELF in c:\inetpub\wwwroot\postnuke\HTML\psak.php on line 20
    PostNuke Swiss Army Knife -- 1.00 -- Main Menu
    --------------------------------------------------------------------------------

    Notice: Undefined variable: op in c:\inetpub\wwwroot\postnuke\HTML\psak.php on line 467


    Notice: Undefined variable: PHP_SELF in c:\inetpub\wwwroot\postnuke\HTML\psak.php on line 101
    New DB username/password encoding

    Enable/Disable 'intranet' config option

    Theme Reset

    Permissions Reset


    Notice: Undefined variable: PHP_SELF in c:\inetpub\wwwroot\postnuke\HTML\psak.php on line 106
    Show phpinfo


    Help, anybody got any suggestions?
  • Try this verson, I fixed a couple of things in it:
    psak.zip

    There are a few ways to recover from a faulty theme:

    1. The aforementioned Postnuke Swiss Army Knife tool (this is the fixed version as above):
    psak.zip

    2. You could rename the dud theme (copy the name first with ctrl-C):
    a. copy a known working theme folder, like the default Postnuke,
    b. rename it to whatever the dud one is (case is important, if you copied before, do a paste now, ctrl-V),
    c. edit the theme.php file in the theme folder; near the top you change the $thename variable:

    $thename = "Name-of-theme";

    filling in whatever the name of the theme was.
    Postnuke now thinks this is the theme you changed to, and the site will work.
    d. Go to Admin, change to a a working theme

    e. Rename your temporary recovery theme folder to something else, like "Backup" or something, so you can use it for the next time you try a dud theme, so you can repeat the procedure, changing the name of the folder and the $thename variable to the dud theme.

    You can test a new theme first by entering:
    www.yoursite.com/index.php?theme=yourtheme
    This is only a temporary change until you click somewhere else or refresh the page

    Martin :D
  • Martin

    the psak worked this time. Thank you 10x for your support. However, these are the errors I received while running psak.php . Once again the reset worked and I am fine, but i wanted to bring this to your attention. Also, I read about your tip on testing themes before implementing them after I got in trouble :) , however, I will definatly practice it in the future.

    Thanks

    page 1 When choosing to what theme to default.
    Notice: Use of undefined constant module_vars_column - assumed 'module_vars_column' in c:\inetpub\wwwroot\postnuke\HTML\psak.php on line 271
    The site's default theme is currently set to: cavity1


    Default theme set tDefault theme set to: PostNukeSilver
    Notice: Undefined index: resetuser in c:\inetpub\wwwroot\postnuke\HTML\psak.php on line 351o: PostNukeSilver
  • They're warnings and notices, nothing to worry about. I sent the author of psak.php the update, he said he'd wanted to make those changes anyway and should have updated the official download. I guess he needs to clean the code a little more to avoid those non-critical warnings. The error reporting is set too low on your server, Postnuke often produce other similar notices and warnings. They don't affect the performance.

    Glad it was of use :D

    Martin
  • 0 users

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