User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Helper::addContentType() allows null for mime, however $db->quote() does not.
Same as #43051 but for 4.4
Use PHP 8+, set error reaporting to Maximum.
Set DB driver to use MySQL PDO
On clean installation, try install "Blog Sample Data"
Run following code (example in index.php of the template):
$name = uniqid(); // Imitating a new content type name, can be any string
var_dump(Joomla\Component\Finder\Administrator\Indexer\Helper::addContentType($name));
PHP warning Deprecated: PDO::quote(): Passing null to parameter 1 ($string) of type string is deprecated
No warning
Please select:
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_finder |
I have updated test instruction,
old one was more for 5.x.
Title |
|
Error reaporting should be set to Maximum. To be able to see messages about deprections.
Error reporting was set to Maximum.
Something is hidding the PHP message then. Can also try like:
error_reporting(E_ALL);
ini_set('display_errors', 'On');
$name = uniqid(); // Imitating a new content type name, can be any string
var_dump(Joomla\Component\Finder\Administrator\Indexer\Helper::addContentType($name));
I have no idea then. I can clearly see it on my PHP 8.1
Ah, wait. I found, please use MySQL PDO, not MySQLi.
I have update the issue description.
I have tested this item ✅ successfully on 1738f32
Tested successfully on J4.4.7
I have tested this item ✅ successfully on 1738f32
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
bug
PHP 8.x
PR-4.4-dev
|
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-08-30 05:36:15 |
Closed_By | ⇒ | laoneo | |
Labels |
Added:
RTC
|
Thanks!
I have tested this item ? unsuccessfully on 1738f32
Unable to reproduce the error in out-of-the-box Joomla 4.4.4-dev, run in Wampserver 3.3.3 usin PHP 8.2.13 on Windows 11.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43052.