Forum
Perch content error
Updated a Perch installation, now when going to edit core content, getting the following error:
Warning: Invalid argument supplied for foreach() in /perch/core/apps/content/modes/edit.form.post.php on line 150
Updated a Perch installation, now when going to edit core content, getting the following error:
Warning: Invalid argument supplied for foreach() in /perch/core/apps/content/modes/edit.form.post.php on line 150
That error suggests that no template tags have been found in your template. Could you post your template?
That's the entire template?
Yeah - it's just a text block.
Updated from 2.4.6, replace core folder, added categories to app list. Updated CKEditor, and Markitup.
What sort of region is it? Does the field display?
Yeah, displays. I enter the text, hit save, then get that. And the contents of the field aren't saved.
Is it a single item region?
Does the same occur with any other regions, or with a new region?
Single item region. All regions, including an image region. Just blanks out, and gives me that error.
Can you post your diagnostics report?
How are you deploying your site?
Just standard, PHP, uploaded to root. No complex stuff.
Can you try reuploading? It's such a strange error that I'm wondering if you've somehow got a mix of old and new files.
I've re-uploaded core twice. And just re-uploaded the whole of Perch, merging the folders.
Did you say it's working in your dev environment or not?
It's a dev environment in itself. Just our testing domain.
I've just used an older version of perch, worked fine. Something to do with the jump in versions.
If you turn on debug, what does it output?