Hey guys was chatting with Gizmo on this and he asked to share it on the forums..
I just did a completely fresh installation of 7.7.4 and it was pretty much un-eventful. I have one wierd issue. I go to change the forum style from dark to light in the bottom dropdown and vice versa. It gives a 404 error because it has doubled the entry when referencing it'self.
All I remember was it was a edit to the htaccess file. When I changed hosts it worked fine without the fix but I never could figure out what was different between the the two hosts. Because my account at the previous host was closed to quickly during the transition.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
yes everything is the same. its a www windows dir and Full URL path is http://www.domain.com the relative is blank because we are running the whole site as a forum and not a sub directory. I have tried just about everything so far.. even checked php.ini stuff. never had this issue with my older installs
edit: this is fine, because it gets decoded back special chars when it is used. though I am looking at your output and wondering why it reads as "//www.mshastro.com/". This is url without a protocol. It is not html5 spec. choose http or https for the protocol.
Last edited by isaac; 09/30/20205:22 PM. Reason: pressed submit too early. lol
check the screeny attached. Everything seems to work although I am losing icons at time like the camera for the forum. something is changing. I used the css validator from debug mode and it says 105 css issues and missing fields
I am using IIS on windows 2012. no redirects setup of on the website.
Your screenshot is of a "Paths & Database" setting.
Does this match the same URL in your general setting for "Homepage URL" ?
Do you also have your sessions path setup correctly?
as a side note, which I believe to be completely unrelated to the Windows paths issue you are currently experiencing: The CSS validator you use, is it validating against CSS2.1 or CSS3? You will get errors if you are validating CSS3 against a CSS2.1 file. Is the file you are validating against something included with UBB.threads, or something you created or found online somewhere, such as a prior version of UBB.threads? What are you validating? a url or a hostedhtml page, or direct link/copy-paste of a css file. a a backedup or exported ubbt style?
It didn't change the redirect issue.. I also noticed that the image camera icon on the image gallery forum will show up first time. I click into the forum and go into the image forum list and the icon is gone.. it goes from :
<img src="/images/general/ventura/newimages.gif" ondblclick="markRead('3','nonewimages.gif')" style="cursor: pointer" title="Double Click this icon to mark this forum as read." alt="" id="icon-3">
reinstalled the forums without error.. same issues. I am thinking it is some code affecting pathing. I have tried every combination in general and paths section.
The forums load perfect and after I click on a link it starts dropping resources like the Camera Icon and the double URL post taking place with switching the Styles at the bottom dropdown list
I take it everyone using linux.. I have used Windows and IIS since 1997 and have always had these forums run on the server since 2001. Looking into iis rewrites of the url now but I don't think it will change much. If you need a windows iis tester I am your man for future releases.. I would even give you your own site, ftp etc..
ok great.. I just realized the icon goes away on these forums too after you click on it.. I might be mistaken about the icon thing.. It used to just go grayed out etc.. in the past.. still getting used to everything. sorry.. I am trying to not jump to conclusions.
Maybe somebody should reach out to BellaOnline. She is the only member I know of that has used a windows server from the get go. In fact I think she still uses a windows server. Her site shows she is using UBB 7.7.3 I believe. https://forums.bellaonline.com/ubbthreads.php
She may have run into the path issue herself in the past. Might save some troubleshooting steps for all.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
I gave Isaac access to a test site and domain for testing code. You guys should validate code for all platforms. I am also validating things on my end
I am going to need to get it fixed.. I tried just running 1 template and the dropdown didn't get rid of the template in the list so now it gets lost when I try to use the style that was deleted. I
Where can I get some other styles.. I went to ubbdev and really didn't find much. I would like to check out other styles to be honest.. the current styles delivered with the code had missing elements and 108 errors if you go to the css styles tester delivered with debug mode.
It's a simple fix but the real issue is all the URL validation / redirects in the code that caused this (linux / php stuff). I was watching the calls being made by the forums in fiddler and was able to determine the problem. So I wrote this simple redirect in IIS to offset the code.
Forum setup steps in control panel:
1) I entered in the "Full URL to Forum Directory" http://www.domain.com 2) I entered in the "Full URL or Relative URL to Forum Directory" http://www.domain.com not blank but I could of probably did that too. 3) I entered everything else as normal.
Steps in IIS URL Rewrite tool this works on all IIS 7.0 and higher
1) I created a blank rule 2) look at attached screenshot at the rest of the entries
The rule captures the double URL entry made by the code when changing styles (self posting) and redirects it back to the original URL.
I worked on an advanced rule that would allow where you were currently in the forums to have the double entry removed and bring you right back to that spot under the new style. I could not do this as I saw in fiddler that if I passed a URL with variables under the redirect, the forums would immediately over write the URL again via a curl redirect or call. So I had to just bring it back to root URL.
It would crash otherwise because of the coded rewrite. If there are any additional Rules needed I will do them and post them on the forum. I might change things a bit to accommodate SSL. Easy addition. Also I can use the [host] variable instead of hard coding the site.
You guys might want to put this in a How To by itself so it doesn't get lost.
I cannot reproduce your issue on a fresh/clean install of current versions of everything. Have you tried removing your customized server redirects, or restoring your server settings to their defaults? Have you tried updating your versions? It could be possible that any issue you are experiencing now, has been resolved in a newer (currently supported) version.
The following is what I tested with. Zero issues presented themselves. Everything continues to work as expected. No code changes or redirection tricks used or needed.
FRESH INSTALL OF: Windows 10 Pro version 1909 Internet Information Services 10.0 (IIS/10) PHP 7.4.11 MySQL 5.7.31 UBB.threads 7.7.4 (installed to ROOT of localhost)
I noticed a few things about your issue that stand out as unnatural:
You're running the bleeding edge version of PHP, so new that it wasnt even officially released at the time you were running it, but are doing it on web server version that has reached end of support several years ago (2018).
Either of these could be related to the cause of your problem. Though, i believe your main issue is the custom url redirects you've created.
I have not done any tuning or tweaking to it. You should review each item to best fit your specific use. The following was setup purely from memory at 8pm last night, on to a VM (VirtualBox) using a freshly installed Windows 10 Pro, updating to the latest patches, enabling the IIS (CGI/FastCGI) and installing only the required items; PHP, MySQL, Chrome, Notepad++, WinRAR. I believe my total time spent was about 8 hours. I might have missed a few items, as it was already at the end of my day.
PHP 7.4.11 - php.ini is attached as php.ini.txt. You will need to modify it for your own needs and rename it.
Last edited by isaac; 10/03/202012:36 AM. Reason: post formatting