Where is my template?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
microOn

Where is my template?

Post by microOn »

My page is like this: http://student.umb.no/~disko/index.php

Where is the template? The page is just white and i can't get the template to work. Can some one help me?The Increase of PHP server memory with 16M got my mainpage up, and it's not blank any more. I just did a new install, but no template is showing.The only thing i can think of is the tmp/templates_c/ and folders inside is owner www-data, but i dont know. I don't own the server.

I have cmsms 0.13 The server is apache running postgreSQL7/8 safe mode ON.
Last edited by microOn on Mon Sep 04, 2006 6:11 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Where is my template? URGENT!

Post by calguy1000 »

Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
microOn

Re: Where is my template? URGENT! NEW!

Post by microOn »

enough information now? I hope so, need help on this
Last edited by microOn on Sat Sep 02, 2006 10:11 am, edited 1 time in total.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Where is my template?

Post by tsw »

Please spare colours..


Firstly the template is there (if there is no template there would be a big smarty error) css however isnt there.

http://student.umb.no/~disko/stylesheet ... mplateid=4 gives nice blank stylesheet. this link tells me that you have tempate id 4 selected for pages.

set debug on in config.php. check server logs.

most likely you have some security setting and show errors off and only place you can see any real information is in server logs...
microOn

Re: Where is my template?

Post by microOn »

Here is the $config['debug'] = true; in config.php



Debug:

loading smarty

Debug:

loading adodb

Debug:

loading page functions

Debug:

loading content functions

Debug:

loading pageinfo functions

Debug:

done loading files

Debug:

(postgres7): SELECT * FROM cms_userplugins - Error (0):

Debug:

(postgres7): SELECT sitepref_name, sitepref_value from cms_siteprefs - Error (0):

Debug:

(postgres7): SELECT * FROM cms_modules ORDER BY module_name - Error (0):

Debug:

(postgres7): SELECT content_id FROM cms_content WHERE default_content = 1 - Error (0):

Debug:

(postgres7): SELECT c.content_id, c.content_name, c.content_alias, c.menu_text, c.hierarchy, c.metadata, c.id_hierarchy, c.prop_names, c.modified_date AS c_date, c.cachable, t.template_id, t.encoding, t.modified_date AS t_date FROM cms_templates t INNER JOIN cms_content c ON c.template_id = t.template_id WHERE (c.content_alias = '15' OR c.content_id = '15') AND c.active = 1 - Error (0):

Debug:

(postgres7): SELECT MAX(modified_date) AS thedate FROM cms_content c - Error (0):

Debug:

(postgres7): SELECT template_id, template_name, template_content, stylesheet, encoding, active, default_template, modified_date FROM cms_templates WHERE template_id = '4' - Error (0):

Debug:

(postgres7): SELECT DISTINCT media_type FROM cms_css c, cms_css_assoc
      WHERE  css_id    = assoc_css_id
      AND    assoc_type  = 'template'
      AND    assoc_to_id = '4' - Error (0):

Debug:

(postgres7): SELECT parent_id, count(*) as cpt FROM
      cms_content GROUP BY parent_id - Error (0):

Debug:

(postgres7): SELECT * FROM cms_content 
      ORDER BY hierarchy - Error (0):

Debug:

Serializing...

Debug:

start global_content_get_template

Debug:

(postgres7): SELECT htmlblob_id, htmlblob_name, html, owner, modified_date FROM cms_htmlblobs WHERE htmlblob_name = 'JavaScript for IE page width' - Error (0):

Debug:

end global_content_get_template

Debug:

start global_content_get_timestamp

Debug:

end global_content_get_timestamp

Debug:

Number of elements: 2
Array
(
    [0] => content_en
    [1] => block1
)

Debug:

Number of elements: 1
Array
(
    [0] => content_en
)

Debug:

Number of elements: 2
Array
(
    [0] => content_en
    [1] => block1
)

Debug:

Number of elements: 1
Array
(
    [0] => content_en
)

Debug:

Number of elements: 2
Array
(
    [0] => content_en
    [1] => block1
)

Debug:

load properties called

Debug:

(postgres7): SELECT * FROM cms_content_props WHERE content_id = '15' - Error (0):

Debug:

Number of elements: 2
Array
(
    [0] => content_en
    [1] => block1
)

Debug:

load properties called

Debug:

(postgres7): SELECT * FROM cms_content_props WHERE content_id = '15' - Error (0):

Debug:

start global_content_get_template

Debug:

(postgres7): SELECT htmlblob_id, htmlblob_name, html, owner, modified_date FROM cms_htmlblobs WHERE htmlblob_name = 'footer' - Error (0):

Debug:

end global_content_get_template

Debug:

start global_content_get_timestamp

Debug:

end global_content_get_timestamp
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Where is my template?

Post by tsw »

that debug log tells us there are no erros from cmsms

what does

SELECT DISTINCT media_type FROM cms_css c, cms_css_assoc
      WHERE  css_id    = assoc_css_id
      AND    assoc_type  = 'template'
      AND    assoc_to_id = '4'

give (when run from sql).

was there anything in server logs?
microOn

Re: Where is my template?

Post by microOn »

I have send a helpdesk message to the admin. I'll get a answer soon. PS: it woud be nice if users got a mail when some one reply a thread.
Last edited by microOn on Mon Sep 04, 2006 9:50 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Where is my template?

Post by Dr.CSS »

When you post a thread there is an Additional Options under the textarea box that has an option to "Notify me of replies".
microOn

Re: Where is my template?

Post by microOn »

I got this from system admin:

disko=# SELECT DISTINCT media_type FROM cms_css c, cms_css_assoc
disko-# WHERE css_id = assoc_css_id
disko-# AND assoc_type = 'template'
disko-# AND assoc_to_id = '4'
disko-# ;
media_type
------------

(1 row)

Nothing in serverlogs.

Link to my page is http://student.umb.no/~disko/index.php You can still see that the page don't show any template. Any idea?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Where is my template?

Post by tsw »

that page does show a template (if there isnt any template there wont be any text!) it doesnt show any css. check that your template has css styles associated.
microOn

Re: Where is my template?

Post by microOn »

Okay, but where in the adminpanel are the css ? I'm not so good at this..
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Where is my template?

Post by Dr.CSS »

Go to Layout » Templates and on the right side is a little img. that says CSS, kinda orangish, click that and it shows which style sheets are attached to the template.

If none are attached use the drop down to find and attach them.
microOn

Re: Where is my template?

Post by microOn »

problem solved with cmsmadesimple-1.0.2  :D
Locked

Return to “CMSMS Core”