bug
avatar softforge
softforge
4 Apr 2020

Steps to reproduce the issue

Went to apply patch (27601) to do the second test as Nicola had just successfully applied patch and tested successfully.
But for me the patch failed to apply with the message
Error
The patch could not be applied because it would break the site. Check the pull request to see if it is up to date

I had just fetched all as had Nicola so for him the patch applied (I was watching his screen in the PBF without P)
I went to do second test when this happened

Expected result

Patch installs

Actual result

Patch failed with
Error
The patch could not be applied because it would break the site. Check the pull request to see if it is up to datescreen shot 2020-04-04 at 10 27 52

System information (as much as possible)

Install the latest nightly
Joomla_4.0.0-beta1-dev-Development-Full_Package.zip
Add the J4 patch tester
Patch Tester 4.0.0 Release Candidate
GitHub Repo set to Joomla!CMS
Github Auth Method Token
PHP Version 7.3.16
Web Server Apache
WebServer to PHP Interface fpm-fcgi
10.1.44-MariaDB

Additional comments

Annotation 2020-04-04 111731

avatar softforge softforge - open - 4 Apr 2020
avatar richard67
richard67 - comment - 4 Apr 2020

Webserver OS is Windows? Or Linux?

avatar alikon
alikon - comment - 4 Apr 2020

it is windows 10

avatar richard67
richard67 - comment - 4 Apr 2020

Seems to be a Windows path separator thing, that's why I've asked. I think we are close to a fix.

avatar richard67
richard67 - comment - 4 Apr 2020

Unfortunately I have Linux only here for testing.

avatar roland-d roland-d - assigned - 4 Apr 20
avatar roland-d roland-d - change - 4 Apr 2020
Labels Added: bug
avatar roland-d roland-d - labeled - 4 Apr 2020
avatar roland-d
roland-d - comment - 4 Apr 2020

I am working on a fix

avatar roland-d roland-d - reference | 5c6b278 - 4 Apr 20
avatar roland-d
roland-d - comment - 4 Apr 2020

Please test the Patch Tester 4.0.0 RC2:
https://github.com/joomla-extensions/patchtester/releases/tag/4.0.0-rc2

You will need to do the following:

  1. Install the package
  2. Go to the Patch Tester
  3. Click on the Options tab
  4. Click on the tab CI Server Settings
  5. Set Switch CI Integration to No
  6. Save & Close

Alternative solution is to uninstall the Patch Tester and then install the Release Candidate 2 version. Now you will have to enter your credentials again.

The reason we cannot use the CI server at this point is because the patches contains references to files that do not exist. As such it would break your installation. So if you see the message that the patch could not be applied because it may break your system. Please turn off the CI Integration.

avatar roland-d
roland-d - comment - 4 Apr 2020

@alikon See up here ^^

avatar roland-d
roland-d - comment - 4 Apr 2020

@alikon I am going to continue the discussion in the issue rather than the commit because the discussion it not related to the commit.

this error is not clear

You are welcome to propose a PR with better wording.

what I should do when it happens ?

What you should do is to check the PR, if it has any problems. There are no fixed steps for this.

simply turn off CI server ?

You can do that but testing a patch from Github you cannot test CSS/JS changes. So you can still not test the patch if it contains CSS/JS changes. The error is stating exactly what would happen. If the patch would have been applied, your site will have been broken.

again not too much clear in humbly opinion

Let's clarify it then.

avatar alikon
alikon - comment - 4 Apr 2020

What you should do is to check the PR, if it has any problems. There are no fixed steps for this.

a normal jhon@doe user simply cannot do this nor is expected to do it nor to understand it deeply
cause it is a normal end-user not a developer

that's what i'm trying to say

avatar roland-d
roland-d - comment - 4 Apr 2020

What is your suggestion for a John Doe user to do in this case?

avatar alikon
alikon - comment - 4 Apr 2020

1 million dollar question
i don't have a perfect answer/solution to this
maybe a fully explanation on docs,jooma,org / FAQ pages

avatar softforge softforge - change - 4 Apr 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-04-04 17:16:26
Closed_By softforge
avatar softforge softforge - close - 4 Apr 2020
avatar softforge
softforge - comment - 4 Apr 2020

Thank you for working on this so quickly Roland-d

Add a Comment

Login with GitHub to post a comment