Kris

MT 5 dynamic publishing issues

Vote 0 Votes

I recently tried to enable dynamic publishing for my archive pages. I use nearlyfreespeech.net as my host, and the publishing path there differs from the "work" path that must be used for dynamic php generation. (The regular publishing path, which works fine in all the perl scripts, is /home/public. The path needed for PHP scripts is /f2/sitename/public.)

I tried hacking a little in lib/MT/CMS/Blog.pm and managed to get past the open_basedir mischief, but now I just have a helpfully obtuse error page, styled nicely using my blog's design:

"Page Not Found

An error occurs."

Clearly I have missed something. I have no idea how mt.php generates these pages, and investigating is getting me a lot deeper into this than I was hoping. Any help from experienced MT coders would be appreciated.

Reported on Movable Type 5

3 Replies

| Add a Reply
  • Hi Kris,

    It would be good if you could provide me a preview URL where I could see your issue and analyze it closer.

    Thanks,
    Mihai

    ----------------------------------
    Daily Movable Type Consultant

    Web Development
    Movable Type Consulting
    Six Apart Partner

    http://www.pro-it-service.com/
    ----------------------------------

    Movable Type Demo
    http://www.movabletypedemo.org/
    ----------------------------------

    Open Melody Demo
    http://www.openmelodydemo.org/

  • Hi,

    i have similiar problems after switching to dynamic publishing. I get the message "An error occurs". I substituted this string with the variable $errstr in mt.php to get a detailed message:

    is_readable() [function.is-readable]: open_basedir restriction in effect. File(../plugins/block.mtinclude.php) is not within the allowed path(s): (/www/htdocs/w00f6870/:/tmp:/usr/bin:/www/htdocs/w00f6870:/bin:/usr/local/bin:/usr/share/php)

    My opinion is, that this is no problem with configuration of open_basedir. I search the file block.mtinclude.php, but it isnt present. If i delete all my mt:Include tags in the template "main_index", thy dynamic publishing works. I think, the problem occurs because of the missing block.mt*.php.

    Am i right or ist there a different solution for my problem.

    Thanks

    Christoph

Add a Reply

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

Forum Groups

code.sixapart.com

137 479

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

238 797

Last Topic: Manifest Schema Compatibility Issue When Restoring Blog by Matt on Oct 17, 2012

1858 6594

Last Topic: Categories and Basename Publishing Issues by e21media on Oct 25, 2012

88 307

Last Topic: absolute publish date in Manage Entries screen by .mau. on Apr 18, 2012

1488 5347

Last Topic: Anti-cloning by .mau. on Oct 29, 2012

732 3093

Last Topic: Blog moved server - now users cannot access blog? by mowgs on Oct 30, 2012

89 317

Last Topic: How to "pretify" a url in htaccess with a few wildcards by Caio on May 30, 2012

183 771

Last Topic: Commenting with TypePad by Rob Ferrara on Oct 17, 2012

212 680

Last Topic: Does MT-Approval work in MT5? by DLpres on Sep 25, 2012

27 100

Last Topic: Upgrading MT by Caio on Oct 15, 2012

49 224

Last Topic: Movable Type 6 Ideas by Caio on May 28, 2012

65 248

Last Topic: Expanding new rich text editor and implementing table function by Takeshi Nick Osanai on Jul 30, 2012