FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Can't find templates
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Can't find templates [message #20961] Fri, 05 November 2004 13:44 Go to next message
Rose is currently offline  Rose   United States
Messages: 3
Registered: November 2004
Karma: 0
Junior Member
In your explanation of the Templating System (thanks by the way, it's pretty good) - it says "If you look at the FUDForumData/thm/default folder, you'll see tons of .tmpl files."

The thing is, I don't see ANY .tmpl files - I don't even have a default folder. I didn't seem to have any problems when I installed the forum, and everything seems to be working fine (just testing it right now) - but on looking at the server directories, I don't seem to have anything in ANY of those folders.

Any suggestions?

Thanks!
Re: Can't find templates [message #20963 is a reply to message #20961] Fri, 05 November 2004 14:08 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Sounds like you simply don't have permissions to access those folders, I presume you are trying to browse them via FTP or SHELL?

To see them you need to unlock your forum or use the build-in file manager.


FUDforum Core Developer
Re: Can't find templates [message #20964 is a reply to message #20961] Fri, 05 November 2004 14:26 Go to previous messageGo to next message
Rose is currently offline  Rose   United States
Messages: 3
Registered: November 2004
Karma: 0
Junior Member
Illia - thanks for your prompt reply. I tried to unlock the files as you suggested, and got this message:

Warning: Invalid argument supplied for foreach() in /my path/adm/admlock.php on line 48

Fatal error: Maximum execution time of 30 seconds exceeded in /my path/adm/admlock.php on line 48

My website has just been moved to a new server, so I'm wondering if some of the server settings are not right. Yesterday (for example) I installed your forum but then wanted to uninstall it again because I changed my mind about where to locate it. I tried using your uninstall.php but it produced a lot of errors. I then tried to uninstall it manually (by removing the FUD files and directories, but I wasn't able to do that either, using my FTP client as well as the server file manager. I believe this to be a server problem.

So I reinstalled to a different location anyway, but now I can't see any content within any of the folders. Do you think that the errors I got when trying to unlock the files is a server issue? If so, I guess I'll have to try to work it out with my hosting company (which is not always an easy thing to do). Sad
Re: Can't find templates [message #20967 is a reply to message #20964] Fri, 05 November 2004 15:50 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Which version of the forum are you using?

The warning you saw was the result of a bug in a certain version of PHP, there is a workaround for it in later versions of the forum.


FUDforum Core Developer
Re: Can't find templates [message #20971 is a reply to message #20964] Fri, 05 November 2004 16:19 Go to previous messageGo to next message
Rose is currently offline  Rose   United States
Messages: 3
Registered: November 2004
Karma: 0
Junior Member
Illia, I'm using 2.6.7. I believe when I downloaded it, it said it was the latest stable version.
Re: Can't find templates [message #20972 is a reply to message #20971] Fri, 05 November 2004 16:35 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Ok then that warning you saw is harmless.

FUDforum Core Developer
Re: Can't find templates [message #20980 is a reply to message #20961] Sat, 06 November 2004 15:03 Go to previous message
Abraxa is currently offline  Abraxa   Germany
Messages: 72
Registered: August 2004
Location: Germany
Karma: 0
Member
Quote:

I then tried to uninstall it manually (by removing the FUD files and directories, but I wasn't able to do that either, using my FTP client as well as the server file manager. I believe this to be a server problem.


I'm not sure how familiar you are with the unix/linux family of operating systems, however the explanation for that is rather simple:
For security reasons, the web server (usually Apache) has its own user account on the server that allows the server manager to only give that user the minimum permissions that the web server needs.
For every customer the server admin usually makes another account on the server so that he/she can do the things in his/her user directory that the server admin allows him/her to do.

The problem that arises here is that when you log in through FTP/SSH/SCP/whatever, you have the permissions that the admin granted your user account - meaning you can delete all files you created since they were created by... you.
Once you run the FUDforum installation script and install the forum, those files however were created by the web server (!), meaning they were created with the permissions that the user was granted that the web server runs under.
Those files cannot be deleted by you since your user account simply doesn't have the permission to access the files that the webserver user created.
That's the reason why you can't access any files in the forum's directories and why you can't delete them either.

The uninstall script runs under the same user as the installation script however - which means that if the uninstallation script fails, the server admins most likely messed up.

In theory you should've been able to delete the files from the server file manager but maybe they made it so it runs under your personal user just as if you were logged in from FTP. What could help you here is a file manager that runs with the web server's permissions. There are a couple of those and even though I couldn't find any that allows recursive CHMOD or recursive deletion of directories they still might be useful for you.
I'd personally recommend http://www.solitude.dk/filethingie/ since you can password-protect it, it's fast and it's only a single file.

-Abraxa
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Beginners question
Next Topic: how to put polls and 'who is online' info on frontpage
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 21:17:26 GMT 2024

Total time taken to generate the page: 0.03111 seconds