Valc / jmlocalise

GNU General Public License v2.0
3 stars 2 forks source link

Deprecated: base64_decode(): Passing null to parameter #1 ($string) of type string is deprecated #6

Open uzielweb opened 9 months ago

uzielweb commented 9 months ago

Error when access administrator/index.php?option=com_localise&view=package&layout=edit&id=1 in administrator\components\com_localise\View\Package\HtmlView.php on line 55 change $this->fileName = base64_decode($this->file); to this if ($this->file !== null) { $this->fileName = base64_decode($this->file); if ($this->fileName === false) { // Handle the case where decoding fails. echo "Error decoding the base64 string."; } else { // Decoding was successful, continue with the code here. } } else { // Handle the case where $this->file is null. echo "The variable $this->file is null."; }