Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: Aaron Smith on January 31st, 2014, 03:43 AM

Title: Pretty URLs and Paths
Post by: Aaron Smith on January 31st, 2014, 03:43 AM
On a fresh install (both on my local system and a new VPS) the paths appear wrong.

I changed the Pretty URL settings to prettify Topic URLs and it tries to take me to:

http://127.0.0.1/wedge/general/1/welcome-to-wedge/

Instead of http://aridenkane.com/general/1/welcome-to-wedge/

I checked the Paths and HTML Templates and Assets paths are all wrong.

http://127.0.0.1/wedge/core/html
http://127.0.0.1/wedge/assets

Changing the paths does nothing to help. Did I miss a post or some special instructions?

Aaron
Title: Re: Pretty URLs and Paths
Post by: Harz-FEAR on January 31st, 2014, 01:45 PM
I think you can go to the settings table in your database and change the path there.
Title: Re: Pretty URLs and Paths
Post by: Nao on January 31st, 2014, 02:40 PM
I'd like to know if it's the same for everyone though...
Title: Re: Pretty URLs and Paths
Post by: Maxx on January 31st, 2014, 03:00 PM
Yes I'm getting the same thing I will dig deeper !
There are several setting there lol!

regards,
Maxx
Title: Re: Pretty URLs and Paths
Post by: txcas on January 31st, 2014, 03:12 PM
Quote from Nao on January 31st, 2014, 02:40 PM
I'd like to know if it's the same for everyone though...
Weird, my paths are correct.
Title: Re: Pretty URLs and Paths
Post by: Maxx on January 31st, 2014, 03:16 PM
yes get the same for topic and board when radio button is select under pretty urls, I think this may have something to do with the setting local host ( not sure ) I look more into this and report back! I think I've seen the local host listed in my server sett up in the admin section... I check, ??
I would guess these need to be set  by us?

regards,
Maxx
Title: Re: Pretty URLs and Paths
Post by: Maxx on January 31st, 2014, 03:24 PM
OK here it is (Paths:)

URL to HTML templates : http://127.0.0.1/wedge/core/html
Path to HTML templates
URL to assets folder : http://127.0.0.1/wedge/assets

so the db is probably the same .

regards,
Maxx
Title: Re: Pretty URLs and Paths
Post by: Maxx on January 31st, 2014, 03:43 PM
Quote from Maxx on January 31st, 2014, 03:24 PM
OK here it is (Paths:)

URL to HTML templates : http://127.0.0.1/wedge/core/html
Path to HTML templates
URL to assets folder : http://127.0.0.1/wedge/assets

so the db is probably the same .

regards,
Maxx
Note I'm on the net not local. Just in case...
Title: Re: Pretty URLs and Paths
Post by: Nao on January 31st, 2014, 03:46 PM
I don't get where you get this address from.
The only place it shows up is in the 'dummy' Settings.php file for install purposes, but even this gets erased after installing.
Did you mess up with Settings.php at some point..?

Also, regarding PURL paths, I'm seeing nothing special on forums installed in the root, however I tried with one of my forums installed in a sub-folder, and it redirected me to the root one. So, I guess there's a bug in here somewhere... I'll have a look.

Nope... This was due to the fact that the forum's htaccess file wasn't correctly uploaded to its root. See, I have yet to move this one to the OriginalFiles.php code, so... No wonder it failed.

So, as a reminder:

If you're enabling pretty URLs on your forum, MAKE SURE that the .htaccess file is in your forum root!

Original location: /install/.htaccess
New location: /.htaccess
Title: Re: Pretty URLs and Paths
Post by: Nao on January 31st, 2014, 03:48 PM
Okay, now that I've fixed the htaccess problem, I'm getting these 127.0.0.1 errors -- like, right now. Something's broken around here.
I'm *guessing* that Wedge was silently fixing these errors after installing, and that's why I didn't catch them when I rewrote the installer.
Sorry about that. I'm on it right now.
Title: Re: Pretty URLs and Paths
Post by: Maxx on January 31st, 2014, 04:06 PM
Say NP Bro..I broke my site, gonna get Git to see what the latest change are... I love this Stuff!

these things happen the Beta and this for alpha  testing in real life anyway right. No to mention some user errors! :)

regards,
Maxx
Title: Re: Pretty URLs and Paths
Post by: Aaron Smith on January 31st, 2014, 05:09 PM
Ok I just download and installed on my local machine and everything worked perfectly. Paths were back to normal and Pretty URLs seems to be working well again.

I'll do a fresh install on my vps to ensure it's working there as well.

Is the requirement for the .htaccess file to be moved from the install directory to the root documented anywhere?
Title: Re: Pretty URLs and Paths
Post by: Maxx on January 31st, 2014, 05:17 PM
I did that and my site broke, maybe me. lol... gonna do a fresh install latest file rev at git!

took the .htaccess out stil ng!

regards,
Maxx
Title: Re: Pretty URLs and Paths
Post by: Nao on January 31st, 2014, 05:20 PM
@Aaron Smith, I'm not 100% sure it's documented. However, it was (is?) my intention to automate this as well, so... I don't now.
The problem is that this htaccess file doesn't only contain references to pretty URLs (it's only at the end.) It also contains a lot of helpers that force some Apache or PHP settings if the script can't force them by itself.
What I COULD do, though, is, in the Pretty URLs admin page, have some explanation on why you need the htaccess there (if not found), and perhaps also use the opportunity to give more pointers for ngnix and lighttpd compatibility, for instance.

@Maxx> Yeah, I know, but I don't like getting errors during installation, because... Well, it gives you a feeling that it's gonna be a hell of a ride, right from the start... :lol:

Whereas the only reason I rewrote the installer was to make life easier for everyone; in the process, I broke stuff.

So, please confirm that the new installer fixes stuff. If you don't want to reinstall (which I'd understand!), just update these variables to the correct ones:

{db_prefix}settings.theme_url
{db_prefix}settings.images_url
{db_prefix}settings.smileys_url
{db_prefix}settings.avatar_url
{db_prefix}media_settings.data_dir_url

I think that should be all. Basically, it's everything in install.sql that's reset to {$boardurl} (just search for that in the file, including brackets.)
Title: Re: Pretty URLs and Paths
Post by: Maxx on January 31st, 2014, 05:28 PM
Nao I hear Ya. but this was only when playing with pretty urls, but still see you point well take it.

Then again, It should be expected from those testing for the first time. JMHO, but I know you want the best and that's way cool with me :)

regards,
Maxx
Title: Re: Pretty URLs and Paths
Post by: Nao on January 31st, 2014, 05:30 PM
If your site is still down, and it's a 'public' site, drop me a word here if you need someone to fix things for you.
Title: Re: Pretty URLs and Paths
Post by: Aaron Smith on January 31st, 2014, 05:32 PM
Quote from Nao on January 31st, 2014, 05:20 PM
@Aaron Smith, I'm not 100% sure it's documented. However, it was (is?) my intention to automate this as well, so... I don't now. The problem is that this htaccess file doesn't only contain references to pretty URLs (it's only at the end.) It also contains a lot of helpers that force some Apache or PHP settings if the script can't force them by itself.
What I COULD do, though, is, in the Pretty URLs admin page, have some explanation on why you need the htaccess there (if not found), and perhaps also use the opportunity to give more pointers for ngnix and lighttpd compatibility, for instance.
That would work I think. More pointers is always welcome.
Quote from Nao on January 31st, 2014, 05:20 PM
So, please confirm that the new installer fixes stuff.
So after a fresh install on my local machine and my VPS everything appears right with the world. Paths are normal again and Pretty URLs is working. For me at least.
Title: Re: Pretty URLs and Paths
Post by: Maxx on January 31st, 2014, 05:56 PM
Quote from Nao on January 31st, 2014, 05:30 PM
If your site is still down, and it's a 'public' site, drop me a word here if you need someone to fix things for you.
I think it may be my host. I tried allot of stuff and nothing.. the thing is they have anew way of installing sub-domains:
Have a Domain so a sub and it show up under the servers main root public_html/wforum
when it should be sud-domain name/wforum..But not worry I think I can do a restore point on that directory!

I have several Domains on my server!

thanks,
Maxx
Title: Re: Pretty URLs and Paths
Post by: Maxx on January 31st, 2014, 06:07 PM
Quote from Maxx on January 31st, 2014, 05:56 PM
Quote from Nao on January 31st, 2014, 05:30 PM
If your site is still down, and it's a 'public' site, drop me a word here if you need someone to fix things for you.
I think it may be my host. I tried allot of stuff and nothing.. the thing is they have anew way of installing sub-domains:
Have a Domain so a sub and it show up under the servers main root public_html/wforum
when it should be sud-domain name/wforum..But not worry I think I can do a restore point on that directory!

I have several Domains on my server!

thanks,
Maxx
Yes I  have a restore point from 30 jan 2014 Yea!

regards,
Maxx
Title: Re: Pretty URLs and Paths
Post by: Nao on January 31st, 2014, 08:47 PM
Quote from Aaron Smith on January 31st, 2014, 05:32 PM
So after a fresh install on my local machine and my VPS everything appears right with the world. Paths are normal again and Pretty URLs is working. For me at least.
Good!
Title: Re: Pretty URLs and Paths
Post by: Maxx on January 31st, 2014, 10:27 PM
In the morning I'm going to do a Fresh install, on another server to see what happens, this one they have crazy way creating a sub domain, and I will also try to install into a manually created directory to see that goes ... to caver various install types. I will post things as I find them, I have other issue, but I think they do to paths for the assets and other stuff.

But anyway if you are using like host monster or similar you may run in to the same issues ( Please not) the direct path is not the same as the sub-domain, when you create one, and this something else I will investegate in my Cpanel setups!

regards,
Maxx
Title: Re: Pretty URLs and Paths
Post by: Nao on January 31st, 2014, 10:32 PM
Yeah, can't say I've been using Wedge in a lot of sub-folders, but it's what I did yesterday and it was working just fine.
Title: Re: Pretty URLs and Paths
Post by: txcas on February 27th, 2014, 06:39 AM
I had SMF on root\ and Wedge on root\upgrade.  After importing SMF to Wedge I moved all the Wedge files to root\ and modified all the paths in Wedge.  Everything works fine but pretty URLs.  When I turn on pretty URL on topics and try to browse to a topic, the link goes to upgrade.domain.com instead of www.domain.com(http://www.domain.com).  That was the path to the Wedge installation and subdomain before the move.  Where is that setting at?
Title: Re: Pretty URLs and Paths
Post by: Farjo on February 27th, 2014, 08:48 PM
I see you're live! Did you figure out the answer or just switch off pretty-urls?