The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. voldby
    Posted 4 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:

    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.


  2. voldby
    Posted 4 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
    Plugin Author

    Posted 4 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
    Posted 4 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)

  5. creativeclicks
    Posted 3 years ago #

  6. Trendwerk
    Plugin Author

    Posted 3 years 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Multiple content blocks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.