Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: Bunstonious on February 14th, 2014, 02:02 PM

Title: Pretty URL | Unable to Post
Post by: Bunstonious on February 14th, 2014, 02:02 PM
So I have a strange issue where when you enable Pretty URL's you are unable to post, you type your post and press "post" and it just resets the form and nothing gets posted.

Navigation seems to work ok (except action URLs).

I have copied .htaccess as requested from the install folder, does it with a brand new install as well as an import (just updated Wedge today) and I have checked the paths are correct.

PS: I like the home button actually does something now, ballin;.
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 14th, 2014, 02:09 PM
So it seems that action URLs are working.

#themoreyoulearn
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 17th, 2014, 02:25 PM
So I have (using @Nao fixes) been able to get all of the Pretty URL's working, however this issue is still present.

Essentially the posting just doesn't work, it clears the form and doesn't do anything.
Title: Re: Pretty URL | Unable to Post
Post by: Nao on February 17th, 2014, 02:54 PM
Did you try to disable action URLs? With the other filters enabled? Does it work?
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 17th, 2014, 03:04 PM
Quote from Nao on February 17th, 2014, 02:54 PM
Did you try to disable action URLs? With the other filters enabled? Does it work?
Have tried disabling action and the rest enabled and nothing, tried post and topics 1 by 1 and fails, disable both and works.

Action Enabled with Board and Topics disabled works ok also.
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 17th, 2014, 03:25 PM
Not sure if this is an issue, topics have numbers in the URL.

Eg https://forum.bunston.net/test-bed/71/test/

Displays ok tho
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 17th, 2014, 10:10 PM
Ok so I have noticed that wedge.Org has those numbers also so must not be that.
Title: Re: Pretty URL | Unable to Post
Post by: Nao on February 17th, 2014, 11:56 PM
Yes, actually you can remove everything after the topic number (the human-readable part), your URL will still work... That's because Wedge doesn't waste time looking up a topic name in the DB to match it with a topic ID. It's more practical, I think, even if topic IDs aren't too cool, but at least they indicate whether a topic is older than another, etc.

Regarding your problem... I'm thinking, maybe it's due to the fact that you're in a sub-folder..?
Have you tried on a root folder..?
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 18th, 2014, 03:43 AM
It is the root of that virtual host, the forum is located at forum.bunston.net

If it's too hard or time consuming I'll just stick with normal URLs
Title: Re: Pretty URL | Unable to Post
Post by: Nao on February 18th, 2014, 07:14 AM
Well, I'll need FTP access and a forum account (admin if you can, otherwise a regular account if you remember to re-enable all filters).
I'm not giving up on PURLs, myself...
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 18th, 2014, 08:21 AM
Is web file manager access ok?
Title: Re: Pretty URL | Unable to Post
Post by: Nao on February 18th, 2014, 10:14 AM
Meh.. I never use that kind of thing.
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 19th, 2014, 11:26 PM
Quote from Nao on February 19th, 2014, 02:54 PM
@Bunstonious, okay... Your FTP sucks. It doesn't like my favorite client, so I had to install FileZilla (which I dislike), and then it took over a minute to connect, and even then, the LIST commands always ends up timing out. I don't know what your host is, but they're really, really bad.
"I" host it :p

FTP works internally but I suspect external FTP runs like balls because my uploads are shite, or there is a firewall issue (still working on it). I haven't looked at it before now because I have SSH access.
Quote from Nao on February 19th, 2014, 02:54 PM
Now, onto your problem...

I went to see your index.php file through your web access, and... Where the hell is the upgrader code?!
It looks like your files are all dated February 14, which is before my changes.

Did you revert your forum back to an older version, or something...? Because I'm not going to upload all files "like that", given how hard it is to handle your file system... :-/
Nah I can update them, 14th I think was the last update and I figured since it persisted since before I updated, and you didn't know what the problem was that updating every day probably wouldn't help, will do that soon.
Posted: February 19th, 2014, 10:16 PM

Upgrade seemed to work ok,

Same issue.
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 19th, 2014, 11:39 PM
Interesting Development.

It works ok with everything ticked but "Board URLs", as soon as that is ticked it breaks.
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 20th, 2014, 01:12 PM
Which is interesting because the topic URL option also prettifies the Board URL when you are in a topic.

 :sob:
Posted: February 19th, 2014, 11:41 PM

What's also interesting is that the "Mark as solved" plugin doesn't do anything if Topic Pretty URLs are enabled.
Title: Re: Pretty URL | Unable to Post
Post by: Nao on February 20th, 2014, 10:57 PM
Quote from Bunstonious on February 19th, 2014, 11:39 PM
Interesting Development.

