Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter crcderek

    (@crcderek)

    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.
    Thread Starter crcderek

    (@crcderek)

    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)