Title: crcderek's Replies | WordPress.org

---

# crcderek

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Theme activation throws errors](https://wordpress.org/support/topic/theme-activation-throws-errors/)
 *  Thread Starter [crcderek](https://wordpress.org/support/users/crcderek/)
 * (@crcderek)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/theme-activation-throws-errors/#post-8483203)
 * Update:
 * Think I have narrowed the issue down to this WP action in my theme functions.
   php file that i added to force pages to autoscroll to a section on the blog page(
   so the header of the page is above the page load area):
 *     ```
       /**
        * force set link structure to include #blog
        */
       function smartest_set_permalinks() 
       {
           global $wp_rewrite;
           $wp_rewrite->set_permalink_structure( '/%category%/%postname%/#blog' );
       }
       add_action( 'init', 'smartest_set_permalinks' );
       ```
   
 * This was working fine until yesterday (Friday 25th November, 2016).
    Whether 
   installing plugins stirred something I don’t know but I am now on a clean install
   of WP with a fresh DB and this function instantly breaks the ‘All Posts’ and ‘
   All Pages’ pages once my theme in activated. Even if I load a new default theme
   it stays broken so assuming actions are stored in a config that need resetting?
 * Anyway unless someone can see a fix to make this function work as I intended 
   I’m removing it and probably going to do the functionality with jQuery instead.
 * Hope this helps someone else troubleshoot similar issues.
    -  This reply was modified 9 years, 5 months ago by [crcderek](https://wordpress.org/support/users/crcderek/).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Theme activation throws errors](https://wordpress.org/support/topic/theme-activation-throws-errors/)
 *  Thread Starter [crcderek](https://wordpress.org/support/users/crcderek/)
 * (@crcderek)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/theme-activation-throws-errors/#post-8483092)
 * Update: Did a fresh install with a previous version of my theme and this is the
   exact error I’m getting repeated 19 times.
 *     ```
       Warning: preg_match(): Unknown modifier 'b' in /var/sites/c/<domain>/public_html/wp-includes/class-wp.php on line 230
   
       Warning: preg_match(): Unknown modifier 'b' in /var/sites/c/<domain>/public_html/wp-includes/class-wp.php on line 231
       ```
   

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