Error: No Content given!

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.
Post Reply
squishy
New Member
New Member
Posts: 5
Joined: Tue Sep 22, 2009 6:46 am

Error: No Content given!

Post 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!
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: Error: No Content given!

Post 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.
squishy
New Member
New Member
Posts: 5
Joined: Tue Sep 22, 2009 6:46 am

Re: Error: No Content given!

Post 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!
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: Error: No Content given!

Post 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
Last edited by Anonymous on Sun Sep 27, 2009 11:15 pm, edited 1 time in total.
squishy
New Member
New Member
Posts: 5
Joined: Tue Sep 22, 2009 6:46 am

Re: Error: No Content given!

Post 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'}"
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: Error: No Content given!

Post by baresi »

I guess to diagnose further info like CMSms version and system information is needed (information found at site admin--->system information)
squishy
New Member
New Member
Posts: 5
Joined: Tue Sep 22, 2009 6:46 am

Re: Error: No Content given!

Post 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"
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: Error: No Content given!

Post 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
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Error: No Content given!

Post by Jeff »

Upgrade!!!!!!
squishy
New Member
New Member
Posts: 5
Joined: Tue Sep 22, 2009 6:46 am

Re: Error: No Content given!

Post 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?
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Error: No Content given!

Post by Jeff »

Again no system information. We have been through this once, already.
Post Reply

Return to “CMSMS Core”