tags:

views:

224

answers:

2

A friend of mine is getting this error on ALL of her websites. They are all on the same server, externally hosted.(the hosting company says they cant help with scripting problems)

Each site even gives the exact some line number, but they all use different Index.php files. I am a bit stumped here, has anyone seen anything like this before?

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/xxxx/public_html/index.php on line 17

Parse error: syntax error, unexpected '.' in /home/xxxx/public_html/index.php on line 17

Here is one of the index.php files contents, line 1 - 25 or so

<?php get_header(); ?>
<link rel="shortcut icon" href="favicon.ico" >

<div class="left-navi-blog">

    <?php include "left-sidebar.php";?>

</div>

<div class="center-blog">
<?php if (have_posts()) : ?>


     <?php while (have_posts()) : the_post(); ?>

<div class="post-title">
<strong><a id="post-<?php the_ID(); ?>" href="<?php the_permalink() ?>" rel="bookmark" title=" <?php the_title(); ?>"><?php the_title(); ?></a></strong> - 

                      <ahh class="post-title-meta"><?php the_time('F j, Y') ?> by 

                             <?php the_author() ?></ahh>
</div>
+1  A: 

A useful addition to help determine this problem for "your friend" would be to post the code on index.php on line 17, plus 2-3 lines above and below.

Ryan
OK, I posted the contents of one of the index.php files in hte main body of the question
Jmichelsen
is that the root index.php? (/home/xxxx/public_html/index.php)
Ryan
Nice catch Ryan, I reread that just a bit ago and realized I was working with the wrong index.php. The root index.php had some weird stuff in it with a broken line...line 17! ;) my friend says the hosting company emailed her saying her server had a breach, apparently they changed a bunch of stuff, changing the root index.php and reinstalling wordpress took care of all the errors. THanks
Jmichelsen
A: 

actually your site is hacked. it happened to me too. all php files are affected. make sure you have very storong secured password. check out your ftp logs. there may be huge downloads and uploads. they insert some iframe .. in many php files.