Standard content block is been refused

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
MDK
Forum Members
Forum Members
Posts: 76
Joined: Sun Apr 24, 2011 12:17 pm

Standard content block is been refused

Post by MDK »

This is the second time I got this problem. I just installed the new version of cmsms but when I want to add a new template it gives me the message No content blocks defined in template .

I tried this on 2 other webhosters but I still te same problem. I now downgraded to version 1.11.1 but no SOLUTION.

Can someone help me because I cant get out of this.

My temp is this

Code: Select all

{process_pagedata}
<!DOCTYPE html>
<__html lang="nl">
<head>
<title>{sitename} - {title}</title>
{metadata}
{cms_stylesheet}


        {literal}
        <__script__ src="js/jquery-1.7.1.min.js"></__script>
        {/literal}
     {literal}
   <__script__ type="text/javascript" src="js/superfish.js"></__script>
 {/literal}
     {literal}
   <__script__ type="text/javascript" src="js/jquery.hoverIntent.minified.js"></__script>
 {/literal}
     {literal}
   <__script__ type="text/javascript" src="js/FF-cash.js"></__script>
 {/literal}
     {literal}
   <__script__ type="text/javascript" src="js/tms-0.4.1.js"></__script>
 {/literal}
     {literal}
   <__script__ type="text/javascript" src="js/uCarousel.js"></__script>
 {/literal}
     {literal}
   <__script__ type="text/javascript" src="js/jquery.tools.min.js"></__script>
 {/literal}
     {literal}
   <__script__ type="text/javascript" src="js/jquery.jqtransform.js"></__script>
 {/literal}
     {literal}
   <__script__ type="text/javascript" src="js/jquery.quicksand.js"></__script>
 {/literal}
     {literal}
   <__script__ type="text/javascript" src="js/jquery.snippet.min.js"></__script>
 {/literal}
     {literal}
   <__script__ type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></__script>
 {/literal}
     {literal}
   <__script__ type="text/javascript" src="js/jquery.cycle.all.min.js"></__script>
 {/literal}
 
</head>

</__body id="page1">

<div class="main">
<!-- Header -->
<header>
   <div class="header_top">
        <div class="header_light">
            <div class="container_12">
                <div class="">
                    <article class="grid_4">
                        <div class="logo"><a href="index.html">Restaurant Voorbeeld</a></div>
                    </article>
                    <article class="grid_8">
                        <nav>
                            {menu template="Test"}
                        </nav>
                        <div class="clear"></div>
                    </article>
                    <div class="clear"></div>
                </div>
                <div class="">
                    <div class="indent-top">
                        <article class="grid_12">
                            <div class="slider_bg">
                                <div class="slider">
                                    <ul class="items">
                                        <li>
                                            <img src="images/slide_img1.jpg" alt="">
                                            <div class="banner"></div>
                                        </li>
                                        <li>
                                            <img src="images/slide_img2.jpg" alt="">
                                            <div class="banner"></div>
                                        </li>
                                        <li>
                                            <img src="images/slide_img3.jpg" alt="">
                                            <div class="banner"></div>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </article>
                        <div class="clear"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</header>
