Trouble moving Drupal 6 installation to new domain name - drupal

I need to change the domain name of an existing Drupal 6 installation.
The site is hosted on 1and1.com which allows you to map new domain names to existing directories, so I added the new domain name, selected the correct installation directory for it, and updated the $base_url in ...drupal/sites/settings.php.
This gave me the following error message:
this is it! Warning: Cannot modify header information - headers
already sent by (output started at .../drupal/index.php:3) in
.../drupal/includes/common.inc on line 153
The database hasn't moved. The directory hasn't moved. So I'm thinking there must be other places that need to be updated with the new base url in order to function. Can't find an answer in the drupal documentation.
Thanks for any help!

Related

How to duplicate a repo to a new one without affecting the original repo?

I am new to github and very confused right now...
I successfully started a repo that connected with my localhost Wordpress site.
But now, I would like to clone this site to a remote hosting server, also start a new repo connecting with that remote server.
What I did is, I duplicated my local site folder(just in case any failure happens). And I am trying to create a new repo for this duplicated folder.
But seems, Github still knows this is a duplicate and doesn't allow me to create a brand new repo...
Any ideas? Thank you all~
https://help.github.com/articles/duplicating-a-repository/
This should provide you with the information you need. Github has extensive documentation that is user friendly and easy to read.
Create a new blank repository in Github say name foo. Now add this repo's url as your new origin in your earlier repository using the steps below.
Replace the origin in your .git/config file to foo's url (backup
original config file)
Now do
git push origin <branch-name>
Now restore your config file .

Drupal Commerce Kickstart - Making Test site of Live site

I want to do developments on my client's website but by making a clone of it. So, main website url is: http://website.com and the clone i am trying to create is: http://test.website.com.
So far i've done the following:
copied entire root directory into public_html/test dir (with folders config,field,FirePHPCore,fontyourface,includes,js,misc,modules,scripts,sites,styles and themes)
created a subdomain in cPanel for test.website.com
checked the file settings.php (inside sites/default folder) for $base_url but found it commented, so left it as it is unchanged.
copied db via phpMyAdmin and updated the new db details in settings.php (inside sites/default folder).
inside the table variable, two rows with the name securepages_basepath and securepages_basepath_ssl. Changed their values from http://website.com to http://test.website.com (using the variable_get and variable_set functions).
Now i can access http://test.website.com but when i click on login (from header) it takes me to http://website.com/user and if manually type http://test.website.com/user and login then it takes me to http://website.com/users/admin then i have to manually type in correct address http://test.website.com/users/admin.
And when i logout, it again takes me back to http://website.com.
So i want to know how can i completely make it to work on http://test.website.com?
Are there more variables to change?
And how i can make 100% sure that the test site is only using test and not the live site. I am afraid of messing up live website.
Please advice, thanks!
I fixed it by disabling the secure pages from inside the mysql database. It was inside variable table and securepages_enable field. It was in blob so i had to download the blob first and opened it in notepad and changed the value inside it from 1 to 0 and then uploaded it back by updating the securepages_enable field.
I had to do this because after logging in from my test url, the urls were redirecting back to the live website, so whatever change i was making, it was all affecting the live site.
Hope this helps to someone with similar case. Thanks!

Copying a Wordpress Site to a Subdomain

I am copying my site The Sydney Visitor to the subdomain new.thesydneyvisitor.com. The reason is that i want to change the design while my old site is still active.
What I have done so far:
Copied all the files to the sub-domain directory using ftp.
Created a new database
Exported the old site database and imported it to the new database
Edited the wp-config file (in the subdomain directory) to point to the new database
Updated the wp-options table to reflect the url change
Run this query to update the URL change in the posts
UPDATE wp_posts SET guid = replace(guid,'http://www.thesydneyvisitor.com','http://www.new.thesydneyvisitor.com');
The problem:
After doing all these when I try accessing the site using the subdomain url I get the following errors:
Warning: require(/home/rapidtem/public_html/new/wp-includes/load.php) [function.require]: failed to open stream: No such file or directory in /home/rapidtem/public_html/new/wp-settings.php on line 21
Fatal error: require() [function.require]: Failed opening required '/home/rapidtem/public_html/new/wp-includes/load.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rapidtem/public_html/new/wp-settings.php on line 21
Kindly assist. I am stuck.
Thanks in advance
Double check the following things.
Properly configured the sub-domain directory.
Copied all the wordpress files to the new directory. (I prefer zip the wordpress folder and upload to the new place to avoid any file loss)
Correct database names given in wp-config.php
The new directory has the read/write permissions (Check is it a password protected folder or not)
If everything above is fine, then the problem will be in your new database.
Instead of running a query to update the URL change in the posts do the following steps:
Goto wp-options table and edit the site_url ( at 1st row), home (around 39th row ) and upload_path ( atround 58th row).
Here is a detailed tutorial How to move wordpress to a new server or host.
There are some plugin available to do these search and replace in database. Check this one
Have you checked the referenced files exist in those locations?
Did you change the Home and Site URL from the Wordpress Database?

Plugin: WP e-Commerce Errors immediately after activating plugin

I'm using wordpress plugin Duplicator followed all instructions but I get this when I transfer it on a temporary website page.
Warning: session_start() [function.session-start]: Cannot send session
cookie - headers already sent by (output started at
/home/public_html/temp/wp-content/plugins/wp-e-commerce-product-showroom/wp_e_showrp.php:469)
in
/home/public_html/temp/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants.php
on line 17
Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at
/home/public_html/temp/wp-content/plugins/wp-e-commerce-product-showroom/wp_e_showrp.php:469)
in
/home/public_html/temp/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants.php
on line 17
Warning: Cannot modify header information - headers already sent by
(output started at
/home/public_html/temp/wp-content/plugins/wp-e-commerce-product-showroom/wp_e_showrp.php:469)
in
/home/public_html/temp/home/public_html/temp/wp-includes/pluggable.php
on line 866
Then I read some solutions posted in wordpress forums:
Solution:
Create a php5.ini and save it in your root folder. If you have various websites under one server, then it will be saved where you can view all the websites' folders.
Create a folder in the root named "tmp" (without "s)
Type this inside the php5.ini :
session.save_path = "/home/content/##/#######/html/tmp"
upload_tmp_dir=/tmp
*The #s are replaced by what your hosting provider gave you. In Godaddy, when you enter your Hosting Control Center it will be the
Absolute Hosting Path under Server.
They said it worked but not for me. Can you help me identify where my save_path?
Is this solution really working? Do you have any other option to solve this problem?
To find your absolute path which is needed for your save_path, log in to your Hosting Control Center. Once logged in you will see the Server column in the middle of the page. At the bottom of this column is your absolute path. Simply append /tmp to the end of this after creating the folder in your root.

Language switching fails for multilingual drupal site

I'm trying to build a multilingual web-site with Drupal 6 and currently I ran into a problem switching UI language. Switching language from the default one using language switcher block doesn't work and displays error message:
The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
The following message gets written to a log:
An error occurred during creation of the JavaScript translation file for the language [language_name].
Drupal 6 on Windows and IIS 7.0.
Check if you have a directory called "languages" inside "sites/default/files" and make sure that this directory is writable.
If this doesn't solve the problem, check if there's a Drupal variable called "locale_js_directory" (in the "variable" table in MySQL) and check its value. If this exists, its the name of the directory in which the JS file will be created (instead of in the "languages", which is the default). Check if this directory exists and is writable as well.
It sounds like a permissions issue. Is your files directory writable? Check the status page (Admin > Reports > Status report). You might also want to check out these similar issues from other Drupal users running on IIS:
http://drupal.org/node/522066#comment-1822892
http://drupal.org/node/776392#comment-2867646

Resources