Jump to content

problems with gettext and smarty


Mets

Recommended Posts

Hi guys,

I'm kind of new to php, so I thought I'd post my problem here. I'm trying to get a php portal software system up and running for my website, which, in itself, is usually pretty straightforward. However, this particular portal uses Smarty for a lot of the pages, and I seem to be running into all kinds of problems. Most recently, I've gotten this error when loading the main page:

Warning: Smarty error: unable to read resource: "dotnode.config" in C:\apachefriends\xampp\php\smarty\libs\Smarty.class.php on line 1096

Fatal error: Call to undefined function: gettext() in C:\apachefriends\xampp\htdocs\dotnode\includes\smarty_plugins\block.gettext.php on line 126

I'm assuming that the Smarty.class.php file is fine, but I don't understand why it's trying to read dotnode.config inside of itself. The software package has the config file in root\smarty\configs\ - how can I tell it to look there? Also, how can I tell it that gettext is in fact defined? The block.gettext.php uses an add-on called Smarty gettext, but after examining the code it looked like they were in fact using the regular gettext() function. I put block.t.php (the Smarty gettext file) in the same directory anyways to see if it would help, but it doesn't seem to see it. Any ideas?

As you may have noticed, this is the Open.Node portal package that I'm trying to install and get running on XAMPP for windows. If you know an easier way to get this up and running, I'd be incredibly happy [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.