Vincent de Paul - Mt Vernon, OH

Can't edit this page - https://stvincentdepaul.diocesanweb.org/wp-admin/post.php?post=834&action=edit

Assigned to
Kyle Sullivan, Web Development at Diocesan Kyle S.

Comments & Events

Kyle Sullivan, Web Development at Diocesan
Cody Armock, Web Content Specialist at Diocesan Cody , what is this post? I don't see it in phpMyAdmin.
Kyle Sullivan, Web Development at Diocesan
After several failed hypotheses were tested, Cody Armock, Web Content Specialist at Diocesan Cody recreated this page, and everything seems to be working correctly.

I presume this was a one-off quirk not worth exploring further (at least not at this time).
Kyle Sullivan, Web Development at Diocesan
Kyle Sullivan completed this to-do.
Cody Armock, Web Content Specialist at Diocesan
This has happened with the following pages: "Join SVDP parish, Becoming Catholic, Baptism to name a few. Greg, the Training Account, nor the admin account cannot edit these pages. Probably has something to do with iThemes Security or more likely, the REST API security permissions since when you look in the inspect console it throws a 401 error. 
Kyle Sullivan, Web Development at Diocesan 👍
Kyle Sullivan, Web Development at Diocesan
Please advise if anything further is needed on this or any related issues.
Cody Armock, Web Content Specialist at Diocesan
A fix is needed. I found the problem, but I couldn't figure out a solution.
Kyle Sullivan, Web Development at Diocesan
Kyle Sullivan re-opened this to-do.
Kyle Sullivan, Web Development at Diocesan
Is the problem with iThemes or the REST API security permissions?
Cody Armock, Web Content Specialist at Diocesan
I turned off iThemes and that did fix it, so probably REST API or a mix of both
Kyle Sullivan, Web Development at Diocesan
It looks like this is the issue (in the Staff Block).
<?php setup_postdata( $GLOBALS['post'] =& get_field('staff_member')->ID );
  get_template_part( 'template-parts/components/staff-single' );
wp_reset_postdata(); ?>
Kyle Sullivan, Web Development at Diocesan
I just needed to remove ->ID because $post needs to be an object, not merely an ID.

And thanks to Ryan for his help on this!
Kyle Sullivan, Web Development at Diocesan
Kyle Sullivan completed this to-do.