It works ok with everything ticked but "Board URLs", as soon as that is ticked it breaks.
Which is why I said this might be due to having the forum in a sub-folder. (i.e., maybe Wedge doesn't recognize /subfolder/board/ as a board URL, or something.)

I'll have a look ASAP. I'm late for this, but I've gotta say, this FTP problem kinda upsets me, ah ah...
(And sorry for complaining about your 'host'. I only know the basics of hosting, so can't really complain... Not my job!)
Title: Re: Pretty URL | Unable to Post
Post by: Farjo on February 20th, 2014, 11:44 PM
My install is on a subforum and all seems well to me. What setting do you have? If I can reproduce then Nao can ftp into my webspace instead.
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 21st, 2014, 12:22 AM
Quote from Nao on February 20th, 2014, 10:57 PM
Which is why I said this might be due to having the forum in a sub-folder. (i.e., maybe Wedge doesn't recognize /subfolder/board/ as a board URL, or something.)

I'll have a look ASAP. I'm late for this, but I've gotta say, this FTP problem kinda upsets me, ah ah...
(And sorry for complaining about your 'host'. I only know the basics of hosting, so can't really complain... Not my job!)
It's all good, it's only on a personal connection so I don't expect it to be "business grade hosting" :P

There is no rush, i'll just disable pretty urls until then.
Quote from Farjo on February 20th, 2014, 11:44 PM
My install is on a subforum and all seems well to me. What setting do you have? If I can reproduce then Nao can ftp into my webspace instead.
I don't have any custom settings, it just doesn't work with the defaults.

Perhaps it could be something to do with the fact that I only roll over SSL?
Title: Re: Pretty URL | Unable to Post
Post by: Farjo on February 21st, 2014, 12:33 AM
Quote from Bunstonious on February 21st, 2014, 12:22 AM
Quote from Farjo on February 20th, 2014, 11:44 PM
My install is on a subforum and all seems well to me. What setting do you have? If I can reproduce then Nao can ftp into my webspace instead.
I don't have any custom settings, it just doesn't work with the defaults.

Perhaps it could be something to do with the fact that I only roll over SSL?
Well you have pretty URLs switched on! What do you have ticked etc on that screen? Or how can I reproduce the error?
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 21st, 2014, 12:49 AM
When I am not at work I will post the settings I have.

:P
Title: Re: Pretty URL | Unable to Post
Post by: Nao on February 21st, 2014, 01:06 AM
Quote from Bunstonious on February 21st, 2014, 12:22 AM
Perhaps it could be something to do with the fact that I only roll over SSL?
That may be the case.
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 21st, 2014, 01:11 AM
It only just occured to me.

I will test when I get home (although Soundwave is this weekend).

I will roll a test virtualhost with http.
Title: Re: Pretty URL | Unable to Post
Post by: Nao on February 21st, 2014, 04:08 PM
So, I've fixed the stuff over there. Not sure what caused it, probably the decoding code in QueryString.php, but rather than fixing that, I chose to fix the filters instead, to use the proper current protocol.

Unfortunately, I've also unearthed a new bug, where /post2/ doesn't redirect to the proper topic page, unlike /do/post2/.
Argh.

I'll probably remove support for /action entirely, because it's always been a bit dependent upon the fact that you're not using an action name as your current board's URL...
Title: Re: Pretty URL | Unable to Post
Post by: Pandos on February 21st, 2014, 04:28 PM
So this would also affect profiles, gallery and so on.
Don't know if it's wise to remove support for it.
Perhaps leave it as "unsupported feature".
Title: Re: Pretty URL | Unable to Post
Post by: Nao on February 21st, 2014, 07:55 PM
This wouldn't affect anything, it's just that existing links to actions would break. But it's early, and wouldn't be a problem.
I think..?

Then again, I could also fix the stuff.
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 21st, 2014, 10:15 PM
Ah right, :D
Title: Re: Pretty URL | Unable to Post
Post by: Bunstonious on February 21st, 2014, 10:20 PM
Quote from Nao on February 21st, 2014, 04:08 PM
So, I've fixed the stuff over there. Not sure what caused it, probably the decoding code in QueryString.php, but rather than fixing that, I chose to fix the filters instead, to use the proper current protocol.
A good idea, I know that some people prefer to roll over HTTPS (I do it to stop my work snooping)
Quote from Nao on February 21st, 2014, 04:08 PM
Unfortunately, I've also unearthed a new bug, where /post2/ doesn't redirect to the proper topic page, unlike /do/post2/.
Argh.
This one was working fine on my forum, but not my wedge test. It's a weird one.
Quote from Nao on February 21st, 2014, 04:08 PM
I'll probably remove support for /action entirely, because it's always been a bit dependent upon the fact that you're not using an action name as your current board's URL...
Meh either way I am not that phased, it makes it cleaner to remove the "do" bit, but it still looks "pretty" with it in.