Hi All,
I hope you all had great holidays....I spent most of the time getting a site ready to launch before Jan 1st. Local is all done...spent all day today trying to get it to a remote server (host for live). I can get Druapl installed no problem, get the modules moved over, but when I move the local DB things go bad. A non-styled/themed page shows and any navigation throws a redirect loop. I have been search on line, a lot of stuff about .htacess and settings.php. Reviewing those files show the DBname and DBusername to be correct. .htacess files look the same from fresh install to local. REmoved & reinstalled several times. I know there is something fairly basic that I am missing, but just can't seem to get it. Any thoughts?
http://66.147.242.191/~toadalfi/#overlay=%3Fq%3Dadmin/modules
Thanks!
Tobin
Comments
Missing file names on CSS files
A quick look at the page source shows that all of your CSS file includes have a path but not the actual CSS filename:
<link type="text/css" rel="stylesheet" href="http://66.147.242.191/~toadalfi/" media="all" />I haven't seen this before; maybe you have an owner/group permissions problem? (Might explain the problem with many of the pictures.)
--Darryl Richman
http://darryl.crafty-fox.com
Thank you
I had removed and reinstalled so many times, I did not notice on the last one that I had not moved the sites/default/files over =|
Anyway, adding those folders did not change the issues. I feel like it has to do with .htaccess or settings.php, but that is only because those pop up a lot when I do searches.
Thanks again for the reply Darryl
noticing how much this
noticing how much this ~toadalfi/ keeps looping.. that is a rewrite condition going all wrong. I have been hand building some bootstrapping lately, and can verify that, rewrite rules are borked somehow.
Make sure you have the "stock" .htaccess loaded. ensure that in your settings.php you have no other rewrite rules happening.
And yeah, ensure your permissions. If you have to, alter the permissions, and owner to your root folder, recursively, then adjust your settings.php and files directory according to your own tastes. If a perm or owner is off, then apache (assuming) won't be able to access the file, then not care if there or not, and give you that constant rewriting.
Are you on a VPS, shared host, or other?
Murias
FYI
thing that gave me the clue on the rewrite, the one link that does work...the home link.
ok
"stock" .htaccess is in the public_html folder, permissions= User: rwx group: rx World:rx.
Adding stock .htaccess fixed the picture.....as for settings.php, I don't really know my way around that too much. Coffee and/or lunch on me if you can help me with this today or tomorrow (open to anyone actually).
Thanks
NS
I'll be heading to my office at NextSpace here soon to do some work. If it works for you, you could meet me there, and I'll see what we can do.
Ok
Thank you, Just buzz when I get there (12:30ish)?
between 1230ish or 100ish
Since I have no idea who or what is going to be at NS today. I "think" I sent you my cell number through your contact form. When you hit downtown send me txt or call, I can then use that as an excuse to have a smoke break when I come down.
Good luck
Hope you guys figure it out!
Contact: https://www.hook42.com/contact
Drupal 7 Multilingual Sites: http://www.kristen.org/book
I don't think the rewrite is
I don't think the rewrite is fixed. Look at this URL:http://66.147.242.191/~toadalfi/locations. See how it keeps rewriting. You have installed drupal in a subdirectory. You need to modify the RewriteBase. Read the .htaccess file section on RewriteBase.
Thanks
For some reason the sub directory issues has never been clear to me. I will look into the RewriteBase
Did you start with a clean
Did you start with a clean install? It looks like Drupal is also not able to write files in the temp directory, a clean install should fix that.
Edit: It looks like you already tried this, anyway good luck.
Good to go
There seemed to be a major issue then an issue that compiled the major one.
Drupal does not like to be in a sub-directory when being accessed by an IP address. The rewrite rules are not designed for such a situation.
What we ended up doing was setting up DNS, and moving everything over cleanly. While giving detailed explanations along the way. Voila, it was all magically delicious. So now he effectively, has a "staging" install (or dev, depending upon how he decides to use it), and a "live" install.
-- this is the readers digest condensed version.
Cheers
Murias
Interesting
Thanks for the recap!
Contact: https://www.hook42.com/contact
Drupal 7 Multilingual Sites: http://www.kristen.org/book
Has anyone seen this warning and layout?
http://dev.toadalfitness.com/locations#overlay=admin/structure/views/vie...
d71admin log/pswrd
Sorry, here is the rest....
When I go to the locations page I start getting these errors:
*Warning: file_put_contents(temporary://fileu1Hxje) [function.file-put-contents]: failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1903 of /home6/toadalfi/public_html/dev/includes/file.inc).
*The file could not be created.
And the the views admin layout does not look right.
Usually this is a directory
Usually this is a directory permissions problem. Maybe the temp directory you've chosen isn't writeable by the webserver user or group. I'm not sure why your page should be writing a temp file for an anonymous user, however.
--Darryl Richman
http://darryl.crafty-fox.com
Directory says
User has rwx perms. Anonymous wouldn't make admin pages weird though. When I try to edit a view (like getting the locations map to show http://dev.toadalfitness.com/locations). So I am not really clear on where to troubleshoot this.
directory issue likely
and annonymous would be writing if the css and js were to be optimized for use by annonymous and they had not been created, yet.
You can double check this under performance, and the usual suspects.
Thanks
I looked in performance and it appears that css and js are optimized for anonymous users.....but I am not sure what you mean by usual suspects (still so much for me to learn)?
Your temp directory was still
Your temp directory was still set to your c:\wamp\temp. When you migrate a site to another host you need to visit the file system configuration page (/admin/config/media/file-system) and provide correct values for those directories.
I really appreciate the help
I went to /admin/config/media/file-system and it says that the path is sites/default/files
Is the c:\wamp\temp located somewhere else? settings.php or .htaccess?
It seems like different hosts set up different file paths, is there a place you recommend for more information about understanding file paths and moving to different hosts? It seems like I should be able to get this, because I can understand it on a local machine, but when I switch to remote servers I seem to get a little lost at first.
For info on file paths:
For info on file paths: http://drupal.org/documentation/modules/file
I changed them to those
I changed them to those values. Common values for Linux are:
Temp dir: /tmp
Public files: sites/default/files
Private files: sites/default/files/private
Wow! Thanks!
Thank you for directing me to some knowledge and correcting my mistake. Drupal sure has some twists and turns! But I really appreciate the support!
Sure, glad to help.
Sure, glad to help.