Init Code Issue

General discussions about WebYep
Post Reply
Maeve
Posts: 11
Joined: Fri Jan 01, 2010 10:26 am

Init Code Issue

Post by Maeve » Mon Feb 15, 2010 10:15 am

Johannes I am hoping you can help me here for an advanced issue.

I am having a recurring problem with site in development for a client >http://174.120.152.98/~hilton/index.php

ISSUE 1
Whenever I modify the config file an error is created. Note the pop-up box "HTTP Header problem - Your HTML source does not start with the WebYep init code! Please see the WebYep documentation for details." This renders the CMS inoperable and is distorting the display (see top right)

I am 100% certain that the init file is correct. In fact the site has been working fine for 2+ months then when I modified the config file it occured for the first time. If I delete all files from the server, then re-install webyep 1.4.5 the problem is resloved, but as soon as the config file is modified, the same error re-occurs. This means I cannot easily switch to debug mode, change password etc. It is making life extremely frustrating! Please can you assist? PM me for ftp details if needed.

ISSUE 2
I have installed the new ckeditor on the same site. The save button has disappeared. Any idea what the problem is?

Thanks for your help.
Maeve

johannes
Objective Development
Objective Development
Posts: 815
Joined: Fri Nov 10, 2006 4:39 pm
Contact:

Re: Init Code Issue

Post by johannes » Mon Feb 15, 2010 12:55 pm

ISSUE 1:
It's most likely that your editor puts a UTF-8 BOM in front of the config file's content. Please search your editors settings to switch of that BOM (Byte Order Mark).

ISSUE 2:
The new CKEditor window does not have the old save button - use the button with the floppy disc icon instead.

Maeve
Posts: 11
Joined: Fri Jan 01, 2010 10:26 am

Re: Init Code Issue

Post by Maeve » Tue Feb 16, 2010 3:33 am

Thanks so much Johannes. Fixed on both issues.

The BOM issue is an interesting one. I am just using notepad to edit but I cannot see the actual BOM in the file. However if I use the original config file (one I havent opened in notepad) it corrects the problem. Now I know, and will use a different program for editing the config file.

Thanks for your quick response and good advice. Once again congrats on a great product. With CKeditor integrated WebYep is the perfect tool.

Cheers,
Maeve

johannes
Objective Development
Objective Development
Posts: 815
Joined: Fri Nov 10, 2006 4:39 pm
Contact:

Re: Init Code Issue

Post by johannes » Tue Feb 16, 2010 12:15 pm

According to http://en.wikipedia.org/wiki/Byte_order_mark the Windows Notepad seems to always add the BOM when saving in UTF-8 encoding. There's no option to disable this.

I therefore recommend using some other ASCII (text) editor to edit source code files.

There is for example
http://notepad-plus.sourceforge.net/uk/site.htm

Post Reply