Recent Topics

1 Feb 01, 2009 07:53    

My b2evolution Version: Not Entered

Hi All...you were all helpful when I was teaching myself to write b2evo skins and with 20 or so under my belt I was almost feeling confident...the important word there being almost. Just installed a new b2evo blog on a new site (which means I got the upgrade;o( ANYWAY...I can't make anything work. I can't even change font color on an existing skin without getting Warning: Cannot modify header information - headers already sent by etc. etc. AND...can't even put the page back to its original format after getting this error message... Something has changed somewhere since I wrote my last skin in the beginning of December and now. Can anyone give me any insight?

2 Feb 01, 2009 07:58

That would be possible if you wrote skins for the 1.10 series of B2evolution and you just installed a 2.x for the new blog.
They are not compatible.

Good luck

3 Feb 01, 2009 08:12

I was writing skins for the previous 2.X.X version

4 Feb 01, 2009 08:18

What are the skins you start with if you do a new skin and what version of B2evolution does that skin come from?
I ask this because I'm not clear what your problem is. Your skins obviously are not from the 1.10 generation, but perhaps early 2.x
If you find the original skin you can apply the style sheet of your skin to a later version of the original skin. So you use the old style on a new frame. That way your skins will be compatible with the latest version of B2evolution.
Of course I'm just guessing a compatibility issue is the cause of your problems.
If you provide a link to a site where I can admire one of your skins I may be able to figure out more.

Good luck

5 Feb 01, 2009 08:50

Here are some skins I've done...I've used Asevo as a base for some...custom...evopress etc. What seems to be happening is that I can change style sheets...usually without a problem...but if I try to change the code for instance...or even delete a section now...I get the error. Here are some of the blogs I've done...I can send links for more if you need them.

http://www.creativetutors.com/utah/blog1.php
http://www.tessalangley.com/outofthepond/blog1.php
http://www.diagnosticlearningservices.com/DLSblog/blog1.php
http://www.cookinonpatricklane.com/
http://janvanblarcum.com/

Like I said...there's more...let me know if you need anything else.

6 Feb 01, 2009 08:58

Nice work.

I see no reason why these skins shouldn't work on a new install.
You have no problems with the skins that come with the installation?
Oh, and have you got a link to the blog that's giving the troubles?

Good luck

7 Feb 01, 2009 09:03

Thank you...

I haven't upgraded any of these installations...

The problem is that I have two new skins to do right now and a really involved skin to do later in the month...

No matter what I do...I can't write a new skin with the latest version of B2evo. No matter what technique whether I write from scratch or try to modify one of the "standard" skins...I keep getting that bloody error.

I haven't touched any of the previous skins and I'm afraid to for fear of breaking them.

sue[/u]

8 Feb 01, 2009 09:08

The problem lies with the new install. Likely you see an error in the source of the page.
The error Headers already sent etc. is caused by a leading or trailing whitespace (space, tab) in one of the skins files before the opening <?php or after the closing ?>, likely index.main.php. Viewing the page source will hopefully tell you in what file to look.
Try to use a plain text editor (notepad++, Notepad, Crymson editor, Scite, Vi(m)) handling php files.

Good luck

9 Feb 01, 2009 09:50

This is the html version of the page I'm working on. This is just a mock up...

http://www.addisoncountyvt.org/skins/tryagain/tryagain.htm

BUT...when I begin to add the php...this is what I get...

http://www.addisoncountyvt.org/blog1.php

I understand about the white space but it's never made a difference in the past...I think...if you view the code of the sites I sent...you'll see all sorts of white space...but...maybe I'm not looking for the right thing. Again...I'm working just as I did when creating a skin in the last oldest version.

10 Feb 01, 2009 09:53

There is whitespace before the first <?php in skins/tryagain/index.main.php on line 1
That's what the error says.
There can be as much whitespace as you want inbetween <?php and ?> but not at the start of after the end of the file.

Good luck

11 Feb 01, 2009 10:23

This is the code on line 1-10...I see no extra space (the line break here is for legibility in the post) The skin is "working"...it just has the error and no formatting.

<?php
/**
* This is the main/default page template.
*
* For a quick explanation of b2evo 2.0 skins, please start here:
* {@link http://manual.b2evolution.net/Skins_2.0}
*
* It is used to display the blog when no specific page template is available to handle the request.
*
* @package evoskins

12 Feb 01, 2009 10:29

Try opening your index.main.php in notepad

(output started at /path/addisoncountyvt/skins/tryagain/index.main.php:1)

¥

13 Feb 01, 2009 10:36

Opened up in notepad (I'd already pasted it there and then copied back to my file) and there's nothing on line 1 but

<?php

and nothing before the < and nothing after the p

is that what ya'll are asking me?

14 Feb 01, 2009 10:39

It may be the editor you are using is placing the space or linefeed before it saves or closes the file. This can happen if you use Word or some HTML editor (what's it's name) especially under Windows. That's why both ¥åßßå and me are urging you to use a plain text editor for php files.

Good luck

15 Feb 01, 2009 10:39

From your page source :

<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /path/addisoncountyvt/skins/tryagain/index.main.php:1) in <b>/path/addisoncountyvt/inc/skins/_skin.funcs.php</b> on line <b>379</b><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

I'd class that as whitespace.

¥

16 Feb 01, 2009 10:54

That's why I had opened the file in Notepad earlier...I know that some editors do funky things. The problem is that I'm doing nothing different now than I've ever done in the past...using the same software.

Totally frustrating...but I do appreciate all of the time you've spent with me.

Just in case I am crazy...I saved a text file of my page and uploaded it to here...

http://addisoncountyvt.org/skins/tryagain/index.txt

17 Feb 01, 2009 10:58

Just for kicks, open it in notepad click "save as" choose "txt" && "ANSI"

¥

18 Feb 01, 2009 11:05

I would too...but...the carriage return with those whatever characters are not in my index page...or...anywhere else in in my entire site...nor is there a plain carriage return in the beginning of my file...I've backspaced from the first < I'm mighty perplexed.

19 Feb 01, 2009 11:05

The error is reported at line 1. There must be something.
Also I believe this is going to freak at the bottom. The file should end with ?>

Good luck

20 Feb 01, 2009 11:23

The text file I saved on line was done with ANSI selected.

You know...when I was in college (using punch cards to send my programs 800 miles to the closest computer no less...I'm dating myself ;o) I was running out of time to turn in my final project and out of money (we had to pay for computer time). Anyway...in frustration I just blurted out to the TA that the computer was stupid...he replied with a completely straight face, "The computer is not stupid...you are stupid."

I think he must have been right...or at the very least I'm surely obtuse;o)

21 Feb 01, 2009 11:33

in /home/waitegen/public_html/addisoncountyvt/inc/skins/_skin.funcs.php on line 379

(OK...I'm grasping at straws)

but lines 373-382 are

* @param string content-type; override for RSS feeds
*/
function skin_content_header( $type = 'text/html' )
{
global $io_charset;

header( 'Content-type: '.$type.'; charset='.$io_charset );
}

[/quote][/list]

22 Feb 01, 2009 11:37

That's the bit that complains about the error, not the bit that's causing it.

If you want pm me an ftp login and I'll have a look at your skin files

¥

23 Feb 01, 2009 11:39

That's where the header gets called
The header looks like:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">


But it thinks the headers are already sent. It thinks the whitespace is the header. So it assumes he's sending the headers for the second time. Hence the error.

24 Feb 02, 2009 06:49

Has either of you had the opportunity to check my code...I still can not find the offending characters.

25 Feb 02, 2009 07:04

Only just woke up. Need coffee first ;)

26 Feb 02, 2009 07:21

It seems you solced the problemyourself but you just needed to refresh the cache to see the result.
Next time try Dashboard -> Tools -> Misc -> Delete Prerendered Item Cache.

If you add or remove container you want to install the skin again in Dashboard -> Global settings -> Skins. I believe there is alos a link to that page in Dashboard -> Blog settings -> Skins (something like Manage Skins.

Please do report if I'm correct and you don't see the errors yourself anymore.

Good luck

27 Feb 02, 2009 08:49

I actually figured out how to look at the file on-line and edited it on-line (your funky characters appeared there not under the utp file but in the ansi file) then saved it...exported it back to my desktop...re-imported it back to my local site and then uploaded.

AND NOW...ta dah...I can edit to my heart's content and no funky double headers.

BTW...I figured out "who" added the characters but not exactly how ;o) My daughter's kitten...Fred...marched across my keyboard when I started working on this skin...somehow...he pranced across the keys for the offending characters...why it didn't show up locally I have no clue but I'll try your suggestions if it happens again.

AND...ya'll are wonderful. THANKS so much for helping. I should finish this skin tonight!


Form is loading...