-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.4] Fix Sample data installation, fix finder helper addContentType null value #43052
Conversation
I have tested this item 🔴 unsuccessfully on 1738f32 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43052. |
I have updated test instruction, |
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 tested this item ✅ successfully on 1738f32 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43052. |
I have tested this item ✅ successfully on 1738f32 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43052. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43052. |
Thanks! |
Pull Request for Issue # .
Summary of Changes
Helper::addContentType() allows null for mime, however $db->quote() does not.
Same as #43051 but for 4.4
Testing Instructions
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):
Actual result BEFORE applying this Pull Request
PHP warning
Deprecated: PDO::quote(): Passing null to parameter 1 ($string) of type string is deprecated
Expected result AFTER applying this Pull Request
No warning
Link to documentations
Please select: