Page 1 of 2

[Solved] No content blocks defined in template

Posted: Mon Oct 15, 2012 4:36 am
by Minefox
Hi, I installed a fresh copy of the cms (Isabela). Why is it that im having this problem upon creating a new template?

Re: No content blocks defined in template

Posted: Mon Oct 15, 2012 6:47 am
by uniqu3
You need {content} tag in template.

Re: No content blocks defined in template

Posted: Mon Oct 15, 2012 7:33 am
by Minefox
uniqu3 wrote:You need {content} tag in template.
There's a {content} tag included. In fact I tried every possible ways of adding new template (to dig out the problem) like copying the given original template and saving it in new template name. But still the it will give me the same result.

Re: No content blocks defined in template

Posted: Mon Oct 15, 2012 10:45 am
by Rolf
And your template looks like...?

Re: No content blocks defined in template

Posted: Mon Oct 15, 2012 8:23 pm
by Dr.CSS

Re: No content blocks defined in template

Posted: Thu Oct 18, 2012 4:51 am
by Minefox
Here it is:

CMS: 1.11.2 "Isabela"
Apache: 2.2.23
PHP: 5.3.17
MySQL: 5.5.27-cll
Operating system: linux

copying this code will give same error
{process_pagedata}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>{sitename} - {title}</title>
{metadata}
{cms_stylesheet}
</head>
</__body>

<!-- start header -->
<div id="header">
<h1>{sitename}</h1>
</div>
<!-- end header -->

<!-- start menu -->
<div id="menu">
{menu}
</div>
<!-- end menu -->

<!-- start content -->
<div id="content">
<h1>{title}</h1>
{content}
</div>
<!-- end content -->

<__body>
</__html>

Re: No content blocks defined in template

Posted: Thu Oct 18, 2012 7:12 pm
by fearmydesign
I am having the exact same problem! Here is my screenshot (attached) of my newly installed CMSMS 1.11.2

I will say that I have never had ANY issues with the checksum file until today - it gave me all kinds of errors. Not sure if related. This a GoDaddy Hosting account, not sure if that has anything to do with it (1st time). The checksum file was: cmsmadesimple-1.11.2-full-checksum.dat

I haven't even installed any modules or anything - fresh/clean install
The rest of the installation went smooth besides the checksum

Thank you all for your help.
screnshot
screnshot

Re: No content blocks defined in template

Posted: Thu Oct 18, 2012 7:28 pm
by uniqu3
In both templates i see space in <__html > tag, could that be causing it?

Re: No content blocks defined in template

Posted: Thu Oct 18, 2012 7:48 pm
by fearmydesign
uniqu3 wrote:In both templates i see space in <__html > tag, could that be causing it?
Thanks for your reply, but I am afraid not. I tried these (removed the space at the end);

<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<__html>

and its weird, because all I am doing is just clicking the "Add New Template" link, I give it a name (home) and submit.

UPDATE: just tried creating a new template on my other site and it worked fine with the space ...html >

UPDATE 2: tried switching to NCleanGrey theme (thought it would help) but I got the same error.

Re: No content blocks defined in template

Posted: Thu Oct 18, 2012 7:56 pm
by fearmydesign
DO you guys think it has anything to do with the Hostname used?
Because this is a GoDaddy hosting account, the hostname is not the usual localhost, instead is this weird:

WebSite.db.2281057.hostedresourced.com

?

Just trying to think what it could be...

Re: No content blocks defined in template

Posted: Thu Oct 18, 2012 8:50 pm
by fearmydesign
Actually nope! still NOT working... I tried changing the template on the home page to my newly created template (that I though was fine), and I got the following errors...! ugh, man!!

Warning: Invalid argument supplied for foreach() in /home/content/59/9981059/html/lib/classes/contenttypes/Content.inc.php on line 139

Warning: Cannot modify header information - headers already sent by (output started at /home/content/59/9981059/html/lib/classes/contenttypes/Content.inc.php:139) in /home/content/59/9981059/html/include.php on line 98

Warning: Cannot modify header information - headers already sent by (output started at /home/content/59/9981059/html/lib/classes/contenttypes/Content.inc.php:139) in /home/content/59/9981059/html/include.php on line 101

Warning: Cannot modify header information - headers already sent by (output started at /home/content/59/9981059/html/lib/classes/contenttypes/Content.inc.php:139) in /home/content/59/9981059/html/include.php on line 104

Warning: Cannot modify header information - headers already sent by (output started at /home/content/59/9981059/html/lib/classes/contenttypes/Content.inc.php:139) in /home/content/59/9981059/html/include.php on line 105

Warning: Cannot modify header information - headers already sent by (output started at /home/content/59/9981059/html/lib/classes/contenttypes/Content.inc.php:139) in /home/content/59/9981059/html/include.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/content/59/9981059/html/lib/classes/contenttypes/Content.inc.php:139) in /home/content/59/9981059/html/include.php on line 111

