? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
28 Nov 2017

Ongoing effort to phase out getInstance code. This pr deprecates Document::getInstance.

I'm splitting #16918 into different pr's to be easier to review.

avatar laoneo laoneo - open - 28 Nov 2017
avatar laoneo laoneo - change - 28 Nov 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Nov 2017
Category Administration com_finder Installation Libraries
avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Dec 2017
Status Pending Information Required
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Dec 2017

how can this be tested? By "browse around in the Front- and Backend"?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18901.
avatar laoneo
laoneo - comment - 9 Dec 2017

Browsing around should be fine. It is more, merge by review.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 11 Dec 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 11 Dec 2017

I have tested this item successfully on fe74e58

Browsed around in Front- and Backend, can't find Error-Message or similar.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18901.

avatar franz-wohlkoenig franz-wohlkoenig - change - 24 Dec 2017
Status Information Required Pending
avatar Anu1601CS
Anu1601CS - comment - 30 Jan 2018

I have tested this item successfully on fe74e58

Review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18901.

avatar Anu1601CS Anu1601CS - test_item - 30 Jan 2018 - Tested successfully
avatar Quy Quy - change - 30 Jan 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 30 Jan 2018

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18901.

avatar Anu1601CS
Anu1601CS - comment - 30 Jan 2018

Oops, @Quy please remove RTC
And test this by installing a fresh patch. Not by patchtester.
@franz-wohlkoenig

Error 0 Call to a member function get() on null

avatar Quy Quy - change - 30 Jan 2018
Status Ready to Commit Pending
avatar Anu1601CS
Anu1601CS - comment - 30 Jan 2018

screenshot from 2018-01-30 21-04-14

avatar Anu1601CS
Anu1601CS - comment - 30 Jan 2018

I have tested this item ? unsuccessfully on fe74e58


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18901.

avatar Anu1601CS Anu1601CS - test_item - 30 Jan 2018 - Tested unsuccessfully
avatar laoneo
laoneo - comment - 31 Jan 2018

Where do you get that error? Does it not happen without the patch?

avatar Anu1601CS
Anu1601CS - comment - 31 Jan 2018

@laoneo I have downloaded this patch and install manually.
At the time of installation setup does not executed this error occurred on first page.

avatar Anu1601CS
Anu1601CS - comment - 31 Jan 2018

System information
Linux

avatar laoneo
laoneo - comment - 31 Jan 2018

I'v just opened the page and it worked. Try to download it from here https://github.com/Digital-Peak/joomla-cms/archive/j4/deprecate/document/instance.zip. Not sure why it fails on your server. Enable debug in your configuration.php file, what is the stack trace?

avatar Anu1601CS
Anu1601CS - comment - 31 Jan 2018

Did you check on Linux? I am not sure but i thing its Linux problem
Here is a stack trace. By enabling Jdebug in installation/includes/framwork.php

screenshot from 2018-01-31 11-12-31

avatar laoneo laoneo - change - 31 Jan 2018
Labels Added: ?
avatar laoneo
laoneo - comment - 31 Jan 2018

Good catch, forgot to add () on the installer application. Try again please, should be fixed now.

avatar Anu1601CS
Anu1601CS - comment - 31 Jan 2018

Thanks

I have tested this item successfully on 73885b4


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18901.

avatar Anu1601CS Anu1601CS - test_item - 31 Jan 2018 - Tested successfully
avatar wilsonge
wilsonge - comment - 2 Feb 2018

OK so by implication of what this PR does there's no longer the ability to create more than one Document instance of a given type. Currently any different config signature would form a new document instance because we serialise the attributes https://github.com/Digital-Peak/joomla-cms/blob/73885b4b51a6705719909e4621431c7a97b8cdd9/libraries/src/Document/Document.php#L327

this is probably fine - but can anyone think of any use cases in the system where we exploit this?

avatar wilsonge
wilsonge - comment - 2 Feb 2018

Also has anyone tested the non-html views for this - the contact ecard, the xml and feed views etc?

avatar laoneo
laoneo - comment - 5 Feb 2018

VCard worked

avatar wilsonge wilsonge - change - 16 Feb 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-02-16 23:02:55
Closed_By wilsonge
avatar wilsonge wilsonge - close - 16 Feb 2018
avatar wilsonge wilsonge - merge - 16 Feb 2018

Add a Comment

Login with GitHub to post a comment