Fork me on GitHub

Nukewrapper issue I think but not sure  Bottom

  • I installed Nukewrapper today (awesome!)

    Anyhow, everything is fine except when I go to my "Gallery" module (Menalto) I get these errors at the top

    Code

    rning: Missing argument 1 for smarty_function_title() in /home/clanvdqa/public_html/modules/Xanthia/plugins/function.title.php on line 54

    Warning: Missing argument 2 for smarty_function_title() in /home/clanvdqa/public_html/modules/Xanthia/plugins/function.title.php on line 54

    Warning: extract(): First argument should be an array in /home/clanvdqa/public_html/modules/Xanthia/plugins/function.title.php on line 55


    I didn't wrap the gallery page and I am using an AutoTheme and never had this error until today, probably something simple.

    Hope someone can help.
  • bump
  • I've seen a few posts lately about NukeWrapper and problems with Xanthia and I don't know much about the script. Anyway what version PN are you using it with? Are you tring to use the TitleHack and stuff that comes with it. If so that could be the problem. Are you sure you followed the instructions correctly especially the stuff about xanthia.

    Quote

    Warning: extract(): First argument should be an array in /home/clanvdqa/public_html/modules/Xanthia/plugins/function.title.php on line 55


    These error messages give me the idea it's something to do with that TitleHack. Also have you tried contacting the author about the problem?

    Not much help really but maybe it gives you an idea or 2 to get started on.
    Denis
  • still can't figure it out
  • Which version of Gallery? Only the older one has a PN port, as far as I know. I'll try and install it and see.
    The error relates to the first line
    function smarty_function_title($params, &$Smarty) {
    It's saying both parameters are empty. It's being called with no title.
    NW does have a modified version of the Title plugin, but that part is not changed. And yes, the change incorporates the Titlehack, but also checks to see if there's a title for the wrapped page, and sue that instead if it is. To change it back, this is what the original looks like:

    Code

    function smarty_function_title($params, &$smarty)
    {
        extract($params);
        unset($params);

        if (isset($GLOBALS['info']) && is_array($GLOBALS['info'])) {
            // article page output
            $title = $GLOBALS['info']['title'].' :: '.pnConfigGetVar('sitename').' :: '.pnConfigGetVar('slogan');
        } else {
            // all other page output
            $title =  pnConfigGetVar('sitename').' :: '.pnConfigGetVar('slogan');
        }

        if (isset($params['assign'])) {
            $smarty->assign($params['assign'], $title);
        } else {
            return $title;
        }

    }


    Again, I'll try installing Gallery and see if I can spot what it is. Gallery is a complex system, though, so we'll see.
  • Thanks for the update and taking the effort to help, much appreciated!
  • Well, if restoring the original title plugin doesn't help, I don't see what would. It's curious that Gallery would somehow cause this though. Unless of course if they're using variables or something that clash. Worth knowing regardless.
  • Yeah, I have tried restoring the original plugin and that didn't work. I even upgraded to the latest gallery v1.5.1-RC1 and that didn't help either.

    Thanks again for your time
  • very strange but I figured I would go ahead and replace the footer.php and header.php in the root directory and that fixed my problem.
  • I supplied an alternate Header.php, which would have to be renamed and hence not replacing the original by default, but not a footer.
    Maybe you had some sort of data corruption on upload of something?

    BTW, Menalto seem to have accepted a PostNuke integration patch I submitted, so the next release should work without PastNuke or the like in PN0.75+, and hopefully nicer URLs.
  • Yeah, I think I had a corrupted file like you said. Thanks for everything


    Quote

    BTW, Menalto seem to have accepted a PostNuke integration patch I submitted, so the next release should work without PastNuke or the like in PN0.75+, and hopefully nicer URLs.

    Thats awesome!
  • No guarantees, the Gallery 1.5.1 bug report forum simply says they're working on "better cooperation with newer Postnuke Versions" as a result.
  • I had a look at the modified header.php file in NW today, and there does seem to be a bug that could cause this, although for whatever reason my system doesn't complain. Restoring the header.php file should fix this. I'll fix it soon, though pn0.76 is out, which doesn't need a header file and won't have this problem.

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