Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] proper html fallback everywhere #18777

Merged
merged 1 commit into from
Nov 22, 2017
Merged

[4.0] proper html fallback everywhere #18777

merged 1 commit into from
Nov 22, 2017

Conversation

dgrammatiko
Copy link
Contributor

@dgrammatiko dgrammatiko commented Nov 21, 2017

Pull Request for Issue #18764 .

Summary of Changes

All index.php fallback to the same error page in case of unsupported PHP version. This should cover the cases @brianteeman mentioned in the issue:

  • downgrade php (perhaps by moving host)
  • use a hosting panel install script on an incompatible server (yes hosts are that stupid)

Testing Instructions

You need to edit each of the index.php files (root, installation, administrator) and change the line

if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))

to

if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '>'))

and then navigate to
/
/installation/
/administrator/

or any other URI pointing in your server. All cases should respond with the nice html page.

Expected result

Actual result

Documentation Changes Required

Same as before, the js file for the translation is created through the gruntfile and the installation folder, so maintainers need to run the grunt installation to refresh that file if there are some changes in the languages files.

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-4.0-dev labels Nov 21, 2017
@dgrammatiko dgrammatiko changed the title [4.0] dev proper html fallback everywhere [4.0] proper html fallback everywhere Nov 21, 2017
@wilsonge wilsonge merged commit 67fde2d into joomla:4.0-dev Nov 22, 2017
@wilsonge wilsonge added this to the Joomla 4.0 milestone Nov 22, 2017
@dgrammatiko dgrammatiko deleted the §4.0-dev-proper-html-fallback-everywhere branch November 22, 2017 13:13
@@ -0,0 +1,269 @@
<html>
<base>
Copy link
Member

@richard67 richard67 Nov 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be <head> and not <base>?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created PR #18796 to correct this.

richard67 added a commit to richard67/joomla-cms that referenced this pull request Nov 22, 2017
mbabker pushed a commit that referenced this pull request Nov 22, 2017
laoneo pushed a commit to Digital-Peak/joomla-cms that referenced this pull request Dec 18, 2017
laoneo pushed a commit to Digital-Peak/joomla-cms that referenced this pull request Dec 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants