Skip to content
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

Deprecated: PDO::quote(): Passing null in MysqlDriver.php line 736 #44013

Closed
frgiraud opened this issue Sep 3, 2024 · 1 comment
Closed

Deprecated: PDO::quote(): Passing null in MysqlDriver.php line 736 #44013

frgiraud opened this issue Sep 3, 2024 · 1 comment

Comments

@frgiraud
Copy link

frgiraud commented Sep 3, 2024

Issue description

When I display a specific page (extension acymailing - e-mails archive using menu entry), I have this message.
https://ctd.ufolep91-volley.org/index.php/ctd/archives-lettres-de-2024-2025/archive/listing

  • Deprecated: PDO::quote(): Passing null to parameter Test #1 ($string) of type string
    is deprecated in /.../libraries/vendor/joomla/database/src/Mysql/MysqlDriver.php on line 736

But I also have had the same message at end of the "acymailing 9.8.1" installation :

  • pack : installation effectuée.
  • AcyMailing package containing the component and its core plugins and modules
  • Deprecated: PDO::quote(): Passing null to parameter Test #1 ($string) of type string is deprecated in /.../libraries/vendor/joomla/database/src/Mysql/MysqlDriver.php on line 736
  • Deprecated: PDO::quote(): Passing null to parameter Test #1 ($string) of type string is deprecated in /.../libraries/vendor/joomla/database/src/Mysql/MysqlDriver.php on line 736

It's probably warnings, because the page is displayed and the installation was done.

System information

Joomla!: 4.4.8
PHP 8.1.29
MySQL (PDO) 5.7.42-log

php: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
dbserver: mysql
dbversion: 5.7.42-log
dbcollation: utf8_general_ci
dbconnectioncollation: utf8mb4_general_ci
dbconnectionencryption:
dbconnencryptsupported: true
phpversion: 8.1.29
server: Apache
sapi_name: cgi-fcgi
version: Joomla! 4.4.8 Stable [ Pamoja ] 27-August-2024 16:00 GMT
useragent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0

MysqlDriver.php on line 736

Is part of: public function escape($text, $extra = false)
Line is: $result = substr($this->connection->quote($text), 1, -1);

@Hackwar
Copy link
Member

Hackwar commented Sep 3, 2024

This is a bug in Acymailing and not in Joomla. They are handing in a NULL value instead of a string at the right place. Please report that to them directly.

@Hackwar Hackwar closed this as completed Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants