User tests: Successful: Unsuccessful:
Pull Request for #31836 (comment) .
Fix PHP notice caused by an undefined variable $article
being used as function parameter where it should be null, see other places in that file using ActionlogsHelper::getContentTypeLink
without a media object.
The notice is caused by PR #31836 which has impelemnted that code. It looks like a remainder from copy and paste.
Set error reporting to maximum and log PHP errors into a file.
Upload an item into the media manager.
Check in the action log for the action from step 2 that the link on the uploaded file name is correct and leads to the folder of the uploaded item.
Change the options of an extension and check that the action is logged correctly.
Install or uninstall an extension and check that the action is logged correctly.
Check your PHP log if there are logged any PHP notices.
Result. The PHP error log shows PHP notice(s) "Undefined variable: article".
Apply the patch of this PR.
Repeat steps 2 to 6.
Result. No PHP notice(s) "Undefined variable: article".
Action log works, but you get a PHP notice "Undefined variable: article"
Action log still works as before, but there is no PHP notice "Undefined variable: article".
None.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-05-18 13:48:51 |
Closed_By | ⇒ | HLeithner | |
Labels |
Added:
?
?
|
thanks
I have tested this item✅ successfully on 03684cc
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33941.