I had generated the make file with the contrib module domain.
When we enable the domain module, we just want to append the following code to the settings.php file.
include_once DRUPAL_ROOT.'/profiles/my_profile/modules/contrib/domain/settings.inc';
When I try to install this profile, I get an error
Fatal error: Undefined function domain_get_primary_table()
this happens because when we install a profile the settings.php file overwrites the included settings.inc. So when we try to install the domain module it gives the above error and stops installation.
Anyone have an idea how can we install the profile along with the domain module without this issue.
Related
I am relocating Drupal 7 website from Pantheon to new hosting and need to configure Domain Access module. But I find some troubles.
Domain Access module gives me the error message:
Domain module installation is incomplete. See INSTALL.txt and check
your settings.php file.
Domain access failed to load during phase: bootstrap include. Please
check your settings.php file and site configuration.
So I put the string
include DRUPAL_ROOT . '/sites/all/modules/domain/settings.inc';
to my /sites/default/settings.php file.
But it didn't do any effect. I tried different paths but got no result.
After I've found that my settings.php file have default database settings - not the ones that I've written when installing Drupal site.
So I have deleted setting.php and reinitialize Drupal site from web-browser */install.php. After it I've found newly created /sites/default/settings.php with wrong(default data) DB. And $drupal_hash_salt = ''; But site is working correct.
Additionally, I've changed Permissions to 777 and went to /admin/reports/status and found the row
Configuration file - Protected
It's very strange.
Can you help me solve this problem and find my Configuration file real location?
Usually Pantheon have different hosting structure from the conventional hosting/self-hosting solutions, first I would check the location of the contrib modules, sometime they are included in sub-directory called contrib, so once the system attempts to load
include DRUPAL_ROOT . '/sites/all/modules/domain/settings.inc';
it will not find it, try to have it like the following might help:
include DRUPAL_ROOT . '/sites/all/modules/contrib/domain/settings.inc';
First step is to check if Domain module was enabled and get its path on linux :
$ drush pmi --fields=type,project,title,status,path --format=table|sort
Other way :
$ drush pm-list | grep domain
If your module was installed by drush , its path can be sites/all/modules/contrib/domain/settings.inc so you have to modify include path like :
include DRUPAL_ROOT . '/sites/all/modules/contrib/domain/settings.inc';
I installed the Wordpress 4.2 on my local server and copy my theme to wp-contat\themes. When I run the Wordpress admin panel and select the theme it gives me this error:
Warning: require_once(http://localhost/isee/wp-content/themes/isee/includes/db.php): failed to open stream: HTTP request failed! HTTP request failed! HTTP/1.0 404 Not Found in D:\wamp\www\isee\wp-content\themes\isee\modules\careers.php on line 6
Fatal error: require_once(): Failed opening required 'http://localhost/isee/wp-content/themes/isee/includes/db.php' (incpude_path='.;C:\php\pear') in D:\wamp\www\isee\wp-content\themes\isee\modules\careers.php on line 6
It is not as simple as copy and paste files. You need to set up a new theme. Check if you copied in a totally different directory as your original wordpress. In that case, what you did is to set up a complete different wordpress instance. What you need to do in that case, is to create an empty database in phpMyAdmin with the same name as your new wordpress site. Just be careful not to duplicate the name of the previous instance.
In case you only copied the theme folders in a new folder, you need to update the style.css file to be a child from the original folder you copied from. You can go to developer.wordpress.org to see under ThemeHandbook->Theme Basics->Theme Files AND GO TO THE BOTTOM. There you fill find the code you need to copy and paste in a style.css fyle in your root theme directory.
This one is driving me crazy.
Whenever i use "drush dl" to download site_audit or drupalgeddon it downloads these modules inside the drush home folder ( /users/[user]/.drush ) instead of the current sites modules folder.
the "drush status" and the "drush #site-alias status" command gives me the correct site information, see below:
C:\wamp\www\drupal>drush dl site_audit
Install location C:\Users\Thomas/.drush/site_audit already exists. Do you want
to overwrite it? (y/n): n
Skip installation of site_audit to [warning]
C:\wamp\www>drush #drupal status
Drupal version : 7.34
Site URI : localhost/drupal
Database driver : mysql
Database username : root
Database name : drupal
Default theme : garland
Administration theme : garland
PHP executable : php.exe
PHP configuration : C:\Users\Thomas.drush\php.ini
PHP OS : WINNT
Drush version : 6.0
Drush configuration :
Drush alias files : C:\Users\Thomas/.drush/aliases.drushrc.php
Drupal root : /mamp/htdocs/drupal
Site path : sites/default
File directory path : sites/default/files
Also, when i try to download a module that already exist in the current sites modules folder it tells me so correctly. Same goes for the "en" command. I can also disable or uninstall modules successfully. Uninstalling does not remove the folder, tough.
The only thing i have noticed is that "drush configuration" does not show a path. However, i did copy the example file inside the .drush home folder AND one inside the sites/all/drush folder (i removed the 'example' from the filename off course).
Running windows 8 and tried both MAMP and WAMP with same results. I really hope someone can help me with this cause i am pulling my hair here.
Update:
I tested the dl command with other modules and they are downloaded to the correct folder. I cleared the drush cache several times. Yet site_audit and drupalgeddon keep getting downloaded to the wrong folder. I just don't get it.
Stupid me. These are both not modules but Drush extensions, hence the alternative download locations.
I think the real problem is, that you didn't specify the site-alias in your "drush dl" statement.
You run
drush #site-alias status
containing the site-alias, but
drush dl site_audit
without a sie-alias. I suppose you are in the drush folder, as drush downloads to the current folder, if no root folder is given explicitly or via site-alias.
i am using WordPress 3.6.1 and I have strange problem today. First I have to tell that my current website was copied from old website, both the WP files and database.
So in the current website, I try to install new plugin, but it returns error:
Downloading install package from http://downloads.wordpress.org/plugin/xml-sitemap-xml-sitemapcouk.zip…
Download failed. Could not open handle for fopen() to /home/k5841724/public_html/wp-content/uploads/xml-sitemap-xml-sitemapcouk.tmp
Then all my plugins are dissapered (Akismet, Hello Dolly, etc), and I can't install any plugin. Nothing wrong with my permission, /wp-content, /wp-includes, /wpcontent/uploads all are set to 755. Any idea what is the solution for this issue? Thanks.
addition note:
all my plugins folder (Akismet, etc) still there inside wp-content/plugins folder, but not appear in WP Dashboard.
You should check permissions for folder wp-content/uploads
I think wordpress can't write to this folder. Set for this folder permission 777 and try again.
I have experienced the same error with plugin installation.
In my case it was very informative to change WP_DEBUG to true in my wp-config.php file.
After doing so I have noticed the error message, telling me that open function is disabled due to security reasons.
Try changing your php.ini settings so that disable_functions doesn't contain fopen
I am trying to install wp-recaptcha in my wordpress site. But it showed me the following error.
Warning: require_once(/home2/sample/public_html/test.com/wp-content/plugins/wp-recaptcha/recaptchalib.php) [function.require-once]: failed to open stream: No such file or directory in /home2/sample/public_html/test.com/wp-content/plugins/wp-recaptcha/recaptcha.php on line 158
How to fix this?
It seems the recaptchalib.php file is missing in the plugin directory, or that the Web server can not access it. Check you have uploaded all plugin files (since recaptchalib.php is present in the plugin package) and that the file permissions are set correctly.