Fork me on GitHub

Help on Smarty error (1088)  Bottom

Go to page 1 - 2 [+1]:

  • Hello everybody,

    I'm making a personnal Xanthia theme by following one theme that works well (imagic2). I only use the CSS that I modify and place the blocks just the place they are located in the theme inspired from, and then I make some adjustment in the different files (stylesheet, blocks design, tables...).
    I success in generating the personel theme in Xanthia, and I could display to see it online (local). I decided to use it as a user theme but when I choose it as my theme only 2 links on Main menu are working they are "My personal account/with sub-link" and "Home". That means that only home.htm and user.htm are working for my theme.
    Whan I click other links (download, weblinks, write an article...) they all show the following message:

    Warning: Smarty error: unable to read resource: "master.htm" in g:\web\www\pn761\HTML\includes\classes\Smarty\Smarty.class.php on line 1088

    In Xanthia configuration / Modify my theme / Template modules ---- I don't see master.htm, only home.htm and user.htm.

    I know there's problem with master.htm but I can't see where, I build master.htm first and make a copy of home.htm and user.htm, I follow what I could see with the inspiration theme. They are both clone of master.htm. So they working and not master.htm.

    Somebody can help please.
    ... apologise for my english.
  • Make sure master.htm is located in /themes/THEMENAME/templates/ and both user.htm and home.htm are located in /themes/THEMENAME/templates/modules/

    --
    -- Teb
    -- Dutch Zikula Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • hi!

    Yes, they are located in their directory as you mentioned!

    Thank you,
  • Well, I'm a bit stuck here. Could you provide a link where I can see the problem? I do however suggest that you upgrade to 0.762 (assuming g:\web\www\pn761\HTML\ means you're running 0.761)

    --
    -- Teb
    -- Dutch Zikula Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • Very sorry Teb,
    I'm working on a local version of the theme under easyPHP a PHP win server, not yet online. you're right that I'm on pn761. I'll upgrade very soon my PN version to 0762.
    But as I wrote above, my theme follow imagic2 theme files and, I adapted my theme to that one, using its style, xxx.htm, just the way imagic2 has them. Only master.htm doesn't work for my theme. The files: home.htm and user.htm display fine.
    Do you have an idea of what makes:
    In Xanthia configuration / Modify my theme / Template modules ---- I don't see master.htm, only home.htm and user.htm. I don't see master.htm in the configuration tab at all... That's not good, something avoid master.htm to appear in conf tab.

    Tahunga



    edited by: Tahunga, Sep 05, 2006 - 08:41 AM
  • master.htm should be in the column 'theme templates' (not under 'Module templates').

    If it's not under theme templates, add it by clicking 'New theme template', for template name you type 'master.htm', and leave the content blank. Click submit and make sure that in the settings 'Enable caching' is off, and 'Check for updated version of templates' and 'Force templates recompilation' is on.

    [edit]
    If this doesn't work, maybe deleting and adding he theme again could help. Everything you've changed is in the files, so you won't loose anything
    [edit]




    edited by: Teb, Sep 05, 2006 - 08:05 PM

    --
    -- Teb
    -- Dutch Zikula Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • Hi Teb,

    I disn't success in adding master.htm in Theme Template. While I submit the newly created master.htm (blank), I got this message displayed:
    "Sorry ! The source of the template is missing.
    Please specify the source of the template"

    Mau be I have to copy and past the content of master.htm in the text field. Really don't know, afraid of messing arround.

    Thanks for helping,
  • Sorry, my bad. Yeah, paste the source there. It doesn't get used but since it requires something filled in there, I guess you should give it a try ;)

    --
    -- Teb
    -- Dutch Zikula Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • I have now a bigger problem. icon_confused
    Just after copying master.htm code ad pasting it in the master.htm field, then press validate. I got:
    Warning: Smarty error: unable to read resource: "master.htm" in e:\easyphp1-8\www\pn761\test_01\includes\classes\Smarty\Smarty.class.php on line 1088

    I can't log as member either admin i got that message. I can only browse the website as anonymous.

    How can I reset this to previous situation, or maybe have the solution to all problem?



    edited by: Tahunga, Sep 05, 2006 - 10:43 AM
  • Use psak to reset the theme to ExtraLite, then remove the theme, and add it again.
    Like I said above, this could also solve the problem.

    --
    -- Teb
    -- Dutch Zikula Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • I got this message using psak to reset the theme:

    Default theme set to: ExtraLite
    Notice: Undefined index: resetuser in e:\easyphp1-8\www\pn761\test_01\psak.php on line 372
    User theme preferences skipped

    trying to create master.htm by filling the field code generated some lines which force any theme to get through the problematic master.htm to resolve any link.
    My default theme was not the one wich has problem. I only use it as a user (through IE), while I use as admin another theme as default theme in Firefox, all at the same time.

    The newly situation gets me out of the site (default theme) as admin. I can see the website as anonymous or visitor. When I try to log, I can see that the background colour is the one use for the "problematic theme". Passing the loin stage I got the warning error message.
    In the other side I can log as user who choose the "problematic theme" as personnal theme. I pass the loggin stage and see the website in mu prefered "problematic theme". As in the beginning, I can only use links: Home and My account. Others links show the warning message.
  • Well, it's getting confusing. You could edit your database manually with phpMyAdmin, go to the users table, and set all values for pn_user_theme to NULL. If your default theme is ExtraLite (you set that with PSAK), you can start from scratch.

    Login as admin, remove the 'problematic' theme, add it again and preview it by calling index.php?module=News&theme=Problematic. If it fails again, then master.htm still is not in the templates definitions. Then you should check xaninit.php because there is your problem with initialising the theme.

    --
    -- Teb
    -- Dutch Zikula Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • Hi,

    I done as you said but, seems that my theme made some messing in codes. Removing my 'problemetic' theme and adding it back didn't resolve. When back it cause the other theme to launch the 'problematic' looging. I think that 'problematic' master.htm hold control now....
    Fortunately, I'lm working on local testing website.
    So, I decide to do a new install to PN762 and add my theme. The problem's still remain as it was before crashing.

    "Teb"

    Login as admin, remove the 'problematic' theme, add it again and preview it by calling index.php?module=News&theme=Problematic. If it fails again, then master.htm still is not in the templates definitions. Then you should check xaninit.php because there is your problem with initialising the theme.

    Yes I think too that "the master.htm still is not in the templates definitions". I check in Theme Template, there are only blocks.htm and nowhere I could find master.htm.
    Checking xaninit.php didn't help me much, cause I have short understanding of where to find my way inside those lines.

    Thanks



    edited by: Tahunga, Sep 07, 2006 - 10:11 AM
  • You can always append &theme=ExtraLite to the end of the URLs

    IE

    user.php?op=chgtheme&theme=ExtraLite
    or
    admin.php?module=Settings&theme=ExtraLite

    Then change the theme to a working one.


    --
    Zikula Themes
  • Hi MMaynard,
    Fortunaly I'm working my theme on local site so I don't really mind for the moment. I'm in stage of undersatnding how to use Xanthia theme engine works, because I'm more a webdesigner than a coder. So untill I really understand how the PHP codes are working, I'm just using some theme working fine and replace the images by mine and tweak a little the CSS file. I know that I'm far from heaven, but never late to begin and hope to arrive one day with less lost as possible. icon_confused
    Thank you for helping, I'll keep the lines:
    user.php?op=chgtheme&theme=ExtraLite
    or
    admin.php?module=Settings&theme=ExtraLite
    wicn could avoid me to reinstall a new website when everything crash.

    Tahunga

Go to page 1 - 2 [+1]:

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