Support » Plugin: Multiple Themes » Getting fatal error after installing and configuring jonradio mulitple themes

  • Resolved cshannon


    I have been looking everywhere for a plugin that will allow me to have a different theme on the forum page than the magaxine theme that is used for the rest of the site. I was delighted to find this software – jonradio Multiple Themes, which would appear to do exactly what I was looking for. I installed it successfully and chose the different theme for the forum. However when I went back into the forums page (or any other page for that matter) I am getting the following error:

    Fatal error: Call to a member function wp_rewrite_rules() on a non-object in C:\xampp\htdocs\testdesireland\wp-includes\rewrite.php on line 294

    Help please!!

Viewing 11 replies - 1 through 11 (of 11 total)
  • I really would like to try and re-create this problem on my Test System, as the little research I’ve done so far indicates it will be a tough one to figure out. Plus, no one has previously reported a problem like this.

    Here is what I need to know:

    1. confirm that you are using WordPress Version 3.5.1 as you indicated in the right sidebar of this support thread;
    2. could you give me a link to the “magaxine” theme you have listed as your main theme? I couldn’t find it.
    3. what theme are you setting (with the plugin) for the forum page?
    4. what plugins are currently activated when this problem occurs?

    Here is what would be helpful, but not necessary at this point, if you don’t wish to tell me here:

    1. Link (URL) to your web site
    2. Name of your web hosting company


    Yes I am using 3.5.1
    The magazine theme is from Organic Themes
    The theme I am using for the forum page is the bbPress (Twenty Ten)

    The plugins I have activated are:



    bbPress Admin Bar Addition

    Contact Form 7

    Select Contact Form DB

    Facebook Like

    jonradio Multiple Themes


    Options Framework

    I am tesing on a localhost, not live so I cannot supplu url

    Web hosting company –

    Hope this helps,

    Thanks and Kind Regards,

    Really Simple CAPTCHA

    I was a bit confused about a couple of the plugins you list, but I did build a Test Site with those plugins and could not re-create the fatal error that you are receiving.

    Unfortunately, because the Magazine Theme that you are using is a paid theme, I was not able to test it, so my testing was severely flawed in that sense.

    Other than saying “I just can’t support Paid Themes” (not just because I can’t afford to buy them, but I have also tried to contact Paid Theme authors in the past for a test copy and almost always have my e-mails go unanswered), I do have one final thing that is worth doing to try and identify the problem: ask you to turn on WordPress debugging. describes the process, but basically you just need to set WP_DEBUG to TRUE in wp-config.php

    Hopefully, that will display additional error messages before the Fatal Error. If so, please post them here and I’ll see if I can figure out what is going on.

    And, to ensure I have the plugins right, could you verify that “Select Contact Form DB” (listed above) is “Contact Form DB”? Could you provide a link to the MailChimp plugin you are using. There are quite a few.

    I have just built an xampp localhost site and did the same tests as above, but still cannot re-create the problem. Two more quick requests:

    1. Could you tell me your Permalinks structure? Or do you have Permalinks at all?
    2. Try disabling the FaceBook Like plugin. I doubt it is the problem, but it was generating some warning messages for me.

    Thank you.


    I have disabled the Facebook Like plugin. I am not using permalinks. I have Mailchimp deactivated and am using Contact Form DB.

    I really just wanted ‘a nice looking’ forum and thought this might be the way to go – maybe there are other options??


    Now I am really confused. Without Permalinks set, I am finding that the URL for the bbPress Forums page would be http://testdesireland/?post_type=forum

    When I try to use that URL in my plugin’s Settings page’s URL field, and push the Save Settings field, I get the following error message Please use “Select Theme for Site Home” field instead of specifying Site Home URL as an individual entry.

    Or ?key=val&key=val Queries are not supported in a URL Prefix if I specify the Prefix option.

    When the fatal error is occurring, can you still see my plugin’s Settings page? If so, what does the Entries field look like. For example, for the default Sample Page, it looks like this:
    Entries: Delete {checkbox} Theme=Twenty Ten; Page=Sample Page

    Could you try deactivating, deleting and reinstalling my plugin? And tell me what you are entering on the Settings page. And, of course, if you are still getting the Fatal Error. is the “go to” thread on this particular error message.

    In summary, it was introduced in Version 4, but only occurred with certain themes and other plugins. And was corrected in Version 4.0.1

    Thank you so much for your help. Kinda working now, but still get the message:

    Warning: in_array() expects parameter 2 to be array, null given in on line 364

    Warning: in_array() expects parameter 2 to be array, null given in on line 364

    Warning: in_array() expects parameter 2 to be array, null given in on line 364

    Theme is loading though..
    Any ideas?
    Thanks again!

    My bad! I thought that disappeared when WP_DEBUG was set to FALSE, but apparently not.

    I’ll look into properly eliminating this Warning message but, for now, here is a workaround.
    Insert the following into .htaccess in your WordPress directory:
    php_flag display_errors Off
    I put mine before # BEGIN WordPress

    If you don’t have an .htaccess file, create one with just that php_flag statement in it.

    You will also need to be sure that WP_DEBUG is set to FALSE in wp-config.php

    Version 4.0.2 is now available. It resolves both the Warning and an associated Notice.

    Thank you so much jonradio, works like a charm!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Getting fatal error after installing and configuring jonradio mulitple themes’ is closed to new replies.