By ecforsite
The same site works on the old hosting: http://cr07297.tmweb.ru and doesn’t on the digital ocean. http://188.166.161.225/ (I have some errors with showing posts, and ACF checkbox doesn’t work anymore here http://188.166.161.225/publication/?date=&author=&field=&type=&source=&media=&lab= )
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');?>
</div>
</div>
<?endif;?>
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
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.