Title: Patch for page permissions error
Last modified: August 21, 2016

---

# Patch for page permissions error

 *  [jrfoell](https://wordpress.org/support/users/jrfoell/)
 * (@jrfoell)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/patch-for-page-permissions-error/)
 * Index: restore-fb-comments.php
 *     ```
       ===================================================================
       --- restore-fb-comments.php	(revision 729495)
       +++ restore-fb-comments.php	(working copy)
       @@ -127,7 +127,7 @@
        					 }
   
        					 ?>
       -					 <script type="text/javascript">window.location='/wp-admin/options-general.php?page=revert-fb-comments&posts_per_batch=<?=$posts_per_batch?>&batch_offset=<?=$batch_offset+$posts_per_batch?>'</script>
       +					 <script type="text/javascript">window.location='/wp-admin/options-general.php?page=restore-fb-comments&posts_per_batch=<?=$posts_per_batch?>&batch_offset=<?=$batch_offset+$posts_per_batch?>'</script>
        					 <?php
        					 // done
        				 }
       ```
   
 * **_[Please use the code buttons – as is, the code may have been damaged by the
   forums parser]_**
 * [http://wordpress.org/extend/plugins/restore-facebook-comments/](http://wordpress.org/extend/plugins/restore-facebook-comments/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [jrfoell](https://wordpress.org/support/users/jrfoell/)
 * (@jrfoell)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/patch-for-page-permissions-error/#post-3864499)
 * Was missing something.. this one should be better/correct
 *     ```
       Index: restore-fb-comments.php
       ===================================================================
       --- restore-fb-comments.php	(revision 729495)
       +++ restore-fb-comments.php	(working copy)
       @@ -127,7 +127,7 @@
        					 }
   
        					 ?>
       -					 <script type="text/javascript">window.location='/wp-admin/options-general.php?page=revert-fb-comments&posts_per_batch=<?=$posts_per_batch?>&batch_offset=<?=$batch_offset+$posts_per_batch?>'</script>
       +					 <script type="text/javascript">window.location='/wp-admin/options-general.php?page=restore-fb-comments&posts_per_batch=<?=$posts_per_batch?>&batch_offset=<?=$batch_offset+$posts_per_batch?>'</script>
        					 <?php
        					 // done
        				 }
       @@ -148,7 +148,7 @@
   
        			<form name="form" method="get" action="options-general.php">
   
       -				<input type="hidden" name="page" value="revert-fb-comments" />
       +				<input type="hidden" name="page" value="restore-fb-comments" />
        				<p>
        					This tool will import your Facebook comments back into the comments from WordPress. We advice to empty the current comments
        					when starting the import if you have duplicate comments. When starting the import proces, please don't interupt. This may take a while depending on the amount of posts.
       ```
   
 *  Plugin Author [nielsvanrenselaar](https://wordpress.org/support/users/nielsvanrenselaar/)
 * (@nielsvanrenselaar)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/patch-for-page-permissions-error/#post-3864683)
 * Ji Justin,
 * I missed this completely. Will make an update soon!
 *  Thread Starter [jrfoell](https://wordpress.org/support/users/jrfoell/)
 * (@jrfoell)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/patch-for-page-permissions-error/#post-3864684)
 * No worries, thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Patch for page permissions error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/restore-facebook-comments_dedee1.
   svg)
 * [Restore FB Comments](https://wordpress.org/plugins/restore-facebook-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restore-facebook-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restore-facebook-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/restore-facebook-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restore-facebook-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restore-facebook-comments/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [jrfoell](https://wordpress.org/support/users/jrfoell/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/patch-for-page-permissions-error/#post-3864684)
 * Status: not resolved