Page 1 of 1

Error - No Content given!

Posted: Thu Nov 12, 2009 6:10 pm
by pukka
Hello,

I have used CMSMS a few times now and everything has gone smoothly until now.

When i try to enter some content into the text area, it gives the error message "No Content given!". It did the same thing last night but for some reason when i used safari, it worked.

Today however it just wont work. I have tried firefox, IE and safari to no avail.

Below is the system information.

-------------------------------------

CMS Install Information:

CMS Version

1.6.6

Installed Modules

CMSMailer

1.73.14

FileManager

1.0.1

MenuManager

1.6.2

ModuleManager

1.3.1

News

2.10.3

nuSOAP

1.0.1

Printing

1.0.4

Search

1.6.1

ThemeManager

1.1.1

TinyMCE

2.5.5

Config Information

php_memory_limit:



process_whole_template:

false

max_upload_size:

12000000

default_upload_permission:

664

assume_mod_rewrite:

false

page_extension:



internal_pretty_urls:

false

use_hierarchy:

true

debug:

false

output_compression:

false

root_url:

http://www.website.co.uk

root_path:

/customers/website.co.uk/website.co.uk/httpd.www (0711) Success

previews_path:

/customers/website.co.uk/website.co.uk/httpd.www/tmp/cache (0777) Success

uploads_path:

/customers/website.co.uk/website.co.uk/httpd.www/uploads (0777) Success

uploads_url:

http://www.website.co.uk/uploads

image_uploads_path:

/customers/website.co.uk/website.co.uk/httpd.www/uploads/images (0777) Success

image_uploads_url:

http://www.website.co.uk/uploads/images

use_smarty_php_tags:

false

locale:



default_encoding:

utf-8

admin_encoding:

utf-8
PHP Information:

Current PHP Version (phpversion):

5.2.10 Success

md5 function (md5_function):

On (True) Success

GD version (gd_version):

2 Success

tempnam function (tempnam_function):

On (True) Success

Magic quotes in runtime (magic_quotes_runtime):

Off (False) Success

PHP Effective Memory Limit (memory_limit):

24M Success

Maximum Execution Time (max_execution_time):

30 Caution ?

PHP Safe Mode (safe_mode):

On (True) Caution ?

Session Save Path (session_save_path):

/customers/website.co.uk/website.co.uk/tmp (0755) Success

Session Use Cookies (session.use_cookies):

On (True) Success

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):

Off (False) Success

PHP output_buffering (output_buffering):

On Success

disable_functions in PHP (disable_functions):

disk_total_space, diskfreespace Caution ?

PHP Open Basedir (open_basedir):

 Success

Test for remote URL (test_remote_url):

Success
fsockopen: Connection ok! Success
fopen: Connection ok! Success

File uploads (file_uploads):

On (True) Success

Maximum Post Size (post_max_size):

12M Success

Maximum Upload Size (upload_max_filesize):

12M Success

Basic XML (expat) support (xml_function):

On (True) Success

Test file_get_contents (file_get_contents):

On (True) Success

Test ini_set (check_ini_set):

On (True) Success
Server Information:

Server API (server_api):

cgi-fcgi

Server Database (server_db_type):

MySQL (mysql)

Server Database Version (server_db_version):

5.0.32 Success

Server Software (server_software):

Apache

Server Operating System (server_os):

Linux 2.6.26-1-vserver-amd64 On x86_64

Permission Information

tmp:

/customers/website.co.uk/website.co.uk/httpd.www/tmp (0777) Success

templates_c:

/customers/website.co.uk/website.co.uk/httpd.www/tmp/templates_c (0777) Success

modules:

/customers/website.co.uk/website.co.uk/httpd.www/modules (0777) Success

File Creation Mask (umask):

/customers/website.co.uk/website.co.uk/httpd.www/tmp/cache (0777) Success

config_file:

0444 Success

-------------------------------------------------------------

Thanks.

Re: Error - No Content given!

Posted: Thu Nov 12, 2009 6:56 pm
by Rolf
Hi Pukka,

Do you have once, just the {content} tag in your template?

Grtz. Rolf

Re: Error - No Content given!

Posted: Thu Nov 12, 2009 7:23 pm
by pukka
Yes i have the {content} tag in the template.

The odd thing is that last night i managed to create a page based on template1. Today however i can't create a page using either template1 or template2.


I can edit the one page i managed to create but i cannot create another page based on the same template.


Are there any problems on the system information?

Re: Error - No Content given!

Posted: Thu Nov 12, 2009 7:36 pm
by Rolf
pukka wrote: Are there any problems on the system information?
PHP Effective Memory Limit (memory_limit):  24M
Change this to 64M in the config.php and you don't have a problem here  ;)

Maximum Execution Time (max_execution_time): 30
To increase this, add in to config.php:

Code: Select all

ini_set('max_execution_time', 60);
PHP Safe Mode (safe_mode):  On (True)
CMSMS isn't supporting Safe Mode On. Try contacting your webhost to switch it off.


Try also to clear the Cache in the admin
Siteadmin >> Global Settings >> Advanced Setup

If this isn't working either, is it possible to create a temporarily admin login for me? You can mail or pm me these.

Grtz. Rolf

Re: Error - No Content given!

Posted: Mon Nov 23, 2009 4:35 am
by corn4th
I, too, am having this problem. Here is my system info:

----------------------------------------------

Cms Version: 1.6.5

Installed Modules:

    * CMSMailer: 1.73.14
    * FileManager: 1.0.1
    * MenuManager: 1.6.2
    * ModuleManager: 1.3.1
    * News: 2.10.3
    * nuSOAP: 1.0.1
    * Printing: 1.0.3
    * Search: 1.6.1
    * ThemeManager: 1.1.1
    * TinyMCE: 2.5.4
    * FormBuilder: 0.5.12
    * Gallery: 1.1.1


Config Information:

    * php_memory_limit:
    * process_whole_template: false
    * max_upload_size: 2000000
    * default_upload_permission: 664
    * assume_mod_rewrite: false
    * page_extension:
    * internal_pretty_urls: false
    * use_hierarchy: true


Php Information:

    * phpversion: 4.3.11
    * md5_function: On (True)
    * gd_version: 2
    * tempnam_function: On (True)
    * magic_quotes_runtime: Off (False)
    * memory_limit:
    * max_execution_time: 30
    * safe_mode: Off (False)
    * session_save_path: /tmp (1777)


Server Information:

    * Server Api: cgi-fcgi
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 5.0.67.d7


----------------------------------------------
Here is the section of the template where I am trying to add the content:


       
       
       
           
            {content block="tab_1title" oneline="true"}
                {content block="tab_1desc"}
               
               
               
               
           
               
           
           

Re: Error - No Content given!

Posted: Mon Nov 23, 2009 7:26 am
by Rolf
Hello corn4th
corn4th wrote:
       
       
           
           
               {content block="tab_1title" oneline="true"}
                {content block="tab_1desc"}
               
               
               
                   
               
               
           
           
You need to put one plain {content} tag beside the {content block=...} tags.

Rolf

Re: Error - No Content given!

Posted: Mon Nov 23, 2009 5:10 pm
by Dr.CSS
If you don't have one {content} tag in your template it will still show up when editing page but won't show on front end you have to have {content} tag in your template...

Re: Error - No Content given!

Posted: Mon Nov 23, 2009 7:21 pm
by pukka
Dr. CSS wrote: If you don't have one {content} tag in your template it will still show up when editing page but won't show on front end you have to have {content} tag in your template...

Do you mean that content entered into the empty {content} tag won't appear on the front end?

I just tried it and any information entered into the empty {content} tag appears on the front page. Why was it changed from previous versions of CMSMS where an empty {content} tag was not needed?

Re: Error - No Content given!

Posted: Mon Nov 23, 2009 7:46 pm
by RonnyK
pukka,

the default {content} tag is needed, as many modules rely on it to be there. Some logic was changed, to reflect the preview logic and so....

Basically you MUST have {content} and are free to use others as wanted....

Ronny

Re: Error - No Content given!

Posted: Tue Nov 24, 2009 1:34 pm
by corn4th
Thank you Rolf, I will do that.