• All of my WordPress sites have the below line of PHP code along the top. Looks like a bad copy/paste above the html tag but I have not touched these sites for weeks. Where did it come from? Please advise. Thanks!

    Here are some of the sites:
    https://honormen.org,
    https://foundationformanhood.org,
    https://knowjes.us/

    cho, $type ) { if ( (string) $helper === (string) $current ) $result = " $type='$type'"; else $result = ''; if ( $echo ) echo $result; return $result; } ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter [)4@6()|/|

    (@dragontheory)

    I should say that I did look through all the php files within the public_html directory and did not find that string of php code.

    Thread Starter [)4@6()|/|

    (@dragontheory)

    Can someone please help me? All Firebug tells me is that there is an error – not where this code is coming from.

    How do I disable plug-ins if I can not get into my admin back-end? Please help. Thanks.

    [ Stop bumping. ]

    Do a global (site-wide) search in your code for:

    if ( (string) $helper

    Or, something else that is showing in the extra text that you are seeing. When you find where that code is located you can start doing some de-bugging to find out why it’s displaying instead of executing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Strange line of php code at top of page…’ is closed to new replies.