Page 1 of 1

Error: No Content given!

Posted: Tue Sep 22, 2009 7:00 am
by squishy
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!

Re: Error: No Content given!

Posted: Tue Sep 22, 2009 7:14 am
by baresi
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!

Posted: Sun Sep 27, 2009 11:07 pm
by squishy
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!

Re: Error: No Content given!

Posted: Sun Sep 27, 2009 11:13 pm
by baresi
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

Re: Error: No Content given!

Posted: Mon Sep 28, 2009 12:08 am
by squishy
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'}"

Re: Error: No Content given!

Posted: Mon Sep 28, 2009 12:20 am
by baresi
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!

Posted: Mon Sep 28, 2009 1:12 am
by squishy
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"

Re: Error: No Content given!

Posted: Mon Sep 28, 2009 2:33 am
by baresi
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

Re: Error: No Content given!

Posted: Mon Sep 28, 2009 3:45 am
by Jeff
Upgrade!!!!!!

Re: Error: No Content given!

Posted: Tue Sep 29, 2009 6:25 am
by squishy
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?

Re: Error: No Content given!

Posted: Mon Oct 05, 2009 6:16 pm
by Jeff
Again no system information. We have been through this once, already.