Warning: Use of undefined constant php – assumed ‘php’

  • Unknown's avatar

    Recently an error appeared I think after worpdress version update at the top of my site:

    Warning: Use of undefined constant php – assumed ‘php’ (this will throw an Error in a future version of PHP) in /wordpress/wp-content/themes/colormag/front-page.php on line 1 Warning: Use of undefined constant php – assumed ‘php’ (this will throw an Error in a future version of PHP).

    Here is line 1 of front-page.php

    <?php?>
    <?php get_header(); ?>

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there,

    Apologies, but we can’t help with your issue directly because we don’t host your site on our WordPress.com managed hosting.

    To explain, we are a fully managed hosting provider and use a custom server environment that is optimized for WordPress, provides built-in security and performance improvements, as well as in-house support for your site questions.

    Because of the way we’ve optimized our service, we also use a customized version of WordPress that is different (under the hood) from what you use at your current provider. As a result, we do not have access to your site and are not familiar with the source of your issue.

    You definitely have the option to move your site to us so we can provide in-house help, using our migration plugin: https://wordpress.org/plugins/wpcom-migration/ and the site would need to be on the Business plan.

    As it stands now, we cannot help since it is hosted elsewhere. The good news is that help is available here at the open-source WordPress forums: https://wordpress.org/support/forum/how-to-and-troubleshooting

    The folks in that forum are more familiar with these kinds of issues and are in the best position to help. Thanks!

  • The topic ‘Warning: Use of undefined constant php – assumed ‘php’’ is closed to new replies.