Error: No Content given!
Error: No Content given!
Hi,
I've been maintaining a website with CMS Made Simple.
I checked out the website one day and it said that there was an database error for a counter on the number of people visiting the site.
So I went to the page and deleted the "{...}" (I can't exactly remember what it was, because the website was already setup by somebody else.)
I clicked on Submit, and then went back to the page to preview it. Only to see that all the content had been delete from that page.
From this time on I have not been able to Add a Page, or Edit this page. I have typed in text numerous times, and pressed Preview - nothing is shown, OR pressed Submit and still nothing on the page. I haven't been game to try editing another page, just in case this ruins that page too.
Notably, there is space on the server to do all these things.
Any advice or help would be much appreciated!
Thanks!
I've been maintaining a website with CMS Made Simple.
I checked out the website one day and it said that there was an database error for a counter on the number of people visiting the site.
So I went to the page and deleted the "{...}" (I can't exactly remember what it was, because the website was already setup by somebody else.)
I clicked on Submit, and then went back to the page to preview it. Only to see that all the content had been delete from that page.
From this time on I have not been able to Add a Page, or Edit this page. I have typed in text numerous times, and pressed Preview - nothing is shown, OR pressed Submit and still nothing on the page. I haven't been game to try editing another page, just in case this ruins that page too.
Notably, there is space on the server to do all these things.
Any advice or help would be much appreciated!
Thanks!
Re: Error: No Content given!
What do you mean by deleted the {...}? From that and the title of the thread at least it seems that your template is missing the {content} tag. You need at least one {content} in your templates.
Re: Error: No Content given!
What I deleted was something like "{cms_module module=HitCounter}"
I have not edited the templates. However, what should I be looking for in regard to the {content} tag?
Thanks again!
I have not edited the templates. However, what should I be looking for in regard to the {content} tag?
Thanks again!
Re: Error: No Content given!
The most common reason that produces "Error: No Content given" is the absence of "{content}" without quotes in your template
or
if it exists in your template, when you are adding content you are leaving its text area blank
or
if it exists in your template, when you are adding content you are leaving its text area blank
Last edited by Anonymous on Sun Sep 27, 2009 11:15 pm, edited 1 time in total.
Re: Error: No Content given!
I had a look in the template for this page and it does have {content}. As per below:
{content}
I am actually entering text in & trying, but it is still not coming up.
Notably I cannot add a page to the site.
I also get an error in another template which is "Error: The VisitorStats module encountered a DB error."
The only code that has VisitorStats is this:
"{cms_module module='VisitorStats'}"
{content}
I am actually entering text in & trying, but it is still not coming up.
Notably I cannot add a page to the site.
I also get an error in another template which is "Error: The VisitorStats module encountered a DB error."
The only code that has VisitorStats is this:
"{cms_module module='VisitorStats'}"
Re: Error: No Content given!
I guess to diagnose further info like CMSms version and system information is needed (information found at site admin--->system information)
Re: Error: No Content given!
Oddly enough, I cannot see that link in "Site Admin"
The options available are:
-> Global Settings
-> Admin Log
-> HitCounter
By the way, I am logged in as the "Admin" account
The version is: 1.0.4 "Lanai"
The options available are:
-> Global Settings
-> Admin Log
-> HitCounter
By the way, I am logged in as the "Admin" account
The version is: 1.0.4 "Lanai"
Re: Error: No Content given!
That version is very old and doesn't have the site information page built in, your best bet is to
-create a blank page and put {support_info} in it and then loading the page which will show you some relevant info
-to look in server error logs (asking your host if you don't have access)
-editing your config.php file and changing $config['debug'] from false to true and then looking at the debug info on the bottom of your pages
and most of all to upgrade to latest version
-create a blank page and put {support_info} in it and then loading the page which will show you some relevant info
-to look in server error logs (asking your host if you don't have access)
-editing your config.php file and changing $config['debug'] from false to true and then looking at the debug info on the bottom of your pages
and most of all to upgrade to latest version
Re: Error: No Content given!
Upgrade!!!!!!
Re: Error: No Content given!
Well, in regard to the previous problems, we think that it was because of the DB going over it's space limit and being corrupted
However, I've been trying to upgrade a copy of the cms locally.. but I've been getting a number of errors..
So, I'm using XAMPP (latest version)
I've tried to upgrade to v1.5 & 1.6, but I get this error lots of times
Warning: Parameter 1 to cms_module_Lang() expected to be a reference, value given in C:\xmapp\xampp\htdocs\www\lib\classes\class.module.inc.php on line 2083
and 2 more errors:
string(123) "Smarty error: [in upgradeheader.tpl line 25]: syntax error: unrecognized tag 'assign' (Smarty_Compiler.class.php, line 590)"
string(117) "Smarty error: [in upgrade1.tpl line 19]: syntax error: unrecognized tag 'cycle' (Smarty_Compiler.class.php, line 590)"
If I try to upgrade to v1.6.5 I get these errors:
string(123) "Smarty error: [in upgradeheader.tpl line 25]: syntax error: unrecognized tag 'assign' (Smarty_Compiler.class.php, line 590)"
string(117) "Smarty error: [in upgrade1.tpl line 19]: syntax error: unrecognized tag 'cycle' (Smarty_Compiler.class.php, line 590)"
and, there are no pictures of the numbers for each of the steps
Any ideas? Any more information you want?
However, I've been trying to upgrade a copy of the cms locally.. but I've been getting a number of errors..
So, I'm using XAMPP (latest version)
I've tried to upgrade to v1.5 & 1.6, but I get this error lots of times
Warning: Parameter 1 to cms_module_Lang() expected to be a reference, value given in C:\xmapp\xampp\htdocs\www\lib\classes\class.module.inc.php on line 2083
and 2 more errors:
string(123) "Smarty error: [in upgradeheader.tpl line 25]: syntax error: unrecognized tag 'assign' (Smarty_Compiler.class.php, line 590)"
string(117) "Smarty error: [in upgrade1.tpl line 19]: syntax error: unrecognized tag 'cycle' (Smarty_Compiler.class.php, line 590)"
If I try to upgrade to v1.6.5 I get these errors:
string(123) "Smarty error: [in upgradeheader.tpl line 25]: syntax error: unrecognized tag 'assign' (Smarty_Compiler.class.php, line 590)"
string(117) "Smarty error: [in upgrade1.tpl line 19]: syntax error: unrecognized tag 'cycle' (Smarty_Compiler.class.php, line 590)"
and, there are no pictures of the numbers for each of the steps
Any ideas? Any more information you want?
Re: Error: No Content given!
Again no system information. We have been through this once, already.