When I develop PHP code I try to keep it perfect, so during development I also respond to 'deprecated', 'warnings' and 'notices' by setting error_reporting (E_ALL);
The following reporting from Sourcerer pollutes my error log, making it difficult for me to perfect my code. Can it be fixed?
It produces hundreds of instances of:
- Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in C:\wamp\www\ictmj4\plugins\system\sourcerer\src\Replace.php on line 555
- Warning: Undefined array key 1 in C:\wamp\www\ictmj4\plugins\system\sourcerer\src\Replace.php on line 555
From an article using Sourcerer, this is how I call my PHP file (busy replacing all obsolete JUMI calls):
{source}
<?php
require_once JPATH_BASE . "/components/my/path/to/code.php";
?>
{/source}
Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Confidential information' button in the forum editor to hide sensitive information.