Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Fatal Error on adding pnDefault
  • Posted: 19.03.2004, 02:43
     
    personman2
    rank:
    Freshman Freshman
    registered:
     March 2004
    Status:
    offline
    last visit:
    23.10.04
    Posts:
    19
    I've installed Xanthia and pnRender and I've added the PiterpanV2 theme. It works fine, but I uploaded pnDefault to the themes folder and when I click "add theme" I get this error message:

    Fatal error: Call to undefined function: phpdefine() in /www/a/adriancc/htdocs/themes/pnDefault/lang/eng/xaninit.php on line 1

    Any ideas on how to fix this?

    Danny
  • Posted: 24.03.2004, 15:27
     
    Pharaoh
    rank:
    Helper Helper
    registered:
     January 2003
    Status:
    offline
    last visit:
    09.09.08
    Posts:
    138
    Ive been messing with it for a while tonight trying to figure this one out...

    go check out that file xaninit.php it needs a space after the PHP call

    Code

    <?phpdefine("_SELECTHEME", "Select color you want for your theme :");define("_THEMECOLOR1", "Grey");define("_THEMECOLOR2", "Red");define("_THEMECOLOR3", "Blue");define("_THEMECOLOR4", "Green");define("_THEMECOLOR5", "Brown");define("_THEMECOLOR6", "Orange");define("_THEMECOLOR7", "Violet");define("_SETTHEME", "Select");define("_STYLEBUT","Buttons Style");define("_TITLESIZ","Title Size");define("_TEXTSIZ","Text Size");define("_LITTLESIZ","Litle Text Size");define("_XA_HEADERMENU","Header Menu");define("_XA_TOPLINKS","Toplinks");define("_XA_FOOTERMENU","Footer Menu");
    // Themes Configdefine("_TM","");define("_TMBUTTONSTYLE","Buttons Style");define("_TMSIZETITLE","Title Size");define("_TMSIZETEXT","Text Size");define("_TMSIZESMALL","Small Size");define("_TMWIDTHPAGE","Page Width");define("_TMWIDTHLCOL","Left Column Width");define("_TMWIDTHRCOL","Right Column Width");define("_TMWIDTHINBLOCK","Inner Block Width");define("_TMINDEXCOL","Index Column");define("_TMRIGHTCOLON","Right Column");
    ?>


    and change it to

    Code

    <?php

    define("_SELECTHEME", "Select color you want for your theme :");
    define("_THEMECOLOR1", "Grey");
    define("_THEMECOLOR2", "Red");
    define("_THEMECOLOR3", "Blue");
    define("_THEMECOLOR4", "Green");
    define("_THEMECOLOR5", "Brown");
    define("_THEMECOLOR6", "Orange");
    define("_THEMECOLOR7", "Violet");
    define("_SETTHEME", "Select");
    define("_STYLEBUT","Buttons Style");
    define("_TITLESIZ","Title Size");
    define("_TEXTSIZ","Text Size");
    define("_LITTLESIZ","Litle Text Size");
    define("_XA_HEADERMENU","Header Menu");
    define("_XA_TOPLINKS","Toplinks");
    define("_XA_FOOTERMENU","Footer Menu"); // Themes Config
    define("_TM","");
    define("_TMBUTTONSTYLE","Buttons Style");
    define("_TMSIZETITLE","Title Size");
    define("_TMSIZETEXT","Text Size");
    define("_TMSIZESMALL","Small Size");
    define("_TMWIDTHPAGE","Page Width");
    define("_TMWIDTHLCOL","Left Column Width");
    define("_TMWIDTHRCOL","Right Column Width");
    define("_TMWIDTHINBLOCK","Inner Block Width");
    define("_TMINDEXCOL","Index Column");
    define("_TMRIGHTCOLON","Right Column");
    ?>


    then try and install your theme ;)

    --
    Yo motha fucka! WEEEEEEEEEEEEEEEEE!
  • Posted: 24.03.2004, 17:30
     
    rank:
    Professional Professional
    registered:
     April 2002
    Status:
    offline
    last visit:
    24.11.08
    Posts:
    716
    The original language file doesn't look this way.
  • Posted: 24.03.2004, 21:58
     
    personman2
    rank:
    Freshman Freshman
    registered:
     March 2004
    Status:
    offline
    last visit:
    23.10.04
    Posts:
    19
    No, that's not the problem. I checked that file and it already has the space. Thank you, though.
  • Posted: 24.03.2004, 22:12
     
    personman2
    rank:
    Freshman Freshman
    registered:
     March 2004
    Status:
    offline
    last visit:
    23.10.04
    Posts:
    19
    No, wait. That was the problem. There was already a return after <PHP, but I added a space and another return and now it works. I'm not sure why that made a difference, but thanks for the help!
  • Posted: 25.03.2004, 00:16
     
    Pharaoh
    rank:
    Helper Helper
    registered:
     January 2003
    Status:
    offline
    last visit:
    09.09.08
    Posts:
    138

    personman2


    Fatal error: Call to undefined function: phpdefine() in /www/a/adriancc/htdocs/themes/pnDefault/lang/eng/xaninit.php on line 1


    this why i guess the space was your problem too? glad you got it to work though :D

    --
    Yo motha fucka! WEEEEEEEEEEEEEEEEE!
  • Posted: 25.03.2004, 00:32
     
    Pharaoh
    rank:
    Helper Helper
    registered:
     January 2003
    Status:
    offline
    last visit:
    09.09.08
    Posts:
    138

    jn

    The original language file doesn't look this way.


    I think the file messed up when we uploaded it... what I get for letting cuteftp do auto-detect instead of telling it to do ascii. I changed it to what it should look like

    --
    Yo motha fucka! WEEEEEEEEEEEEEEEEE!
  • Posted: 25.03.2004, 11:10
     
    rank:
    Professional Professional
    registered:
     April 2002
    Status:
    offline
    last visit:
    24.11.08
    Posts:
    716

    Pharaoh

    I think the file messed up when we uploaded it...
    That might be the cause.

    Hint: I'm very satisfied with filezilla FTP Client icon_wink

    Jörg
  • Posted: 25.03.2004, 13:55
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    I too can recommend filezilla as the best ftp client around. It's open source which is even better - http://filezilla.sourceforge.net.

    -Mark

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula