Recent Topics

1 Jul 25, 2014 15:04    

Today, without me or (as far as I know) anyones, having made any changes to the blog, I got this error and also, the blogs layout changed a bit, a space was created at the top of the site.

Warning: Cannot modify header information - headers already sent by (output started at /home/.../public_html/....net/plugins/socialbuttons_plugin/_socialbuttons.plugin.php:1) in /home/.../public_html/....net/inc/_core/_template.funcs.php on line 59

Warning: Cannot modify header information - headers already sent by (output started at /home/.../public_html/....net/plugins/socialbuttons_plugin/_socialbuttons.plugin.php:1) in /home/.../public_html/....net/inc/_core/_template.funcs.php on line 269

Warning: Cannot modify header information - headers already sent by (output started at /home/.../public_html/....net/plugins/socialbuttons_plugin/_socialbuttons.plugin.php:1) in /home/.../public_html/....net/inc/_core/_template.funcs.php on line 270

Warning: Cannot modify header information - headers already sent by (output started at /home/.../public_html/....net/plugins/socialbuttons_plugin/_socialbuttons.plugin.php:1) in /home/.../public_html/....net/inc/_core/_template.funcs.php on line 271

Warning: Cannot modify header information - headers already sent by (output started at /home/.../public_html/....net/plugins/socialbuttons_plugin/_socialbuttons.plugin.php:1) in /home/.../public_html/....net/inc/_core/_template.funcs.php on line 272

Also, when publishing, I get thirs error:


Warning: Cannot modify header information - headers already sent by (output started at /home/.../public_html/....net/plugins/socialbuttons_plugin/_socialbuttons.plugin.php:1) in /home/.../public_html/....net/inc/_core/_misc.funcs.php on line 5567
An unexpected error has occurred!

If this error persists, please report it to the administrator.

Volver a la pƔgina de inicio
InformaciĆ³n adicional sobre este error:
Headers have already been sent in _socialbuttons.plugin.php on line 1.
Cannot redirect.

Any ideas?

2 Jul 25, 2014 18:16

@gcasanova I recently experienced something like this with a site I manage (another CMS), it had been hacked.

Please, check the file plugins/socialbuttons_plugin/_socialbuttons.plugin.php. Line 1 is not supposed to contain any code different than the PHP open tag (<?php).

3 Jul 25, 2014 18:45

Thanks for your reply @mgsolipa
I'm attaching the plugins code, it doesn't seem altered (at the beginning) to me...

5 Jul 25, 2014 19:50

@gcasanova yes, it is altered. Look that right before the <?php tag, are a couple of weird characters ?. Get rid of them and the problem will be solved.

Now, this gives us more questions, how did those characters came to that place? And maybe more important, are there more altered files in your site, with malicious code instead of just garbage like this one?

Maybe you should tell this to your hosting provider to get some hints. Also, downloading the entire site and scanning it with an anti-virus should be useful to make sure (at least in a basic level) that everything is ok.

6 Jul 25, 2014 20:33

@mgsolipa I don't see those characters on my side... Could it be that they were added to the text I attached by my notepad software?

But I will download the entire site and check it with an antivirus, I will also alert the hosting provider.

7 Jul 26, 2014 10:00

All right, now I get it. That charcaters are known as BOM (http://www.w3.org/International/questions/qa-byte-order-mark.en.php), so it's an encoding thing. Actually, that's why it is in the txt file but not in your online text editor.

If you have not made any change (download, upload, etc) in your site, and this just appeared suddenly, then it's a better idea to talk with the hosting provider, maybe they applied a change in the server that is now revealing an issue that wasn't there before.

8 Jul 27, 2014 20:45

My hosting provider informed me of possible hacked files but the one causing problems isn't listed by them.
They also told me that the only changes they've made are PHP updates... they have version: 5.4.30
I checked the possible hacked files and they're fine; not altered at all.
So, what could be the problem?

9 Jul 28, 2014 06:36

All right, lets try to solve the BOM issue. To make you a little context, please read the main answer given in this page: http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php, specifically the section UTF-8 BOM.

Can you download the file plugins/socialbuttons_plugin/_socialbuttons.plugin.php and open it with Notepad++, or such an editor that lets you actually see the weird characters at the begining of the file? The idea is to delete them and reupload the file.

10 Jul 29, 2014 14:36

@mgsolipa I opened the file in Notepad++ but there are no strange characters before the opening tab.
I disbled the socialbuttons plugin meanwhile.
I also replaced the following files that were, as per the hosting provider, possibly hacked:

./....net/inc/tools/model/_system.funcs.php
./....net/inc/_ext/_zip_archives.php
./....net/inc/files/model/_file.class.php


Form is loading...