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

mime.php: Deprecated type string under PHP 8.1.24 #9198

Closed
ozgurkazancci opened this issue Oct 31, 2023 · 3 comments
Closed

mime.php: Deprecated type string under PHP 8.1.24 #9198

ozgurkazancci opened this issue Oct 31, 2023 · 3 comments

Comments

@ozgurkazancci
Copy link

ozgurkazancci commented Oct 31, 2023

Hi,

I got the following logs in Roundcube's own error log file;

[31-Oct-2023 20:57:51 Europe/Helsinki] PHP Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in /var/www/rcube/vendor/pear/mail_mime/Mail/mime.php on line 486

Wanted to write about it here.

Roundcube version: 1.6.4
PHP version: 8.1.24

Regards.

@alecpl
Copy link
Member

alecpl commented Nov 4, 2023

I will fix this in Mail_Mime code, but this warning tells me there might be some other error leading to this one. Are you able to reproduce?

@ozgurkazancci
Copy link
Author

ozgurkazancci commented Nov 5, 2023

Reproduced it again, got one more line, before the one above appears;

<2t0fu6cp> PHP Error: info@mywebsite.com can't read /tmp/RCMTEMPattmnt65414c97cb8a2367966745 (not in temp_dir) in /var/www/rcube/plugins/filesystem_attachments/filesystem_attachments.php on line 245 (POST /webmail/?_task=mail&_unlock=loading1698778266108&_framed=1&_action=send)

The PHP error above occurs due to misconfiguration of "$config['temp_dir']", still wanted to report it here, thinking it would help perhaps for a better error-handling in such cases?

Regards.

@alecpl
Copy link
Member

alecpl commented Dec 10, 2023

Warning fixed in pear/Mail_Mime@5ace0d7d2405e.

@alecpl alecpl closed this as completed Dec 10, 2023
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

2 participants