You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don’t know if there would be unexpected consequences to this but adding a check against isNew solves this issue:
53// mirror the output formatting state of the owning page54if($this->forPage && !$this->getOf && !$this->isNew) {
55$of = $this->forPage->of();
56if($of != $this->of()) $this->of($of);
57 }
Setup/Environment
ProcessWire version: 3.0.227
How it came to be an issue
In a project I’m working on I need to export / import pages but also in-between make changes to accomodate the new structure. These pages contain a (necessary) mess of FieldsetPages/RepeaterPages/RepeaterMatrixPages with some being within others.
During the import, I’m facing an issue right at the creation of the page, even with a simple $pages->new("my-template").
The creation fails because of FieldtypeTable complaining during the ___sleepValue() call that the value is formatted. Normally this is ignored thanks to this try/catch, but in my setup, for a reason I do not understand, $config->allowExceptions ends up being true and blocks my import script, and yet, somehow, with a simplified case it doesn’t, scratch that it’s because of one of TracyDebugger’s latest update setting $config->allowExceptions to true (see this issue).
The text was updated successfully, but these errors were encountered:
@romaincazier - sorry that change to Tracy has confounded things for you. I'll wait for @ryancramerdesign to chime in first before I change anything though if that's ok.
Short description of the issue
When creating a page with a FieldsetPage, this FieldsetPage’s output formatting is turned on because of its
forPage
.Suggestion for a possible fix
I don’t know if there would be unexpected consequences to this but adding a check against
isNew
solves this issue:Setup/Environment
How it came to be an issue
In a project I’m working on I need to export / import pages but also in-between make changes to accomodate the new structure. These pages contain a (necessary) mess of FieldsetPages/RepeaterPages/RepeaterMatrixPages with some being within others.
During the import, I’m facing an issue right at the creation of the page, even with a simple
$pages->new("my-template")
.My template (short version) is as such:
The creation fails because of FieldtypeTable complaining during the
___sleepValue()
call that the value is formatted. Normally this is ignored thanks to this try/catch,but in my setup, for a reason I do not understand,, scratch that it’s because of one of TracyDebugger’s latest update setting$config->allowExceptions
ends up being true and blocks my import script, and yet, somehow, with a simplified case it doesn’t$config->allowExceptions
to true (see this issue).The text was updated successfully, but these errors were encountered: