Skip to content

Weird behavior after set $config->useMarkupRegions = true #224

@karltdev

Description

@karltdev

Short description of the issue

After set $config->useMarkupRegions = true in config file, echo(i cannot confirm all functions act like the same) inside _init.php, _func.php and _main.php will print twice if markup region syntax is found inside template. If no markup region syntax found inside template, the echo will not be printed.

Steps to reproduce the issue

  1. Flesh install PW with default site profile.
  2. add echo "something" in line FieldtypePage: Selectability of unpublished pages depends on chosen input field class #2 in _main.php or somewhere inside _init.php or _func.php.
  3. set $config->useMarkupRegions = true inside config.php
  4. load homepage, no echo is found.
  5. add markup region syntax like div with pw-append='main' after closing php.
  6. load homepage, double echo is found.

Setup/Environment

  • ProcessWire version: 3.0.57
  • (Optional) PHP version: 7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions