Username: Visnet
TITLE
WordPress Toolkit - PHP warning - Deprecated: implode(): Passing glue string after array is deprecated.
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.31.1
CentOS 7.9.2009 x86_64
PROBLEM DESCRIPTION
Using PHP 7.4.12 as the primary PHP version for all websites, the Plesk WordPress Toolkit (5.1.1-4424) throws the following PHP warning:
	
	
	
		
in file 
Fragment:
	
	
	
		
The warning occurred almost 1000 times in less than 2 months now.
Please fix!
STEPS TO REPRODUCE
ACTUAL RESULT
The deprecated use of implode() is throwing a PHP warning:
	
	
	
		
in file 
EXPECTED RESULT
Prevent the PHP deprecated warning.
ANY ADDITIONAL INFORMATION
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm and fix bug
				
			TITLE
WordPress Toolkit - PHP warning - Deprecated: implode(): Passing glue string after array is deprecated.
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.31.1
CentOS 7.9.2009 x86_64
PROBLEM DESCRIPTION
Using PHP 7.4.12 as the primary PHP version for all websites, the Plesk WordPress Toolkit (5.1.1-4424) throws the following PHP warning:
		Code:
	
	Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters
	/usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/php/WP_CLI/DocParser.php in WP_CLI\DocParser::get_longdesc (line 75)Fragment:
		Code:
	
	                    break;
                }
                $lines[] = $line;
            }
            $longdesc = trim( implode( $lines, "\n" ) );
            return $longdesc;
        }
        /**
	The warning occurred almost 1000 times in less than 2 months now.
Please fix!
STEPS TO REPRODUCE
- Install Plesk Obsidian 18.0.x
 - Install the WordPress Toolkit extension
 - I guess the error occurs when the WordPress toolkit is checking the WordPress installations in the background
 
ACTUAL RESULT
The deprecated use of implode() is throwing a PHP warning:
		Code:
	
	Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters
	/usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/php/WP_CLI/DocParser.php in WP_CLI\DocParser::get_longdesc (line 75)EXPECTED RESULT
Prevent the PHP deprecated warning.
ANY ADDITIONAL INFORMATION
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm and fix bug
			
				Last edited: