Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

[solved] Bogus PJAX response prevents pages from being edited


Go to End


4 Posts   1159 Views

Avatar
moniuch

Community Member, 11 Posts

11 April 2014 at 10:05am

Edited: 12/04/2014 9:01am

At some point my admin/pages section became dumb - I cannot open any page for editing. When I looked into DevTools/Network I noticed that the response begins with `<?php<?php` as in:

<?php<?php{"Content":"<div id=\"pages-controller-cms-content\"

Tried to undo my operations, but to no avail - is that some kind of a known problem?
v3.1.3

Avatar
camfindlay

Forum Moderator, 267 Posts

11 April 2014 at 10:24am

Have you been editing any of the core CMS or Framework files? (which is not a good idea)

Avatar
moniuch

Community Member, 11 Posts

11 April 2014 at 10:31am

Oh, no, never-ever!
Actually, I have solved it a moment ago - the problem was in empty _config.php files that contained <?php only. When I addded an empty comment below it helped.
Thanks for reply though!

Avatar
camfindlay

Forum Moderator, 267 Posts

11 April 2014 at 10:43am

the old php trailing spaces issue... yeah, if you have a _config.php with nothing in it it pays to add the extra line underneath.

I wonder if you want to change the title of your post to represent this actual problem and add a [solved] to the front. That way it is useful to others.