Author Topic: DB Error: Couldn't open Template ./templates/default/header.  (Read 8886 times)

0 Members and 1 Guest are viewing this topic.

Offline bootz

  • Pre-Newbie
  • Posts: 3
    • View Profile
DB Error: Couldn't open Template ./templates/default/header.
« on: August 02, 2002, 05:25:50 PM »
"DB Error: Couldn't open Template ./templates/default/header.html"

Get this error when requesting index.php after installing 4images, running the install.php script successfully and also using control panel (admin/index.php) successfully.

Also, same error when trying to view a picture from control panel...

Running on Mandrake Linux 8.2, Apache 1.3.23, PHP 4.1.2.

Any ideas gratefully received ;)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
DB Error: Couldn't open Template ./templates/default/header.
« Reply #1 on: August 02, 2002, 08:31:30 PM »
Did you checked if this file exists on your server. Not a great idea, but maybe it will help ;)

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline bootz

  • Pre-Newbie
  • Posts: 3
    • View Profile
DB Error: Couldn't open Template ./templates/default/header.
« Reply #2 on: August 02, 2002, 08:42:50 PM »
hi...

yes the file does exist...

Offline bootz

  • Pre-Newbie
  • Posts: 3
    • View Profile
DB Error: Couldn't open Template ./templates/default/header.
« Reply #3 on: August 02, 2002, 09:28:49 PM »
:D  ok thanks i got it working after some chmod'íng, urpmi'ing and tweaking hehe

 bootz

Offline gurl

  • Newbie
  • *
  • Posts: 32
    • View Profile
DB Error: Couldn't open Template ./templates/default/header.
« Reply #4 on: April 30, 2003, 07:49:49 AM »
may i know how did u fix the problem?
i got this instead Template Error: Couldn't open Template ./templates//header.html

i'm sure the url is wrong. it should be /header.html only but then i don't know how to fix it.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
DB Error: Couldn't open Template ./templates/default/header.
« Reply #5 on: April 30, 2003, 12:42:30 PM »
Quote from: gurl
may i know how did u fix the problem?
i got this instead Template Error: Couldn't open Template ./templates//header.html

i'm sure the url is wrong. it should be /header.html only but then i don't know how to fix it.

actualy it shuld be ./templates/<yourtemplatename>/header.html
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline gurl

  • Newbie
  • *
  • Posts: 32
    • View Profile
DB Error: Couldn't open Template ./templates/default/header.
« Reply #6 on: May 02, 2003, 10:01:58 PM »
Quote from: V@no

actualy it shuld be ./templates/<yourtemplatename>/header.html


how can I fix that?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
DB Error: Couldn't open Template ./templates/default/header.
« Reply #7 on: May 03, 2003, 12:24:34 AM »
that means, either u dont have ANY templates installed (nothing in /templates/ folder) or u didnt select any templates in the settings.
or, something messed up, and last "or": check CHMOD for your files/folder (more info u can find in /docs/installation.txt.)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline gurl

  • Newbie
  • *
  • Posts: 32
    • View Profile
DB Error: Couldn't open Template ./templates/default/header.
« Reply #8 on: May 06, 2003, 04:23:49 AM »
there is a template in the templates folder. & i'm sure the chmods are right. but I just don't know how to select the templates in the settings (it doesn't say how to in the installation.txt). it has been a month that i couldn't get this started.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
DB Error: Couldn't open Template ./templates/default/header.
« Reply #9 on: May 06, 2003, 10:44:59 AM »
go to admin control panel -> settings
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline gurl

  • Newbie
  • *
  • Posts: 32
    • View Profile
DB Error: Couldn't open Template ./templates/default/header.
« Reply #10 on: May 07, 2003, 07:48:05 AM »
is there any other way to select a template without having to go to the control panel? cause i can't seem to login my admin control panel. i tried the user & pw that I put in install.php earlier but it doesn't work. & when I go back to install.php, the page directs to index.php. I can't change it again.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
DB Error: Couldn't open Template ./templates/default/header.
« Reply #11 on: May 07, 2003, 10:24:31 AM »
Quote from: gurl
is there any other way to select a template without having to go to the control panel?

Edit DB manualy....
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)