Christoph

Dynamic publishing - An error occurs

Vote 0 Votes

Hi,

after enabling dynamic publishing, i get the message

"Page not found

An error occurs".

Because this message is without details, 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

Reported on Movable Type 5

9 Replies

| Add a Reply
  • the file block.mtinclude.php should be inside $MT/php/lib
    ($MT is the root directory of your MT installation)

    Maybe somehow PHP doesn't have access to it?

  • Thanks Shmuel,

    there are many block.mt*.php and function.mt*.php files inside the $MT/php/lib directory. It looks like the "block" files represent the container tags (like ) and the "function" files represent the single tags (like ).

    Christoph

  • I'm sorry, the file should be $MT/php/lib/function.mtinclude.php
    please check that you have it.

  • Thanks again,

    the function.mtinclude.php file is present in the directory $MT/php/lib. But the error message is because of the missing ../plugins/block.mtinclude.php file. I copied function.mtinclude.php to ../plugins an renamed it to block.mtinclude.php. Now i get a blank page. Is there a problem with Smarty?

    Christoph

  • Update:

    I installed MovableType4 and have no problems with dynamic publishing. Maybe there is a php or perl problem? I will reinstall Version 5 and test again.

    Regards

    Christoph

  • Yuji Takayama

    Hi Christoph,

    Did you install some plugins? I guess this error was occurred by plugin.

  • Hi Yuji,

    no i didn't install any plugin. I have installed MT5 Pro again and have the same problem as described above. But the problem occurs only for the website. I have created a blog inside the website, turned on dynamic publishing and have no problems inside the blog. Therefore i guess, it is no problem with my php or perl version. i have got no idea, how to solve. The first thing i can do is a mixing between static publishing for the website and dynamic publishing for the blogs. But if anyone has a solution, please tell me about.

    Thanks again

    Christoph

  • Hi again,

    now i have added a subfolder to the website url and folder. And now the dynamic publishing works for the website too.

  • Hi Christoph.

    Thanks for trying MT5 again.
    are you satisfied with the current solution, or do you want to continue debug the matter?

    Shmuel.

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 480

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

240 821

Last Topic: Frontend uploading? by mosquito on Nov 7, 2012

1862 6600

Last Topic: Listing Categoris by Daniel M on Nov 9, 2012

88 307

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

1499 5390

Last Topic: Movable Type Specialist Wanted for Website CRM by Tatiana on Nov 22, 2012

742 3146

Last Topic: Movable Type v.5.2 Installation Failed to Open by benjie on Nov 22, 2012

89 321

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

185 784

Last Topic: Issues with Yahoo Small Business Web Hosting by ctownj on Nov 11, 2012

213 679

Last Topic: Pagination by michael webster on Nov 10, 2012

27 98

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

49 225

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

65 251

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