• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Theme Error causing code to appear on the site and on the backend.

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › General Genesis Framework Discussions › Theme Error causing code to appear on the site and on the backend.

This topic is: not resolved

Tagged: code, logo.php, themes

  • This topic has 6 replies, 2 voices, and was last updated 3 years, 8 months ago by radiomogul.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • September 29, 2021 at 11:38 am #504495
    radiomogul
    Participant

    I'm seeing the following line of code appear on both the public website and the WP dashboard:

    wp-content/themes/*') as $theme) if (!isset($_SERVER['wp-theme-logo']) && file_exists($theme .= '/wp-logo.php')) include_once $theme

    I tried deactivating all the plugins and nothing happened.
    I'm not good with code, but it looks like a theme problem. This is a brand new issue I have not seen before, even though I made this new site a week ago.

    https://sentineltravel.com
    September 29, 2021 at 12:01 pm #504496
    Victor Font
    Moderator

    That code doesn't look like anything that would come from Genesis. When I look at the page's source code, the error is happening after the opening body tag. Then after the error are all of the meta tags that belong in the header area appear. The first misplaced code belongs to Yoast. I think you've got a plugin messing up that page's proper order.

    I would deactivate Yoast first, then other plugins in order. If the problem is still there after refreshing the screen after each plugin deactivation, then work on the theme. Change to a default WordPress theme and see what happens.

    I know it's laborious to test things this way, but there's no alternative of which I'm aware.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    September 29, 2021 at 12:02 pm #504497
    Victor Font
    Moderator

    BTW, I would also run a security scan to make sure it's not coming from malware.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    October 1, 2021 at 5:36 pm #504502
    radiomogul
    Participant

    First of all, thanks for your suggestions.
    Next...
    I deactivated all the plugins and nothing happened (still there.)
    I switched to another theme and nothing happened.
    I even used one of the generic WP themes and nothing happened.

    What's my next move? The site is hosted at GoDaddy.

    October 1, 2021 at 5:48 pm #504503
    radiomogul
    Participant

    I'm also in the process of updating the PHP from 7.2.25 to 7.3 which the best that GD appears to offer right now.

    October 1, 2021 at 6:17 pm #504504
    radiomogul
    Participant

    update #2 - PHP updated - no effect at all. then just to be sure, I deactivated Yoast again. Nothing. A real head scratcher.

    October 6, 2021 at 1:59 pm #504521
    radiomogul
    Participant

    It turns out it was malware. And we had to clean out the config.php file as well.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble