< More Questions : Custom 404 message? >
|
ginkgo100 |
Created: June 16, 2009 23:30 Changing the site domain causing path errorsHere's the easiest way I can explain my problem: www.mysite.com used to point to my Blogger blog. Meanwhile, www.othersite.com was another unrelated site of mine on Bluehost (which allows an unlimited number of sites on one account). I installed Injader at www.othersite.com/subdirectory and spent quite a bit of time to get it "just the way I like it" (and there's already a lot in the database—both images and articles). Now I have pointed www.mysite.com to www.othersite.com/subdirectory to make the switch. Before I did that, I updated the theme files to reflect the new path name. However... When Injader looks for system files, it's still using the old path, which of course returns an error. I read http://help.injader.com/how_to_fix_path_errors and tried re-uploading the /install subdirectory and running the installer. Neither the upgrade wizard nor the install wizard is working. I need help! Tags: None. |
|
Ben |
1
Created: June 17, 2009 09:27
Have another look at the guide - I just added a section to the end that explains how to adjust the path manually. Please look at sys/SystemDirs.php and let me know what URL_ROOT is set to. Try changing it as outlined in the guide. You will need to do this in a text editor.
|
|
ginkgo100 |
2
Created: June 17, 2009 19:19
I changed the appropriate line in SystemDirs.php to
define('URL_ROOT', "/");as directed but it had no effect. Injader keeps looking for internal links such as login.php at www.mysite.com/subdirectory/ (a subdirectory that does not exist — remember they originally were in www.othersite.com/subdirectory/). But now they are actually at www.mysite.com. I know this is true because I can get to the login page by manually entering www.mysite.com/login.php — which is where I want it — except after I enter my login details, it tries to direct me to the (nonexistent) www.mysite.com/subdirectory/login.php, causing an internal server error. So I can view the homepage (without the stylesheet, since I need to update the link in header.php) but not a single one of the links works. Would manually defining one of the other variables in SystemDirs.php work? Maybe define SVR_WWWROOT as the correct URL (hardcoded) instead of the variable? |
|
ginkgo100 |
3
Created: June 17, 2009 19:21
In case it helps, here is the (ugly stylesheet-less) actual URL:
http://www.leavethelightson.info/ |
|
Ben |
4
Created: June 17, 2009 19:43
You should never need to edit anything else in SystemDirs.php. It's not advisable as it would be overwritten with future upgrades.
Could you email me with the following information, please: 1. All of your site URLs (rather than "mysite.com" and "othersite.com") 2. Your FTP login details, i.e. username, password, and URL I will then have a look for you. |
|
Ben |
5
Created: June 17, 2009 20:17
After a bit of digging, I've found the problem. It's not caused by SystemDirs.php, it's actually caused by your .htaccess file. Open your FTP program, login to your site and go to public_html. View the .htaccess file in there. On line 8, you'll see the following:
RewriteRule . /ltlo/view.php [L]This needs to be adjusted to the following: RewriteRule . /view.php [L]However, you may find that this doesn't work for the sites you're running in subfolders of public_html. If that's the case, you'll need to copy the .htaccess from public_html and put it in the subfolders too, adjusting as necessary so it reflects the correct path. Try editing the file to remove the /ltlo from the start and see if that fixes all of your sites. |
|
ginkgo100 |
6
Created: June 17, 2009 20:35
No luck. I made that change in public_html and added it to the subfolder for this site.
|
|
Ben |
7
Created: June 17, 2009 20:50
The health info site is coming up for me, which it wasn't doing before.
I reloaded the other site and it's still trying to load stuff from /ltlo/ but this is not referenced in any of your files. I checked the .htaccess files and your SystemDirs.php files and nothing has this path in it. This suggests your host may be caching the old .htaccess file. I'm not sure if you can force a recache on your end, but could you try asking your host to see if they can delete the cache for your sites and see if this solves the issue, please? |
|
ginkgo100 |
8
Created: June 17, 2009 22:43
No luck with the host. From the Livechat transcript:
EricW [3:02:51 PM]: No caching would not be on the part of the server. I also searched the files and the /ltlo is not showing up in any files. The only other thing I can possibly think of is that perhaps it's in the MySQL database? I'm really reaching here. |
|
Ben |
9
Created: June 17, 2009 23:06
I've figured it out and fixed the problem. You had SystemDirs.php in the subfolder of your site, when it should only be in the sys folder. I vaguely recall we had this issue once before, so I'm surprised I didn't spot it sooner. Actually, you also had quite a few files from the sys folder in the top level folder for this site (public_html/subfolder), so I deleted those. They shouldn't be there. Duplicate copies of SystemDirs.php will cause problems. I'll make a note of this in the help wiki so we know for next time!
|
|
ginkgo100 |
10
Created: June 17, 2009 23:12
Aha, it is working now! Thank you!
I had noticed that some files somehow ended up in the wrong directories and I deleted those, but I thought I got them all, and then I forgot all about it. Wish I hadn't—would have saved us both a lot of trouble. |
|
Ben |
11
Created: June 17, 2009 23:13
Not to worry - the main thing is that we got there in the end. :)
PS - you might be interested in the modified URLs here at Injader.com - notice the area name is included? This is part of a new link style that will become available in 2.3.2. |
|
ginkgo100 |
12
Created: June 17, 2009 23:26
I just might do that when I upgrade. By the way, what do you think of the theme? I'm experimenting with multiple navigations—primary nav is across the top, while the left sidebar starts with secondary nav.
If I ever have time (hah) I'd like to change the graphics around and submit a variant of this to the theme library. Unlike the other one I submitted, which is cut to the bare bones (no graphics at all), I think I will include some images. But I'm currently so behind on multiple projects... |
|
Ben |
13
Created: June 17, 2009 23:29
The theme's looking good. Do submit a modified theme if you get around to making one!
|
You do not have access to post comments in this area.