| Topic: | Fatal Error on adding pnDefault |
|---|---|
|
personman2
Freshman
Posts: 19 Posted: |
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 |
|
Pharaoh
Helper
Posts: 138 Posted: |
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! |
|
jn
Professional
Posts: 716 Posted: |
The original language file doesn't look this way. |
|
personman2
Freshman
Posts: 19 Posted: |
No, that's not the problem. I checked that file and it already has the space. Thank you, though. |
|
personman2
Freshman
Posts: 19 Posted: |
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! |
|
Pharaoh
Helper
Posts: 138 Posted: |
personman2
this why i guess the space was your problem too? glad you got it to work though :D -- Yo motha fucka! WEEEEEEEEEEEEEEEEE! |
|
Pharaoh
Helper
Posts: 138 Posted: |
jnThe 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! |
|
jn
Professional
Posts: 716 Posted: |
PharaohI think the file messed up when we uploaded it... Hint: I'm very satisfied with filezilla FTP Client Jörg |
|
markwest
Moderator
Posts: 7720 Posted: |
I too can recommend filezilla as the best ftp client around. It's open source which is even better - http://filezilla.sourceforge.net. -Mark |