default userpic

Dynamic Publishing - Blank Screen

Vote 0 Votes

Hi,

I have MT 4.21. I have enabled Dynamic publishing for a page (index template) in my blog. For now, I am not even giving any dynamic values in the template.
Earlier, I got these errors in the apache log file-
1) "Options not allowed" ::: I set Allowoverride All for that directory in httpd.conf file and it got resolved.
2) "Negotiation: discovered file(s) matching request: > (None could be negotiated" ::: I removed Multiviews on that directory and it got resolved.

Now, when I try to view the page using the URL of the page, its coming up as a blank screen. The template/page opens fine if set as Static mode/Publish Queue. Could someone throw light if I am missing something in the dynamic publishing settings?

I have set Publishing mode as Dynamic for the template. I saw that the file was renamed as .dynamic after that. All other pages in the pages in the blog (with publishing mode set as other than the DYNAMIC mode) can be viewed without any issues.

Regards,
Sivaram

Reported on Movable Type 4.2

11 Replies

| Add a Reply
  • Hi Sivaram,

    I would guess that your index template contains some coding.

    If it doesn't that's why it displays a blank page (empty page).

    Also, after you're setting a template to be dynamic you should rebuild the indexes so that a file responsible for displaying dynamic content would be created.

    Kind Regards,
    Mihai Bocsaru

  • Hi Mihai,

    Thanks for the response.

    I do have the complete code to display all entries for the blog in this index template. In fact, when set as static, all contents get correctly displayed. Its only when set as dynamic that I get this blank page issue. I have tried this with some other pages in the site also and they all given this same issue.
    Also, as for rebuilding the indexes, I have published the entire site (blog) after the changes, but still there were no changes. Is there something else I am missing?

    Regards,
    Sivaram

  • default userpic

    If you have set Publishing mode as Dynamic for the template, there shouldn't be any problem IMHO.

  • ya, don't know what really is the problem here. :(

  • Has there been any further information for troubleshooting or addressing this issue? I am experiencing the same issue in version 5.01.

    I have setup a very simple test site from the default installation, using the Classic Website 1.0 theme. I created a blog that publishes to "/blog" and a single test entry. The blog is using the Classic Blog 1.0 theme. Everything looks good when publishing statically.

    When I go into the website's templates and set the "Main Index" publishing options to "Dynamically", and republish the site, a empty webpage is loaded. Viewing the source shows no HTML at all.

    Any help would be appreciated. Thanks.

  • I think this post is in the wrong section. It should be under "Design, Templates & Tags" rather than "Documentation".

    Is there a moderator that can move this thread?

    I'm still looking for an answer to the original question as well.

    Thanks.

  • Hi Sivaram and grenade,

    Have you set the file extension to be 'php'?
    For dynamic publishing, the files should have an extension of .php and In Preferences->Publishing, we should set File extension as php under Archive options.

    Thanks,
    Sunil

  • Hello SunilKT,

    thanks for your response. I just tried your suggestion by changing the Output File in Template Options from "index.html" to "index.php". And also under the website General Settings -> Archive Settings -> File Extension to "php".

    The dynamic page is still blank. Any other suggestions?

  • default userpic

    hello miss beautiful will I'm just a newbies here i guess the problem would not be on the extension file that you have give maybe just maybe you should check the file name of the file if the content was really there.

    P.S I'm A newbies and also need some enlightenment...

  • I have the same blank page problem with Movable Type Advanced,My main page is like this:

    demo test!

    however,there is nothing displayed when using dynamic publishing with the php extension,if use static publishing,the page can display normally.

  • The reason you are getting blank pages is more than likely because you haven't yet installed/configured the mysql shared extension for php.

    I'm running a FreeBSD 8.2 web server, and it was necessary to install php5 AS WELL AS the correct php-mysql module (for accessing the database).

    I have the following packages installed from the ports:

    php52-5.2.17_4 PHP Scripting Language
    php52-mysql-5.2.17_4 The mysql shared extension for php
    php52-pcre-5.2.17_4 The pcre shared extension for php
    apache-2.2.21 Version 2.2.x of Apache web server with prefork MPM.

    When building apache, make sure that you run 'make config' first and select the php module to also be installed, before running 'make install clean'

    Make sure that the following lines appear in /usr/local/etc/apache22/httpd.conf:

    LoadModule php5_module libexec/apache22/libphp5.so


    ...
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012