Webmastersite.net
Register Log In

Custom Templates not working anymore

Comments on Custom Templates not working anymore

Jenny
Forum Regular

Usergroup: Customer
Joined: May 11, 2003

Total Topics: 64
Total Comments: 199
Jenny
Posted Dec 30, 2005 - 6:53 PM:

I haven't even noticed myself until a visitor sent me an email about it. Apparently for the past couple of days the custom templates stopped working. I.e. when you visit silver-pearls.com/index.php...om-toplist&headerfooter=no there should be a Top 100. Instead you see this error:
Error: The file templates/default/custom/custom/toplist.tpl does not exist

No idea why the script suddenly tries to find the template in the wrong folder...

BTW, it works fine for templates, which are not in the custom folder, but in the general /default folder (i.e. http://silver-pearls.com/index.php?custom=yes&TID=rules)
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 31, 2005 - 2:50 AM:

Seems to work fine with silver-pearls.com/index.php...php?custom=yes&TID=toplist as well. The behavior is as if it presumes it should start looking in the custom directory, and if not found there looks up a level. The code, however, implies the opposite:
 if (file_exists(str_replace('attachments', $templatesdir, $settings->uploadpath).  $thefile)) $thefile = $templatesdir .'/' . $thefile;
else $thefile = $templatesdir .'/custom/' . $thefile;


Could it be your file path went wrong? If you're not using scripts.webmastersite.net/w...nks/wsnmanual/articles/277 then slashes can go missing in odd events (server reboots I think) and that breaks pagination, uploads and other stuff.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.