User tests: Successful: Unsuccessful:
Sometimes, when a page does not exist, we can see an error Call to a member function getType() on null
. The PR is a fix.
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | Plugins Front End |
@andrepereiradasilva,
I tested some extensions for custom error pages, such as sh404SEF
and got such an error. After I applied the patch, it works without any issue. I know, I should have written to the developer, but I think, it is a bug in the core. Basically, the document should be gotten with a method JFactory::getDocument()
instead of a method JApplicationWeb->getDocument()
.
Seems like something is breaking the application then because at least with JApplicationSite::dispatch()
it is loading the JDocument
object into the application's variable THEN assigning it to JFactory::$document
. These events are dispatched well after that assignment happens. I personally do not consider this a valid fix; it's working around something else breaking things.
thanks for explaining michael
Closed as not a core issue
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-10-09 11:24:15 |
Closed_By | ⇒ | brianteeman |
can you make clear instructions on how to reproduce the issue
And also add the test instructions.