Codoforum related discussions
fatal error in forum

in admin panel ,
it not shown global setting page it just gives an error message

Uncaught --> Smarty: Invalid compiled template for 'config.tpl'

Plz reply me soon....

in admin panel , it not shown global setting page it just gives an error message ```` Uncaught --> Smarty: Invalid compiled template for 'config.tpl' ```` Plz reply me soon....
edited Jan 13 '16 at 7:37 am

Can you edit the template codoforum/admin/layout/templates/config.tpl and add a blank div at the top

<div></div>
Can you edit the template codoforum/admin/layout/templates/config.tpl and add a blank div at the top ``` &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt; ```

i added blank div at top but a same error msg displaying...

i added blank div at top but a same error msg displaying...

There is some problem with the compiled template

Did you make any changes in the template before ?

Can you copy paste the contents of that file admin/layout/templates/config.tpl ?

There is some problem with the compiled template Did you make any changes in the template before ? Can you copy paste the contents of that file admin/layout/templates/config.tpl ?

my config.tpl

<div> </div>
<section class="content-header" id="breadcrumb_forthistemplate_hack">
    <h1>&nbsp;</h1>
    <ol class="breadcrumb" style="float:left; left:10px;">
        <li><a href="index.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
        <li class="active"><i class="fa fa-wrench"></i> Global Settings</li>
    </ol>

</section>
<div class="col-md-6">
    <div  class="box box-info">
        <form class="box-body" action="?page=config" role="form" method="post" enctype="multipart/form-data">
            <!--
                Site URL: 
            <input type="text" class="form-control" name="site_url" value="{"site_url"|get_opt}" /><br/>
            -->

            <label>Site Title</label>
            <input type="text" class="form-control" name="site_title" value="{"site_title"|get_opt}" /><br/>

            <label>Site Description</label>
            <input type="text" class="form-control" name="site_description" value="{"site_description"|get_opt}" /><br/>

            <label>Admin Email</label>
            <input type="text" class="form-control" name="admin_email" value="{"admin_email"|get_opt}" /><br/>
            <!--
            Captcha Public Key:
            <input type="text" class="form-control" name="captcha_public_key" value="{"captcha_public_key"|get_opt}" /><br/>

            Captcha Private Key:
            <input type="text" class="form-control" name="captcha_private_key" value="{"captcha_private_key"|get_opt}" /><br/>
            -->
            <label>Password Min Length</label>
            <input type="text" class="form-control" name="register_pass_min" value="{"register_pass_min"|get_opt}" /><br/>

            <label>Num of posts(All topics Page)</label>
            <input type="text" class="form-control" name="num_posts_all_topics" value="{"num_posts_all_topics"|get_opt}" /><br/>

            <label>Num of posts(while viewing a category)</label>
            <input type="text" class="form-control" name="num_posts_cat_topics" value="{"num_posts_cat_topics"|get_opt}" /><br/>

            <label>Num of posts(While viewing a topic)</label>
            <input type="text" class="form-control" name="num_posts_per_topic" value="{"num_posts_per_topic"|get_opt}" /><br/>

            <label>Forum attachment path</label>
            <input type="text" class="form-control" name="forum_attachments_path" value="{"forum_attachments_path"|get_opt}" /><br/>

            <label>Allowed Upload types(comma separated)</label>
            <input type="text" class="form-control" name="forum_attachments_exts" value="{"forum_attachments_exts"|get_opt}" /><br/>

            <label>Max Upload size(MB)</label>
            <input type="text" class="form-control" name="forum_attachments_size" value="{"forum_attachments_size"|get_opt}" /><br/>

            <label>Allowed Mimetypes</label>
            <input type="text" class="form-control" name="forum_attachments_mimetypes" value="{"forum_attachments_mimetypes"|get_opt}" /><br/>

            <!--
            <input type="text" class="form-control" name="forum_attachments_multiple" value="{"forum_attachments_mimetypes"|get_opt}" /><br/>

            <input type="text" class="form-control" name="forum_attachments_parallel" value="{"forum_attachments_mimetypes"|get_opt}" /><br/>
            <input type="text" class="form-control" name="forum_attachments_max" value="{"forum_attachments_mimetypes"|get_opt}" /><br/>
            -->
            <label>Min characters for a post</label>
            <input type="text" class="form-control" name="reply_min_chars" value="{"reply_min_chars"|get_opt}" /><br/>

            <label>
                Account registrations require admin approval ?
            </label>
            <br/>
            <input id='reg_req'
                   class="simple form-control" name="reg_req_admin" 
                   {if {"reg_req_admin"|get_opt} eq "yes"} checked="checked" {/if}
                   type="checkbox"  data-toggle="toggle"
                   data-size="mini"
                   data-on="yes" data-off="no"
                   data-onstyle="success" data-offstyle="danger">
            <br/><hr/>

            <!--
            Captcha:
            <input type="text" class="form-control" name="captcha" value="{"captcha"|get_opt}" /><br/>
            -->
            <input type="hidden" name="CSRF_token" value="{$token}" />
            <input type="submit" value="Save" class="btn btn-primary"/>
        </form>
        <br/>
        <br/>
    </div>
