Title: Ken Lewis's Replies | WordPress.org

---

# Ken Lewis

  [  ](https://wordpress.org/support/users/trinity13/)

 *   [Profile](https://wordpress.org/support/users/trinity13/)
 *   [Topics Started](https://wordpress.org/support/users/trinity13/topics/)
 *   [Replies Created](https://wordpress.org/support/users/trinity13/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/trinity13/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/trinity13/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/trinity13/engagements/)
 *   [Favorites](https://wordpress.org/support/users/trinity13/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/users/trinity13/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/trinity13/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] How does Photon get the images?](https://wordpress.org/support/topic/how-does-photon-get-the-images/)
 *  Thread Starter [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/how-does-photon-get-the-images/#post-5536022)
 * Also, what would happen if Photon encounters a 404 when trying to retrieve an
   image? Would it just try to cache it the next time the page is loaded or would
   it cache the image as a broken image?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] JetPack Limits](https://wordpress.org/support/topic/jetpack-limits/)
 *  Thread Starter [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/jetpack-limits/#post-5533814)
 * That is amazing. I can’t wait to test this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Back End Instructions] Conflict with wpMandrill](https://wordpress.org/support/topic/conflict-with-wpmandrill/)
 *  Thread Starter [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/conflict-with-wpmandrill/#post-5100829)
 * I found the issue.
 *     ```
       instructions.php
   
       57  /**
       58   * I know.  I'm sorry.
       59   */
       60
       61  if( !function_exists('wp_set_current_user')	) {
       62    require(ABSPATH . WPINC . '/pluggable.php');
       63  }
       ```
   
 * This causes wp_mail (and a lot of other functions) to be declared before it should.
 * Since I don’t know why you did this, I don’t know how to fix it. I’d be happy
   to try to help you fix it if you can let explain why you need that code there.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Activity Log] .htaccess file corruption](https://wordpress.org/support/topic/htaccess-file-corruption/)
 *  Thread Starter [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/htaccess-file-corruption/#post-5018627)
 * It must be a conflict between the 2 plugins. It only occurs when both are active.
   This is frustrating as I have been fighting this issue for weeks. Here is more
   information.
 * 1) The .htaccess file is modified every couple of seconds after both plugins 
   are activated and an initial Wordfence scan has started.
 * 2) This continues to happen as long as you stay on the Wordfence admin page (
   even after the scan is over).
 * 3) If I navigate away from the Wordfence admin area, the .htaccess file is only
   modified when I change pages in the admin area.
 * I am going to link this information to Wordfence also so someone can figure out
   why this is occuring.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Activity Log] .htaccess file corruption](https://wordpress.org/support/topic/htaccess-file-corruption/)
 *  Thread Starter [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/htaccess-file-corruption/#post-5018593)
 * In my case, it sometimes rewrites that section removing extra line space and 
   line returns. Other times it puts stray characters into the area. Here are a 
   few examples:
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
        BEGIN Test area
       # END Test area
       ```
   
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine OnRewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RRewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
   
       # BEGIN Test area
       # END Test area
       ```
   
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
       s
   
       # BEGIN Test area
       # END Test area
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Access Manager – Access Governance for WordPress] Error after upgrade to v2.1](https://wordpress.org/support/topic/error-after-upgrade-to-v21/)
 *  [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/error-after-upgrade-to-v21/page/2/#post-4538564)
 * This is an update to help troubleshoot the issue.
 * Here is my code that’s running when it fails:
 *     ```
       $page_args = array(
               'parent' => 50,
               'depth' => -1,
               'hierarchical' => 0
           );
   
           $page_args = get_pages( $args );
       ```
   
 * I have further debugged the code to see that it’s failing in includes/post.php,
   line 3906. This is where it’s applying the ‘get_pages’ filter:
 * `$pages = apply_filters('get_pages', $pages, $r);`
 * I hope this helps narrow down the errant code. If you have something you want
   to test or a specific place to debug, please let me know. I am anxious to help
   get this fixed.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Access Manager – Access Governance for WordPress] Error after upgrade to v2.1](https://wordpress.org/support/topic/error-after-upgrade-to-v21/)
 *  [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/error-after-upgrade-to-v21/page/2/#post-4538560)
 * I have 2 sites and their respective development sites that use AAM.
 * The site that does NOT load all the way shows all my users and groups in AAM.
   The site that is not broken by AAM does not show any users or groups in AAM.
 * Without completely debugging your code and learning how everything works in it,
   I can’t tell you what is the exact cause of the issues. I can tell you that it
   is all stemming from working with non-objects and trying to do things with them
   that require objects.
 * Do you have a way to clear out all the AAM settings and start fresh? While this
   isn’t the best option, I am willing to use it just so that I can get AAM working
   on my sites again.
 * Thanks in advance.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Access Manager – Access Governance for WordPress] Error after upgrade to v2.1](https://wordpress.org/support/topic/error-after-upgrade-to-v21/)
 *  [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/error-after-upgrade-to-v21/page/2/#post-4538559)
 * I have reverted to 2.0 but none of the users or access groups show. I guess there
   was a DB change.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Access Manager – Access Governance for WordPress] Error after upgrade to v2.1](https://wordpress.org/support/topic/error-after-upgrade-to-v21/)
 *  [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/error-after-upgrade-to-v21/page/2/#post-4538558)
 * I just updated to the development version and now you have the error: Call to
   a member function has() on a non-object at aam.php, line 250.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sidebar selection option in theme](https://wordpress.org/support/topic/sidebar-selection-option-in-theme/)
 *  [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/sidebar-selection-option-in-theme/#post-3607607)
 * Just copy your existing page.php rename it and put this at the top:
 *     ```
       /**
        * Template Name: Template with sidebar 2
        */
       ```
   
 * and then swap out the sidebar for another one.
 * Then for the page you want the sidebar, select the template above.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Can't get Custom Post Type posts?](https://wordpress.org/support/topic/cant-get-custom-post-type-posts/)
 *  [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/cant-get-custom-post-type-posts/#post-3607535)
 * What have you tried?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Chrome erroneously saying my site is Spanish.](https://wordpress.org/support/topic/chrome-erroneously-saying-my-site-is-spanish/)
 *  [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/chrome-erroneously-saying-my-site-is-spanish/#post-3607163)
 * Put this in your <head></head>:
 * <meta name=”google” value=”notranslate” />
    <meta http-equiv=”Content-Language”
   content=”en” />
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Change color of one menu item](https://wordpress.org/support/topic/change-color-of-one-menu-item-1/)
 *  [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/change-color-of-one-menu-item-1/#post-3607747)
 * Each menu item has it’s own “menu-item-###” id. Assign your CSS to that id.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sidebar selection option in theme](https://wordpress.org/support/topic/sidebar-selection-option-in-theme/)
 *  [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/sidebar-selection-option-in-theme/#post-3607534)
 * Are you wanting one sidebar on one page and a different sidebar on another?
 * If so, then you are going to need to make a template for the new sidebar and 
   assign the new template to the pages that requires the new sidebar.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [content="text/html; charset=UTF-8" />](https://wordpress.org/support/topic/contenttexthtml-charsetutf-8/)
 *  [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/contenttexthtml-charsetutf-8/#post-3607481)
 * A link to the page would be helpful to troubleshoot the issue.

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/users/trinity13/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/trinity13/replies/page/2/?output_format=md)