Re: No content blocks defined in template

Posted: Fri Oct 19, 2012 12:42 am
by Dr.CSS
A full paste of your system info may help, not what comes in the second page of it...

Re: No content blocks defined in template

Posted: Fri Oct 19, 2012 1:30 am
by Minefox
Dr.CSS wrote:A full paste of your system info may help, not what comes in the second page of it...
heres mine..
CMS Install Information
CMS Version 1.11.2


Installed Modules
CMSMailer 5.2.1
CMSPrinting 1.0.3
FileManager 1.4.1
MenuManager 1.8.4
MicroTiny 1.2.3
ModuleManager 1.5.5
News 2.12.9
Search 1.7.7
ThemeManager 1.1.7


CMS Config Settings
php_memory_limit
process_whole_template
output_compression
max_upload_size 10000000
url_rewriting none
page_extension
query_var page
image_manipulation_prog GD
auto_alias_content true
locale
default_encoding utf-8
admin_encoding utf-8
set_names true
debug false
root_url http://www.piang.net
ssl_url https://www.piang.net
root_path Success /home/piang21/public_html (0755)
previews_path Success /home/piang21/public_html/tmp/cache (0755)
uploads_path Success /home/piang21/public_html/uploads (0755)
uploads_url http://www.piang.net/uploads
image_uploads_path Success /home/piang21/public_html/uploads/images (0755)
image_uploads_url http://www.piang.net/uploads/images
ssl_uploads_url https://www.piang.net/uploads
use_smarty_php_tags


PHP Information
Current PHP Version (phpversion) Success 5.3.17
md5 function (md5_function) Success On (True)
GD version (gd_version) Success 2
tempnam function (tempnam_function) Success On (True)
Magic quotes in runtime (magic_quotes_runtime) Success Off (False)
Is E_STRICT disabled in error_reporting (E_STRICT) Success
Is E_DEPRECATED disabled in error_reporting (E_DEPRECATED) Success
PHP Effective Memory Limit (memory_limit) Success 64M
Maximum Execution Time (max_execution_time) Caution 30 ?
PHP output_buffering (output_buffering) Success On
PHP Safe Mode (safe_mode) Success Off (False)
File uploads (file_uploads) Success On (True)
Maximum Post Size (post_max_size) Success 10M
Maximum Upload Size (upload_max_filesize) Success 10M
Session Save Path (session_save_path) Success /tmp (1777)
Sessions are allowed to use Cookies (session_use_cookies) Success On (True)
Basic XML (expat) support (xml_function) Success On (True)
Checking for the XMLReader class (xmlreader_class) Success On (True)
Checking if the httpd process can create a file inside of a directory it created (create_dir_and_file) Success
PHP register_globals (register_globals) Success Off (False)
disable_functions in PHP (disable_functions) Caution system, passthru, exec, popen, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, highlight_file, escapeshellcmd, define_syslog_variables, posix_uname, posix_getpwuid, apache_child_termi nate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellarg, posix_uname, ftp_ exec, ftp_connect, ftp_login, ftp_get, ftp_put, ftp_nb_fput, ftp_raw, ftp_rawlist, ini_alter, ini_restore, inj ect_code, syslog, openlog, define_syslog_variables, apache_setenv, mysql_pconnect, eval, phpAds_XmlRpc, phpA ds_remoteInfo, phpAds_xmlrpcEncode, phpAds_xmlrpcDecode, xmlrpc_entity_decode, fp, fput ?
PHP Open Basedir (open_basedir) Success
Test for remote URL (test_remote_url) Success
fsockopen: Connection ok! Success
fopen: Connection ok! Success
Test ini_set (check_ini_set) Success On (True)
Test for the curl library (curl) Success On
Test curl version (curlversion) Success version 7.24.0, minimum recommended version is 7.19.7


Server Information
Server API (server_api) cgi-fcgi
Server Database (server_db_type) mysql (mysqli)
Server Database Version (server_db_version) Success 5.5.27
Check database access levels (server_db_grants) Success found a "grant all" statement that appears to be suitable
Server Software (server_software) apache
Server Operating System (server_os) linux 2.6.32-279.9.1.el6.x86_64 on x86_64


Permission Information
tmp Success /home/piang21/public_html/tmp (0755)
templates_c Success /home/piang21/public_html/tmp/templates_c (0755)
modules Success /home/piang21/public_html/modules (0755)
File Creation Mask (umask) Success /home/piang21/public_html/tmp/cache (0755)
config_file Failure 0777
config.php writable. It is more safe if you change permission to read-only

Re: No content blocks defined in template

Posted: Sat Oct 20, 2012 9:18 am
by Rolf
@fearmydesign
Looks like a typo in your template: {content)

Re: No content blocks defined in template

Posted: Sat Oct 20, 2012 10:05 am
by Minefox
any clues guys with this problem in CMS?