News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Index doesn't work. Boards work.

Started by SaidJan, September 15, 2018, 07:06:02 PM

Previous topic - Next topic

SaidJan

I just wanted to update some files, so I downloaded the updated files from GitHub and copied them to my server. Then this is what happened. I also reinstalled (overwrite) 2.1 beta 3, and doesn't work yet.
I don't have any packages installed.

This doesn't work. http://shahredoosti.66ghz.com/index.php
but boards work: http://shahredoosti.66ghz.com/index.php?board=226.0

What's the problem?

Kindred

Something is changing your url to this...  http://shahredoosti.66ghz.com/index.php?i=1

Probably a bad htaccess edit
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SaidJan

Quote from: Kindred on September 15, 2018, 07:28:48 PM
Something is changing your url to this...  http://shahredoosti.66ghz.com/index.php?i=1

Probably a bad htaccess edit

That was happening before this problem.
Also if you try http://shahredoosti.66ghz.com it doesn't add i=1.
There is only one line in my htaaccess, and it's this: php_value display_errors on

shawnb61

Whenever you overwrite the files, you should run the upgrade process.

To do so, copy the 8 files that start with upgrade*.* from the /other folder to your root folder & then run upgrade.php.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Kindred

That is not necessary, shawn...   running upgrade is only needed if there were database changes
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

shawnb61

Or updates to settings.  Since you never know, and it could happen any time, it is safest to do so.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

SaidJan

Quote from: shawnb61 on September 15, 2018, 10:17:35 PM
Or updates to settings.  Since you never know, and it could happen any time, it is safest to do so.

I did what shawn said and didn't work.
When I reinstalled smf again, I updated the setting.
Interesting thing is that subforums work, but index doesn't.

shawnb61

I suspect an issue with the theme.  Can you try another theme?
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

albertlast

Quote
I just wanted to update some files, so I downloaded the updated files from GitHub and copied them to my server. Then this is what happened. I also reinstalled (overwrite) 2.1 beta 3, and doesn't work yet.
Many question in my mind i got,
which files you updated?
Which upgrade files you run?
What you mean with reinstall beta3?

SaidJan

Quote from: shawnb61 on September 15, 2018, 11:34:31 PM
I suspect an issue with the theme.  Can you try another theme?

I tried other themes, and didn't work.

Quote from: albertlast on September 16, 2018, 12:27:23 AM
Quote
I just wanted to update some files, so I downloaded the updated files from GitHub and copied them to my server. Then this is what happened. I also reinstalled (overwrite) 2.1 beta 3, and doesn't work yet.
Many question in my mind i got,
which files you updated?
Which upgrade files you run?
What you mean with reinstall beta3?
I went to github and saw some updated files, and downloaded them and copied them to the server. Most of them were in root, source, and theme folders.
I tried both update.php files, from beta 3 and github, but looks like it doesn't update. (Gives lots of errors: : Undefined index: updating_smf_installation in /htdocs/upgrade.php on line 229)
I mean copied beta 3 zip file into root, and unzipped it there. and then went to homepage (redirected to install.php) and reinstalled smf.

Kindred

You can't do I think that way.

If you want to go to beta 4 then install beta4.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SaidJan

Quote from: Kindred on September 16, 2018, 09:56:46 PM
You can't do I think that way.

If you want to go to beta 4 then install beta4.

I removed all files from my server, then unzipped beta4 in the server and updated the setting file with repair_settings.php.
Still didn't work.

albertlast

When you look at the diff between beta 3 and github version: https://github.com/SimpleMachines/SMF2.1/compare/v2.1-beta.3...release-2.1
your notice that 492 files got changed.
to change some files needs to be 492.

Use the nightly upgrade zip: https://www.simplemachines.org/community/index.php?topic=558451.0
and rund the upgrade.php than.

But like always the warning the upgrade from beta3 to github is not offical supported.

SaidJan

#13
Quote from: albertlast on September 16, 2018, 11:53:39 PM
When you look at the diff between beta 3 and github version: https://github.com/SimpleMachines/SMF2.1/compare/v2.1-beta.3...release-2.1
your notice that 492 files got changed.
to change some files needs to be 492.

Use the nightly upgrade zip: https://www.simplemachines.org/community/index.php?topic=558451.0
and rund the upgrade.php than.

But like always the warning the upgrade from beta3 to github is not offical supported.

Wow, finally nightly update worked.
Thanks so much.
Does this update file gets updated automatically? What do you suggest if I want to update to the GitHub version later (let's say in 1-2 month)?

P.S: Adding a language gives "The Simple Machines site is not responding. Please try again later."

Aleksi "Lex" Kilpinen

Quote from: Kindred on September 15, 2018, 07:28:48 PM
Something is changing your url to this...  http://shahredoosti.66ghz.com/index.php?i=1

Probably a bad htaccess edit
As the only situation I have seen adding a i=1 before was a hacked server ( a redirection hack ), I would like to add a suggestion to this topic:
Go through your files with care, make sure there is nothing "extra" in there..
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

RML

Quote from: Kindred on September 15, 2018, 07:28:48 PM
Something is changing your url to this...  http://shahredoosti.66ghz.com/index.php?i=1

Probably a bad htaccess edit

I have seen this before, it happens with some free host (mine forum was hosted by ByetHost). They says it's a security system designed to stop malicious bots from accessing your website.

Kindred

in which case, those hosts are complete and utter idiots.


SaidJan,
There's a big reason why we tell people not to use betas on a live/production site....

simple upgrades between nightly builds are sometimes difficult and rarely supported OOTB - especially when the nightly is still in beta and even database columns can change
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

GigaWatt

Quote from: Aleksi "Lex" Kilpinen on September 17, 2018, 01:35:47 AM
As the only situation I have seen adding a i=1 before was a hacked server ( a redirection hack ), I would like to add a suggestion to this topic:
Go through your files with care, make sure there is nothing "extra" in there..

I usually set up my test sites on a free host and mine does the exact same thing, adds i=1... though I can view my index and I can browse the forum, no problems.

So, I don't think it's a hacked server issue, what RML posted does seem more logical.
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Aleksi "Lex" Kilpinen

That might well be, I have actually never used a free host for a forum personally.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

GigaWatt

I only use free hosting for testing purposes, upgrades, mod testing, etc. I'm not using it for anything else.

The one I'm currently using is pretty good, cPanel support, 2GB hosting space (total, including databases), 5 databases, 50GB monthly bandwidth, pretty fast FTP (compared to my current paid hosting, 1and1)... not that bad actually ;). It'll suffice for small forums ;).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Advertisement: