{"id":2410027,"date":"2011-11-21T18:23:43","date_gmt":"2011-11-21T18:23:43","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/apache-to-iss\/"},"modified":"2016-08-20T03:31:05","modified_gmt":"2016-08-20T03:31:05","slug":"apache-to-iss","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/apache-to-iss\/","title":{"rendered":"Apache to ISS"},"content":{"rendered":"<p>Hi,<br \/>\nI designed a WP theme on an Apache server and I&#8217;ve now moved it over to an IIS server for my client. <\/p>\n<p><a href=\"http:\/\/www.ellicorp.com\">http:\/\/www.ellicorp.com<\/a><\/p>\n<p>I fixed the permalinks situation, so I think the permissions are fine. But I have a few template files with a php loop:<\/p>\n<pre><code>&lt;?php\n\t\t\t\t\t\tfor($i=1; $i&lt;7; $i++){               \/\/loop 6 times\n\t\t\t\t\t\t\tif(get_field(&#039;image_&#039; . $i)){       \/\/check if there is an image on each iteration of the loop\n\t\t\t\t\t\t\techo&#039; &lt;a href=&quot;&#039; . get_field(&#039;image_&#039; . $i) . &#039;&quot;&#039;;?&gt;\n\t\t\t\t\t\t\trel=&quot;lightbox[&lt;?php the_title(); ?&gt;]&quot;&gt;\n\t\t\t\t\t\t\t&lt;?\n\t\t\t\t\t\t\techo&#039; &lt;img src=&quot;&#039; . get_field(&#039;image_&#039; . $i) . &#039;&quot;\/&gt;&lt;\/a&gt;&#039;;  \/\/output results\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t?&gt;<\/code><\/pre>\n<p>If the loop is there, I get a blank page. Nothing at all.<br \/>\nIf I remove it, everything works fine.<\/p>\n<p>I have a similar code loop on the homepage and it works fine.<\/p>\n<p>Any help would be greatly appreciated.<\/p>\n<p>PS:<br \/>\nThe code pulls custom variables from posts (to display images) of a particular category.<\/p>\n<p>Again, it works fine on Apache.<\/p>\n","protected":false},"template":"","class_list":["post-2410027","topic","type-topic","status-closed","hentry","topic-tag-apache","topic-tag-iis","topic-tag-permissions","topic-tag-php"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2410027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2410027\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2410027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}