<!-- Content -->
<section id="content">
   <div class="container_12">
       <div class="wrapper border-2">
           <article class="grid_4">
               <div class="bg-1 indent size-1">
                   <div class="wrapper">
                       <figure class="border-1 img-indent">
                           <img src="images/page1_img1.png" alt="">
                        </figure>
                        <div class="extra-wrap">
                           <h4>Menu</h4>
                            <a href="more.html">Lorem ipsum dolor sit amet, conseer adipiscing elit </a>
                        </div>
                    </div>
                </div>
            </article>
           <article class="grid_4">
               <div class="bg-1 indent size-1">
                   <div class="wrapper">
                       <figure class="border-1 img-indent">
                           <img src="images/page1_img2.png" alt="">
                        </figure>
                        <div class="extra-wrap">
                           <h4>Reserveren</h4>
                            <a href="more.html">Lorem ipsum dolor sit amet, conseer adipiscing elit </a>
                        </div>
                    </div>
                </div>
            </article>
           <article class="grid_4">
               <div class="bg-1 indent size-1">
                   <div class="wrapper">
                       <figure class="border-1 img-indent">
                           <img src="images/page1_img3.png" alt="">
                        </figure>
                        <div class="extra-wrap">
                           <h4>Arrangementen</h4>
                            <a href="more.html">Lorem ipsum dolor sit amet, conseer adipiscing elit </a>
                        </div>
                    </div>
                </div>
            </article>
        </div>
        <div class="wrapper border-2">
           <article class="grid_8">
               <h4>Welkom bij </h4>
                <div class="wrapper">
                   <article class="grid_3 alpha">
                       <figure class="margin-top">
                           <img src="images/logoMini.png" alt="">
                        </figure>
                    </article>
                    <article class="grid_5 omega">
                       <p>{content}</p>
                        <a href="more.html" class="button-1">Lees meer</a>
                    </article>
                </div>
            </article>
            <article class="grid_4">
                <h4>Titel</h4>
                <ul class="ul-1">
                    <li><a href="more.html">Voorbeeld tekstst</a></li>
                    <li><a href="more.html">Voorbeeld tekst</a></li>
                    <li><a href="more.html">Voorbeeld tekst</a></li>
                    <li><a href="more.html">Voorbeeld tekst</a></li>
           
                </ul>
            </article>
        </div>
       
                   
        </div>
             
           
</section>
<!-- Footer -->
<footer>
   <div class="container_12">
       <div class="wrapper">
           <article class="grid_12">
               <div>{global_content name='footer'}/div>
               
            </article>
        </div>
    </div>
</footer>
</div>

<__body>
</__html>
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Standard content block is been refused

Post by calguy1000 »

I just tested this template and had no difficulties in 1.11.2 on a live site, on a remote server (not even my virtual machine this time).

1. went to layout >> templates, and created a new tempalte
2. selected all the default text and deleted it
3. copied your template into the clipboard and pasted it into the create template form.
4. it submit
NOTE: NO ERRORS

5. clicked on the new template, added a smarty comment and clicked 'submit'
NOTE: NO ERRORS

6. went to Content >> Pages, and created a new page
6.1 selected the new template
(page refreshed, I had one content block with a wysiwyg in the main tab).
6.2 entered some garbage values for title, menu text, and content
6.3 clicked submit
NOTE: NO ERRORS

7. edited this new page
7.1 - changed the text in the content area
7.2 - clicked submit
NOTE: NO ERRORS

So.... I would suggest that you now do a system verification, check your php error logs, check the CMSMS audit log, enable debug mode.... and check for warnings,notices, errors etc.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
MDK
Forum Members
Forum Members
Posts: 76
Joined: Sun Apr 24, 2011 12:17 pm

Re: Standard content block is been refused

Post by MDK »

Hi calguy,

I found this in the systeminfo

Check database access levels (server_db_grants)

Caution could not find a suitable "grant all" permission. this may mean you could have problems installing or removing modules. or even adding and deleting items, including pages


Do yoy think this is the cause of it ?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Standard content block is been refused

Post by calguy1000 »

Uhm... I would hope that the error message would be a bit more obvious than the one you're receiving. However, yeah that'd be my first suspicion.

if the database user account that is in the config.php file does not have permission to create, or alter tables to that database (usually GRANT ALL PERMISSIONS is used rather than individual permissions). Then that would mean that your upgrade was faulty.

enable debug mode, and check for sql errors.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: Standard content block is been refused

Post by applejack »

Also you do not need to put {literal} tags around every call to remote js files. You only need it if any script or style code contains a { or a } within the actual template. So in your template you do not need it at all.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Standard content block is been refused

Post by calguy1000 »

FYI: With CMSMS 1.11.x the need for {literal} tags has been significantly reduced.

I only 'usually' need them (or ldelim/rdelim) now when I need to pass arguments to a javascript object.

like: $('a.fancybox').fancybox({option: value, option2: value2});
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “CMSMS Core”