Pls help me to drive through this problem

ive always get this error after posting some advertisement...


Warning: sprintf() [function.sprintf]: Too few arguments in /home3/philtube/public_html/inc/design.inc.php on line 193

Warning: Cannot modify header information - headers already sent by (output started at /home3/philtube/public_html/inc/design.inc.php:193) in /home3/philtube/public_html/inc/design.inc.php on line 498

Quote · 13 Sep 2009

I think one of your page has no header title to check which one try thi

in inc/design.inc.php

function DesignBoxContent ( $title, $content, $db_num = 0, $caption_item = '' ) {

add the line below

if ( !$title ) $title = "NO HEADER TITLE";

Live Support http://dolphinbugfixing.com
Quote · 13 Sep 2009

ive followed your instruction but still i have a problem... as ive check with the content files i have this in line no 499 is

header( 'Content-type: text/html; charset=utf-8' );

it means theres an error in this code...

pls help me. thank

Quote · 16 Sep 2009

Is this a base install or modified?  Thinking modified with what your getting for your error.

 

Okay, to find the solution, we need to see what the specific issue is.  Your on a good start, now you need to hop into the source code and remove what that

 

if ( !@$title ) $title - "NO HEADER TITLE";

 

That you put in to try and fix this, that's not a solution trying to tell Dolphin to ignore the Header Title when he has NO Header at all.  Issue here is that Dolphin says it's trying to call the headers from somewhere other than where it should.  Yes, I know a base install line 193 is looking at the header title, but there's more going on here.

 

So open file:

 

inc/design.inc.php and locate line 193:

 

Here's the code if all you've done is uploaded a fresh template which is what this looks like you did:


 

 // replace template variables
 $templ = str_replace ( "__title__", $f($title), $templ );
 $templ = str_replace ( "__caption_item__", $caption_item, $templ );
 $templ = str_replace ( "__designbox_content__", $content, $templ );
    $templ = str_replace ( "__images__", $site['images'], $templ );
 if ( function_exists( 'colors_select' ) )
  $templ = str_replace ( "__designBoxColor__", colors_select(), $templ );

    if ($tmpl == 'act')
    {
     if ($index_db_color_randomize == 1)
        {
            $templ = str_replace ( "__db_color__", get_active_color(), $templ );
        }
        else
        {
             $templ = str_replace ( "__db_color__", $index_db_color, $templ );
        }
    }

 return  $templ;
}


Note, line 193 is in read for a base install of dolphin.

 

Also look at line 498:

 


 

// process includes (3-level)
 for( $i = 0; $i < 3; $i ++ ) {
  $templ = preg_replace_callback( '/__include (.*)__/',     'TmplInclude',     $templ );
  $templ = preg_replace_callback( '/__includebase (.*)__/', 'TmplIncludeBase', $templ );
 }
 
 header( 'Content-type: text/html; charset=utf-8' );
 $echo( $templ );
}

 


 

If your code looks like this, then your inc/design.inc.php file is fine and the issue is with the template that you uploaded, if it looks different then please show us what you have so it can be fixed.

Quote · 16 Sep 2009

Ive installed this boonex without any problem until ive find out that theres an error on Classified modules... thats the problem that i have encountered... ive check through the code that you have posted in this forum and its 100% same with the code on my boonex.

Till now i cant rid on it.. thanks and still looking forward for the solution of this problem.

Quote · 17 Sep 2009

Although I haven't seen this error with classified ads, I have seen this or a very similar issue with orca forums before. However, when I was working on this issue with orca I did not visit classified related pages until after the orca problem was resolved. So it could have been there at the same time, I just didn't visit the page to see it.

The problem for this, which might be related was orca language and /orca/conf/params.conf file.

Solution was to remove/delete the file /orca/conf/params.conf and recompile orca language...clicking the little (en) in your orca admin area. Clicking the (en) will compile orca language for your site, and the .conf file will be regenerated when you enter orca admin area again. You might just rename params.conf to something like params.conf-backup or similar. If the file don't exist yet then just compile your orca language. But if it is there rename it so a new one can be regenerated.

I noticed you have not compiled orca language for your site yet as I see the [L[Forums Index]] and similar brackets throughout your entire orca forum. Compiling orca language the (en) will do away with all those [[Brackets]].

If you use groups which it looks like you do you should compile the language for groups too, clicking the (en) in groups admin to do away with [[Brackets]] in groups.

After you have done this, check the page with the error again.

Don't know if this is your solution, but worth a try and you should compile your orca and groups anyway.


Good Luck!

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 17 Sep 2009

ive visit my ftp and i find out that /orca/conf/params.conf but it was empty and i cant find params.conf ... where should i have this data?

Quote · 20 Sep 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.