Wordpress migration, problems with php?

The same site works on the old hosting: and doesn’t on the digital ocean. (I have some errors with showing posts, and ACF checkbox doesn’t work anymore here )

The droplet is the wordpress droplet. I added php5.6 to it (which is on the old hosting too).

It looks like I have some issues with php files. For example, this said to have error on the last line

<?php if ( get_post_type()!='lab' && get_post_type() !='employee'):?>
<div class="postmeta updated">
      <div class="postdate bg-lightgray headerfont" itemprop="datePublished">
      <span class="postday"><?php echo get_the_date('j'); ?></span>
      <?php echo get_the_date('M Y');?>

Don’t know anything about php. But it works on the old hosting. Do I miss something with the apache configuration?

Turning off plugins doesn’t help

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Molsey, thank you for looking into my problem. I had found out that it’s easier to solve everything by manual change of <? to <?php instead of working on server settings. The problem is solved.