Shoutbox

PHP / Wordpress Error Help (Php Code) - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: PHP / Wordpress Error Help (Php Code) (/showthread.php?tid=48415)

PHP / Wordpress Error Help (Php Code) by M73A on 08-02-2005 at 09:40 PM

when i try and login using wordpess i get these errors show up: (even more errors show up wen i click login..)


Warning: Cannot modify header information - headers already sent by (output started at /home/gmincw/public_html/wp-config.php:26) in /home/gmincw/public_html/wp-login.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at /home/gmincw/public_html/wp-config.php:26) in /home/gmincw/public_html/wp-login.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home/gmincw/public_html/wp-config.php:26) in /home/gmincw/public_html/wp-login.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /home/gmincw/public_html/wp-config.php:26) in /home/gmincw/public_html/wp-login.php on line 10

Warning: Cannot modify header information - headers already sent by (output started at /home/gmincw/public_html/wp-config.php:26) in /home/gmincw/public_html/wp-login.php on line 11
WordPress


theres an error on line 26.... that affects llines 7,8,9,10,11 i gather.. but i don't see what the error is... it looks fine, i've posted on the wordpress forum... got some help but i still have this problem.. line 26 s:

code:
    do_action('wp_logout');

i was given This Site

it helped a little but the solutions givne didn't work...

what else could i do?

Thanks
RE: PHP / Wordpress Error Help (Php Code) by ShawnZ on 08-02-2005 at 09:48 PM

Can you view the source of the page with the error and tell us what appeared above the error?


RE: PHP / Wordpress Error Help (Php Code) by M73A on 08-02-2005 at 09:53 PM

code:
        update_option('siteurl', dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) );
}

switch($action) {

case 'logout':

    wp_clearcookie();
    do_action('wp_logout');
    header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');
    header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    header('Cache-Control: no-cache, must-revalidate, max-age=0');
    header('Pragma: no-cache');
    wp_redirect('wp-login.php');
    exit();

break;

case 'lostpassword':
do_action('lost_password');
?>

the hole fing is: http://www.gminc.webspace4free.co.uk/wp-login.php
RE: PHP / Wordpress Error Help (Php Code) by absorbation on 08-02-2005 at 10:01 PM

did you make a database for it? :P


RE: PHP / Wordpress Error Help (Php Code) by M73A on 08-02-2005 at 10:07 PM

quote:
Originally posted by Absorbation
did you make a database for it? :P
>.< YESS!:P

lol... its all configured properly... i managed to get past that error :$
RE: PHP / Wordpress Error Help (Php Code) by ShawnZ on 08-02-2005 at 10:14 PM

There are a bunch of newlines at the top of your wp-config file. Delete them and the problem will fix itself.

Remember, make SURE that <? is the FIRST part of the file. NOTHING can be before it.


RE: PHP / Wordpress Error Help (Php Code) by M73A on 08-02-2005 at 10:17 PM

new lines:S  i delted them:s

just checked... there isnt anything before <?php


RE: PHP / Wordpress Error Help (Php Code) by ShawnZ on 08-02-2005 at 10:21 PM

you know, newlines? the thing that the enter key makes?

well there is about 4 above the <? in wp-config.php


RE: PHP / Wordpress Error Help (Php Code) by M73A on 08-02-2005 at 10:24 PM

there isn't:P have a look at the php:P


RE: PHP / Wordpress Error Help (Php Code) by ShawnZ on 08-02-2005 at 10:25 PM

not in wp-login, i said in wp-config

btw, they could be either at the beginning or the end.


RE: PHP / Wordpress Error Help (Php Code) by M73A on 08-02-2005 at 10:31 PM

quote:
Originally posted by ShawnZ
not in wp-login, i said in wp-config

btw, they could be either at the beginning or the end.
YOUR A STAR!!


THANKS!!

* M73A slaps self because i was trying to edit the wrong ruddy file?!?!?!

Ta :):D:D:D:D
RE: PHP / Wordpress Error Help (Php Code) by ShawnZ on 08-02-2005 at 10:31 PM

(L)


RE: PHP / Wordpress Error Help (Php Code) by Chris.1 on 08-04-2005 at 06:38 PM

Common problem. I had this issue a few times - computer added a few extra lines when uploading via ftp for some reason :S