awev
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Warning: Cannot modify header information – headers already sent byIt is to the point where I think I am going to have to start over. When I try going to the home page of my site I only see the error message, nothing else. When I go to mysite/wp-login.php I get the error message, yet it displays the log-in screen. When I type in my user name and password it tells me that I need cookies enabled – I have those enabled for all but third-party sites.
Oh well, some things just where not meant to be. I think this time I’ll do the install myself, and not use cPanel, so I know that I am using version 2.8 without it having to update itself from 2.7.1.
Thanks Azaozz for the idea – wishing I was able to test it.
Forum: Fixing WordPress
In reply to: Warning: Cannot modify header information – headers already sent bySorry folks,
I tried to make the line in question pop by making it strong/bold, yet it doesn’t seem to work in the code section. Just ignore the tags.Forum: Fixing WordPress
In reply to: Warning: Cannot modify header information – headers already sent byHello folks,
Esmi, thanks for the links – that was the first thing I though of, yet it doesn’t seem to apply – well, it might, as we seem to be generating part of a header with the echo function command to tell the browser that it is a javascript script, yet it doesn’t seem to use the refresh/redirect techniques that I have come to expect.Here is the function, and the code for line 123, as suggested by the error message, and esmi’s links, it is the finial else test, where the line being executed is echo “<script …
function do_item( $handle, $group = false ) { if ( !parent::do_item($handle) ) return false; if ( 0 === $group && $this->groups[$handle] > 0 ) { $this->in_footer[] = $handle; return false; } if ( false === $group && in_array($handle, $this->in_footer, true) ) $this->in_footer = array_diff( $this->in_footer, (array) $handle ); $ver = $this->registered[$handle]->ver ? $this->registered[$handle]->ver : $this->default_version; if ( isset($this->args[$handle]) ) $ver .= '&' . $this->args[$handle]; $src = $this->registered[$handle]->src; if ( $this->do_concat ) { $srce = apply_filters( 'script_loader_src', $src, $handle ); if ( $this->in_default_dir($srce) ) { $this->print_code .= $this->print_scripts_l10n( $handle, false ); $this->concat .= "$handle,"; $this->concat_version .= "$handle$ver"; return true; } else { $this->ext_handles .= "$handle,"; $this->ext_version .= "$handle$ver"; } } $this->print_scripts_l10n( $handle ); if ( !preg_match('|^https?://|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) { $src = $this->base_url . $src; } $src = add_query_arg('ver', $ver, $src); $src = esc_url(apply_filters( 'script_loader_src', $src, $handle )); if ( $this->do_concat ) $this->print_html .= "<script type='text/javascript' src='$src'></script>\n"; else <strong>echo "<script type='text/javascript' src='$src'></script>\n";</strong> return true; }
Thanks again folks for taking a look