I'm trying to setup the UNL templates on my own server. I have mirrored the files into the ucomm folder inside the root directory.
I have created this file:
which makes use of the secure php template. However, looking through the code, none of the php virtual() functions seem to be working correctly.
Originally I received the following message:
Warning: virtual() [function.virtual]: Unable to include '/ucomm/templatedependents/templatesharedcode/includes/browsersniffers/ie.html' - error finding URI in /Volumes/WEB/test/index.php on line 11
There were similar messages at every occurrence of a php virtual() command. So I tried replacing the virtual() functions with include() making sure to give permissions 755 to the files and to make sure the URLs were absolute and not relevant. Upon testing, the PHP errors were gone, however the template styles and other files did not appear to be included. Note: I'm certain that there isn't anything wrong with including files on my end, because the following code in my file works absolutely fine:
- Code: Select all
<?php include('sharedcode/relatedLinks.html'); ?>
Finally, I double checked my httpd.conf file to make sure that SSI was enabled. The following are located in my httpd.conf file:
- Code: Select all
AddHandler server-parsed shtml
AddType text/html shtml
Options All +Indexes +Includes +MultiViews +ExecCGI
As you can see, I believe that my server is ready to use the templates, however, that is not the case.
At this point I thought that there might have been some error in my page's code and use of the template, so I uploaded it to my CSE account:
(Use Firefox or IE)
As you can see however, that an error in my page's code is not the case as it works fine on CSE.
Finally I resorted to examining the files I downloaded from
If you look the templatedependents directory, it doesn't contain a copy of templatesharedcode. Noticing this, I copied templatedependents_bak and renamed it to templatedependents appropriately. This however, did not fix the problem. The feeling I'm getting, is that the templates located in ftp://wdn:firstname.lastname@example.org are not functionally correct, or that there is something horribly wrong on my server. If someone could assist me in setting up the templates on my end, I would appreciate it.
Some information of my server can be located here:
(I will be taking this file down soon)
I know there are some xhtml and css validation errors, but ignore that for now.
Thanks in advance.