</div>
my config.tpl ```` &amp;lt;div&amp;gt; &amp;lt;/div&amp;gt; &amp;lt;section class=&quot;content-header&quot; id=&quot;breadcrumb_forthistemplate_hack&quot;&amp;gt; &amp;lt;h1&amp;gt;&amp;amp;nbsp;&amp;lt;/h1&amp;gt; &amp;lt;ol class=&quot;breadcrumb&quot; style=&quot;float:left; left:10px;&quot;&amp;gt; &amp;lt;li&amp;gt;&amp;lt;a href=&quot;index.php&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-dashboard&quot;&amp;gt;&amp;lt;/i&amp;gt; Dashboard&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt; &amp;lt;li class=&quot;active&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-wrench&quot;&amp;gt;&amp;lt;/i&amp;gt; Global Settings&amp;lt;/li&amp;gt; &amp;lt;/ol&amp;gt; &amp;lt;/section&amp;gt; &amp;lt;div class=&quot;col-md-6&quot;&amp;gt; &amp;lt;div class=&quot;box box-info&quot;&amp;gt; &amp;lt;form class=&quot;box-body&quot; action=&quot;?page=config&quot; role=&quot;form&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&amp;gt; &amp;lt;!-- Site URL: &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;site_url&quot; value=&quot;{&quot;site_url&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; --&amp;gt; &amp;lt;label&amp;gt;Site Title&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;site_title&quot; value=&quot;{&quot;site_title&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;label&amp;gt;Site Description&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;site_description&quot; value=&quot;{&quot;site_description&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;label&amp;gt;Admin Email&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;admin_email&quot; value=&quot;{&quot;admin_email&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;!-- Captcha Public Key: &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;captcha_public_key&quot; value=&quot;{&quot;captcha_public_key&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; Captcha Private Key: &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;captcha_private_key&quot; value=&quot;{&quot;captcha_private_key&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; --&amp;gt; &amp;lt;label&amp;gt;Password Min Length&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;register_pass_min&quot; value=&quot;{&quot;register_pass_min&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;label&amp;gt;Num of posts(All topics Page)&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;num_posts_all_topics&quot; value=&quot;{&quot;num_posts_all_topics&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;label&amp;gt;Num of posts(while viewing a category)&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;num_posts_cat_topics&quot; value=&quot;{&quot;num_posts_cat_topics&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;label&amp;gt;Num of posts(While viewing a topic)&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;num_posts_per_topic&quot; value=&quot;{&quot;num_posts_per_topic&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;label&amp;gt;Forum attachment path&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;forum_attachments_path&quot; value=&quot;{&quot;forum_attachments_path&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;label&amp;gt;Allowed Upload types(comma separated)&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;forum_attachments_exts&quot; value=&quot;{&quot;forum_attachments_exts&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;label&amp;gt;Max Upload size(MB)&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;forum_attachments_size&quot; value=&quot;{&quot;forum_attachments_size&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;label&amp;gt;Allowed Mimetypes&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;forum_attachments_mimetypes&quot; value=&quot;{&quot;forum_attachments_mimetypes&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;!-- &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;forum_attachments_multiple&quot; value=&quot;{&quot;forum_attachments_mimetypes&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;forum_attachments_parallel&quot; value=&quot;{&quot;forum_attachments_mimetypes&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;forum_attachments_max&quot; value=&quot;{&quot;forum_attachments_mimetypes&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; --&amp;gt; &amp;lt;label&amp;gt;Min characters for a post&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;reply_min_chars&quot; value=&quot;{&quot;reply_min_chars&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;label&amp;gt; Account registrations require admin approval ? &amp;lt;/label&amp;gt; &amp;lt;br/&amp;gt; &amp;lt;input id=&#039;reg_req&#039; class=&quot;simple form-control&quot; name=&quot;reg_req_admin&quot; {if {&quot;reg_req_admin&quot;|get_opt} eq &quot;yes&quot;} checked=&quot;checked&quot; {/if} type=&quot;checkbox&quot; data-toggle=&quot;toggle&quot; data-size=&quot;mini&quot; data-on=&quot;yes&quot; data-off=&quot;no&quot; data-onstyle=&quot;success&quot; data-offstyle=&quot;danger&quot;&amp;gt; &amp;lt;br/&amp;gt;&amp;lt;hr/&amp;gt; &amp;lt;!-- Captcha: &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;captcha&quot; value=&quot;{&quot;captcha&quot;|get_opt}&quot; /&amp;gt;&amp;lt;br/&amp;gt; --&amp;gt; &amp;lt;input type=&quot;hidden&quot; name=&quot;CSRF_token&quot; value=&quot;{$token}&quot; /&amp;gt; &amp;lt;input type=&quot;submit&quot; value=&quot;Save&quot; class=&quot;btn btn-primary&quot;/&amp;gt; &amp;lt;/form&amp;gt; &amp;lt;br/&amp;gt; &amp;lt;br/&amp;gt; &amp;lt;/div&amp;gt; &amp;lt;/div&amp;gt; ````
edited Jan 19 '16 at 6:16 am

one more doubt..
in sso integration where to place the client.php file..
sso integration also problem for me..
help me smile

one more doubt.. in sso integration where to place the client.php file.. sso integration also problem for me.. help me (:|

hi
i made a changes in sso setting for single login, after all setting finished when i click the register it moves to my register page but after login its not login into forum ,

a forum looks like without login , and data's are also not stored in forum's database..
what can i do for that.
plz help me ...

hi i made a changes in sso setting for single login, after all setting finished when i click the register it moves to my register page but after login its not login into forum , a forum looks like without login , and data&#039;s are also not stored in forum&#039;s database.. what can i do for that. plz help me ...

You need to place that client.php and sso.php file in your website which you are integrating with. I guess, wordpress in your case.

Then, in the sso settings, get user path, you need to give the absolute url to that file
for eg. http://mywordpress.com/client.php

Can you paste the contents of your client.php file ?

You need to place that client.php and sso.php file in your website which you are integrating with. I guess, wordpress in your case. Then, in the sso settings, get user path, you need to give the absolute url to that file for eg. http://mywordpress.com/client.php Can you paste the contents of your client.php file ?
237
7
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft