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

[ad_1]

Odd line! If it were slupposed to be there, it would be <?php ?>. Yours seems to be missing a space. I recommend reporting this at so the theme’s developers and support community can help you with this.

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

Above is line 1 and line 2

Thanks for looking and I have posted specifically on the color mag theme forum no answers yet – I found a silimila issue on a nother site I manage but the php Warning text is displaying on the site also in the footer.

Im thinking it could be a bug with latest wordpress version and PHP version and the hosting, dotster.

here is on another site using another old theme,

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

Fix: I updated the out of date ( a few years old ) theme and it resolved the warning error issue.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer