Redirects to installation directory without it being there

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
bw_mj
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Jul 17, 2019 8:08 am

Redirects to installation directory without it being there

Post by bw_mj » Wed Jul 17, 2019 8:52 am

Hi!
This is my first post so please excuse any mistakes I am making.
We have a Joomla installation, which was working fine for quite some years now. Two days ago we updates to 3.9.10. Actually it was an automated Plesk update.
In use:
Joomla: 3.9.10
PHP: 7.3.7

The actual issue is: Since the update, the page is apparently working fine. But ONLY for the users, that have called it before. All other browsers (including incognito mode) will be redirected to /installation/index.php
The directory and file are not there. I also tried to comment out the redirect in the framework.php but it still redirects me to the installation folder. This, of course, results in a 404 error.
The configuration.php file is present in the root folder (just where the index.php is) and has 644. I checked the content and it looks good.
Since it works for returning users I checked the cookies: The browser is sending three: two with random names/values and jbcookies=yes.
Does anyone have an idea, how this strange behaviour can appear?
The forum rules don't allow to post the URL, correct? I doubt it would help anyways to post it here.

Any help is appreciated.

Thanks and best regards,
Boris

User avatar
paulala
Joomla! Explorer
Joomla! Explorer
Posts: 301
Joined: Sat Oct 30, 2010 12:32 pm
Location: Scotland
Contact:

Re: Redirects to installation directory without it being there

Post by paulala » Wed Jul 17, 2019 9:03 am

The forum rules should allow you to post the URL if it is a Joomla site.

Do you see any errors in your PHP log?
Warm Regards,
Paula Livingstone, Skydiving Instructor and Network Security Consultant
https://paulalivingstone.com
http://rustyice.co.uk

User avatar
sozzled
Joomla! Exemplar
Joomla! Exemplar
Posts: 8035
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Redirects to installation directory without it being there

Post by sozzled » Wed Jul 17, 2019 9:09 am

paulala wrote:
Wed Jul 17, 2019 9:03 am
The forum rules should allow you to post the URL if it is a Joomla site.
Not entirely true.

I would prefer to see the Forum Post Assistant report rather than, in the first instance, knowing the URL.

The alarm bells that rang in my brain when I read this topic was "... it was an automated Plesk update". There is no automated (i.e. lights out) update built into J!. J! updates are triggered when a website owner say "I want to update" not when someone/something else decides it's time. These "automated" updates have caused more problems for this forum than I can remember.

So, no, I really don't want to see the URL at this time.

The file configuration.php should have the permission 444.
https://www.kuneze.com/blog
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37460
Joined: Sat Apr 05, 2008 9:58 pm

Re: Redirects to installation directory without it being there

Post by Webdongle » Wed Jul 17, 2019 9:15 am

It appears to be a problem with your update. Suggest that you take it up with Plesk.
Or install the Joomla full package and use an extension to transfer data/users etc.
Or you could install the Joomla full package and install your 3rd party extensions to it then use those files to replace those on your site.
Or ask your Host to roll back on the server.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

User avatar
paulala
Joomla! Explorer
Joomla! Explorer
Posts: 301
Joined: Sat Oct 30, 2010 12:32 pm
Location: Scotland
Contact:

Re: Redirects to installation directory without it being there

Post by paulala » Wed Jul 17, 2019 9:32 am

sozzled wrote:
Wed Jul 17, 2019 9:09 am
paulala wrote:
Wed Jul 17, 2019 9:03 am
The forum rules should allow you to post the URL if it is a Joomla site.
Not entirely true.
Got me curious now.... Am I wrong to say that? I had thought that it was considered acceptable to post URLs if they were Joomla sites but not if they were not however I checked the forum rules and I can't see any mention of that either.. Hmm.
Warm Regards,
Paula Livingstone, Skydiving Instructor and Network Security Consultant
https://paulalivingstone.com
http://rustyice.co.uk

User avatar
sozzled
Joomla! Exemplar
Joomla! Exemplar
Posts: 8035
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: "The forum rules should allow you to post the URL if it is a Joomla site"

Post by sozzled » Wed Jul 17, 2019 9:43 am

paulala wrote:
Wed Jul 17, 2019 9:32 am
I checked the forum rules and I can't see any mention of that ...
Let me explain.

It is against forum rules for me, for example, to post a URL to a website of mine (all my websites use J!) even if the URL contained important information about a problem or a solution to a problem. It is also against the forum rules for me to post references to articles I have written for the Joomla Community Magazine. It is also against the forum rules to post references to various organisations that I'm associated with. These forum rules are enforced by the forum moderators, irrespective of sincerity of motivation to help, and I have received warnings in the past to tread carefully.

The rules that apply are:
  • Do not link to any site that contains adult content, sexually oriented material or might otherwise be considered offensive. Any post containing an inappropriate link will be deleted and the poster will receive a warning.
  • When recommending an extension or other product to help a user solve their issue, you must disclose any affiliations you may have with the company or group that authors that particular product. This includes, but is not limited to: any paid or non-paid relationships past or present, receiving any promotional products or services, or any other similar information.
  • Any posts deemed to be self promotion, advertising, or spam can and will be removed. NO SPAM - NO ADVERTISING eg. Posting and making excessive, inappropriate and unnecessary references to your products and websites is self promotion.
Forum signatures contain some exemptions from these rules because they involve a "test of trust" (i.e. 25 meaningful posts on the forum).
https://www.kuneze.com/blog
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

bw_mj
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Jul 17, 2019 8:08 am

Re: Redirects to installation directory without it being there

Post by bw_mj » Wed Jul 17, 2019 10:41 am

First of all: Thanks the replies. Sorry, I will try to get back to the topic.
paulala wrote:
Wed Jul 17, 2019 9:03 am
The forum rules should allow you to post the URL if it is a Joomla site.

Do you see any errors in your PHP log?
Unfortunately not. This is the log of one of my calls:
2019-07-17 12:35:54 Access 200 GET / HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
2019-07-17 12:35:54 Error 404 GET /installation/index.php HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0 1.64 K

So it's being forwarded immediately.

I was hoping for knowing reasons for why this might be happening. I only found this in the code:

Code: Select all

// Installation check, and check on removal of the install directory.
//if (!file_exists(JPATH_CONFIGURATION . '/configuration.php')
//	|| (filesize(JPATH_CONFIGURATION . '/configuration.php') < 10)
//	|| (file_exists(JPATH_INSTALLATION . '/index.php') && (false === $version->isInDevelopmentState())))
//{
//	if (file_exists(JPATH_INSTALLATION . '/index.php'))
//	{
//		header('Location: ' . substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], 'index.php')) . 'installation/index.php');

//		exit;
//	}
//	else
//	{
//		echo 'No configuration file found and no installation code available. Exiting...';

//		exit;
//	}
//}

Which I already commented out (httpdocs / includes / framework.php). Still it's happening. So there must be other checks or reasons for why it should trigger the forward.
Of course I could delete the whole thing and reinstall it but it's quite some effort. Maybe it's just a small thing, like a simple chmod. So I would really like to understand why it is working for returning users but not for new users.

Any ideas which checks lead to a redirect to installation? Besides the ones mentioned in the code block above.

Thanks and best regards,
Boris

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37460
Joined: Sat Apr 05, 2008 9:58 pm

Re: Redirects to installation directory without it being there

Post by Webdongle » Wed Jul 17, 2019 10:43 am

Thin line. If it is necessary for volunteers to see the site then yes it is permissible. But some first time Posters use the post as en excuse to promote their sites. Ultimately it's the forum mods who decide if a url (posted without being requested) is a promotion attempt or not.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

bw_mj
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Jul 17, 2019 8:08 am

Re: Redirects to installation directory without it being there

Post by bw_mj » Wed Jul 17, 2019 10:44 am

Webdongle wrote:
Wed Jul 17, 2019 10:43 am
Thin line. If it is necessary for volunteers to see the site then yes it is permissible. But some first time Posters use the post as en excuse to promote their sites. Ultimately it's the forum mods who decide if a url (posted without being requested) is a promotion attempt or not.
This is why I left it out. Still, it wouldn't make a difference. You will just see the redirect to the 404 page. So it doesn't matter. Anyways, appart from the "legal" topic, I am unfortunately still seeing this redirect ;)
Well, let's see if anyone has an idea. Thanks in advance!

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37460
Joined: Sat Apr 05, 2008 9:58 pm

Re: Redirects to installation directory without it being there

Post by Webdongle » Wed Jul 17, 2019 10:52 am

bw_mj wrote:
Wed Jul 17, 2019 10:41 am
...
Of course I could delete the whole thing and reinstall it but it's quite some effort. Maybe it's just a small thing, like a simple chmod. ...
Installing a fresh Joomla and installing 3rd party extensions to it is not a lot of effort and will save you problems down the line. The problem is that you do not have a Joomla site ... you have a 3rd party version of a Joomla site. There is no fix for a 3rd party version of a Joomla site ... it will inevitably keep having problems!!!

Trying to fix a problem with a 3rd party version of a Joomla site is like
Throwing good money after bad
False economy.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein


Post Reply

Return to “Installation Joomla! 3.x”