Infinite Loop on Installation if $tmp_base is not writeable
-
Hi,
WP 5.5.3, plugin version 2.7.1, Nginx server.
Line 501 of includes/class-wcpdf-main.php in init_tmp() checks if $tmp_base is a directory and if it isn’t, logs an error, but carries on processing.
This means that copy_fonts() is called on line 508, which calls get_tmp_path(), which checks for $tmp_base and if it’s not a directory, calls init_tmp(), which logs an error and calls copy_fonts(), which calls get_tmp_path() which calls init_tmp(), etc…
It would be useful if the installer could exit gracefully after the initial $tmp_base check on line 501 and let the user know that there’s a problem with their directory permissions, rather than locking the server in an infinite loop.
Thanks,
The topic ‘Infinite Loop on Installation if $tmp_base is not writeable’ is closed to new replies.