WordPress.org

Ready to get started?Download WordPress

Forums

Multiple content blocks
[resolved] Error: Sorry, can’t edit files with “..” in the name. (6 posts)

  1. voldby
    Member
    Posted 2 years ago #

    When I want to edit content on the page in dashboard, I get this error:
    Sorry, can’t edit files with “..” in the name. If you are trying to edit a file in your WordPress home directory, you can just type the name of the file in.

    But the problem disappear if I delete on that page:

    <?php
    get_template_part( 'loop', 'page' );
    ?>

    But then the user is unable to edit content on that page.

    But I experience no problems on all other pages.

    http://wordpress.org/extend/plugins/multiple-content-blocks/

  2. voldby
    Member
    Posted 2 years ago #

    I have static content before get_template_part and after.

    If I move the static part below get_template_part, so the page starts with get_template_part there is no problem.

    Is it a bug in MCB?

  3. Trendwerk
    Member
    Plugin Author

    Posted 2 years ago #

    Yeah it's a really annoying bug, caused by the fact I have to interpret the entire code. Everyone has slightly different coding methods and this causes some problems.

    Try removing the spaces between ( and ' in the entire template. It should be fixed.

    Sorry for that, but we do not have the time to fix this problem, since more problems will be caused by different code syntax and so on!

  4. voldby
    Member
    Posted 2 years ago #

    Yearh! Removing spaces did the job. Thanks mate for the quick answer and solution.

    For everybody else:

    Before (the problem)
    get_template_part( 'loop', 'page' );

    After (the solution)
    get_template_part('loop','page');

  5. creativeclicks
    Member
    Posted 1 year ago #

  6. Trendwerk
    Member
    Plugin Author

    Posted 1 year ago #

    This problem should be fixed in the new completely rewritten 3.0. Templates and annotations should always work now.

    Any suggestions? Please tell us on Git!
    https://github.com/trendwerk/multiple-content-blocks/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.