• 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

Migrated to new host and now I get a php warning.

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 › Archived Forums › General Discussion › Migrated to new host and now I get a php warning.

This topic is: not resolved

Tagged: error, php, warning

  • This topic has 5 replies, 5 voices, and was last updated 5 years, 3 months ago by salamjavabet.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 18, 2020 at 1:50 pm #496807
    InternetDominus
    Participant

    Hello,

    I moved my site to a new host, and for the first time I am getting a warnig:

    Warning: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP) in /home/myhostspace/public_html/aqui/wp-content/themes/genesis-sample/functions.php on line 73

    I am using Genesis Sample with the latest version of the Genesis Framework, and the site was working just fine before I migrated it with the Duplicator Pro plugin.

    Here is a copy of my phpinfo in case that helps clear the issue:

    https://www.peruvian-maca.com/phpinfo.php

    https://www.peruvian-maca.com/
    February 18, 2020 at 2:11 pm #496809
    Victor Font
    Moderator

    Did you add custom code to functions.php? The Genesis Sample functions.php doesn't have REQUEST_URI in it.


    Regards,

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

    February 18, 2020 at 2:15 pm #496810
    InternetDominus
    Participant

    No.

    No custom code at all.

    This is only a warning seen when browsing the site.

    The warning does not show when using the dashboard.

    February 18, 2020 at 5:05 pm #496811
    dunkin
    Member

    Have you looked to see if this path exists and has the correct file in it via FTP or otherwise? /home/myhostspace/public_html/aqui/wp-content/themes/genesis-sample/functions.php on line 73

    Were you an on older version of PHP on your previous server?


    Adam Block
    Pacific Brandwear

    February 18, 2020 at 7:52 pm #496814
    AnitaC
    Keymaster

    Make sure your new hosting is set to 7.2 or 7.3. Go to Settings > Site Health > Server tab.


    Need help with customization or troubleshooting? Reach out to me.

    February 20, 2020 at 12:51 am #496844
    salamjavabet
    Member

    Have you looked to see if this path exists and has the correct file in it via PHP wordpress in Backend Backdoor In Virus


    Daftar Poker Uang Asli Dengan Mudah Dan Aman Untuk Saat Ini

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

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