Title: [Plugin: Domain Theme] Cannot load domainTheme.php
Last modified: August 19, 2016

---

# [Plugin: Domain Theme] Cannot load domainTheme.php

 *  Resolved [Steveorevo](https://wordpress.org/support/users/steveorevo/)
 * (@steveorevo)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/)
 * There is an issue in version 1.0 that requires that domainTheme.php be placed
   directly into the plugins folder (not a subfolder) per the instructions, otherwise
   WP will not be able to locate the plugin and you will receive an error:
 * Cannot load domainTheme.php
 * I will include an update in version 1.0.1 to be more forgiving!
 * 🙂
 * [http://wordpress.org/extend/plugins/domain-theme/](http://wordpress.org/extend/plugins/domain-theme/)

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

 *  [MoVengeance](https://wordpress.org/support/users/movengeance/)
 * (@movengeance)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755427)
 * More importantly, there’s an error with the unserialize function on line 51:
 * > Warning: unserialize() expects parameter 1 to be string, array given in /home/
   > upwithsk/public_html/blog/wp-content/plugins/domain-theme/domainTheme.php on
   > line 51
 *     ```
       // Load domain option settings
       $this->options = unserialize(get_option("domainTheme_options"));
       ```
   
 * This error prevents options from being saved, and generally breaks the admin 
   area.
 *  [racoon](https://wordpress.org/support/users/racoon/)
 * (@racoon)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755431)
 * Hmmm, this topic is marked as resolved, but i just installed the plugin and the
   error still exists …
 *  [Anointed](https://wordpress.org/support/users/anointed/)
 * (@anointed)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755432)
 * is there an easy fix for this?
 *  [Dominik](https://wordpress.org/support/users/dominik/)
 * (@dominik)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755433)
 * There is. Replace this line
 *     ```
       $this->options = unserialize(get_option("domainTheme_options"));
       ```
   
 * with
 *     ```
       $options = get_option("domainTheme_options");
       if(!is_array($options)){
       	$this->options = unserialize($options);
       } else {
       	$this->options = array();
       }
       ```
   
 *  [Schrijver](https://wordpress.org/support/users/schrijver/)
 * (@schrijver)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755434)
 * I cannot get this plugin to work properly.
 * The options are not saved.
 * Can anyone fix this??
 *  Thread Starter [Steveorevo](https://wordpress.org/support/users/steveorevo/)
 * (@steveorevo)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755436)
 * Thanks Dominik, I should have read your post first! Just wanted to let everyone
   know that I’ve updated the plugin with the latest fix and also resolved the issue
   with the plugin appearing in its own sub-folder.
 * Thanks to Shrijver too for pointing out the SERVER_NAME versus HTTP_HOST issue
   that some users may experience. The default is now HTTP_HOST. Also included in
   the readme is a special note to All-In-One SEO users to blank out your Home title
   which would normally overwrite Domain Theme’s settings.
 * These fixes are now in version 1.1.
 * Enjoy!
 * 🙂
 * -Steve
 *  [supsupolo](https://wordpress.org/support/users/supsupolo/)
 * (@supsupolo)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755437)
 * I get these errors after adding one domain name this one on top of my dashboard
   
   Warning: Invalid argument supplied for foreach() in path to plugin/wp-content/
   plugins/domain-theme/domainTheme.php on line 70 and this one on the domain theme
   settings page Warning: Invalid argument supplied for foreach() path to plugin/
   wp-content/plugins/domain-theme/domainTheme.php on line 300 so I deactivated 
   it again , seems it still doesn’t work well
 *  Thread Starter [Steveorevo](https://wordpress.org/support/users/steveorevo/)
 * (@steveorevo)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755438)
 * Grrr… its broken for 2.6.1, I’ll look into it asap.
 *  Thread Starter [Steveorevo](https://wordpress.org/support/users/steveorevo/)
 * (@steveorevo)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755439)
 * I’ve fixed it for 2.6.1 and you can find the latest version at [http://www.virtuosoft.net/domaintheme](http://www.virtuosoft.net/domaintheme)
 * I’ll be sure to update it here shortly. Hope this helps everyone out!
 * Regards,
    Steve
 *  Thread Starter [Steveorevo](https://wordpress.org/support/users/steveorevo/)
 * (@steveorevo)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755440)
 * A new version 1.3 has been released that fixes data incompatibility with vesion
   2.6 to 2.6.1 migration. I will update WordPress shortly.
 *  [nando99](https://wordpress.org/support/users/nando99/)
 * (@nando99)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755441)
 * Side question – when you say “Modify your DNS settings to point your domain name(
   s) to the same server.” all that means is to give the new domain you want to 
   add the same nameserver info as the default domain where the plugin is installed?
   Correct?
 * The reason I ask is bc its not working but it might just be the DNS taking its
   sweet time to resolve….
 * thanks in advance…
 *  [nando99](https://wordpress.org/support/users/nando99/)
 * (@nando99)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755442)
 * Its still not working so its not the DNS taking its sweet time to resolve… do
   I have to actually add the additional domain as add on domain in cpanel? Any 
   help from anyone is appreciated…
 *  [master4752](https://wordpress.org/support/users/master4752/)
 * (@master4752)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755448)
 * I have the same problem as nando99 – not quite sure what else to do besides pointing
   the name servers – thanks for your help!!!
 *  Thread Starter [Steveorevo](https://wordpress.org/support/users/steveorevo/)
 * (@steveorevo)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755452)
 * I believe Nando had http:// in his domain definition, and/or need to use the 
   SERVERNAME vs HTTPHOST definition (see the last item in the notes).

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

The topic ‘[Plugin: Domain Theme] Cannot load domainTheme.php’ is closed to new 
replies.

 * 14 replies
 * 9 participants
 * Last reply from: [Steveorevo](https://wordpress.org/support/users/steveorevo/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/plugin-domain-theme-cannot-load-domainthemephp/#post-755452)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
