I updated concreteCMS 9.3.1. and now I canβt download new add-ons and themes in the Add Functionality page. When I click the download button in the waiting list, the error below occurs.
Whoops \ Exception \ ErrorException (E_WARNING)
rename(): The first argument to copy() function cannot be a directory
concrete-cms-9.3.1/concrete/src/Marketplace/PackageRepository.php
$archive->open($output);
$archive->extractTo($unzipPath);
$archive->close();
// Delete the temp file
unlink($output);
if (!file_exists($unzipPath . '/' . $package->handle . '/controller.php')) {
throw new InvalidPackageException();
}
// Move the files into place
$packageDir = DIR_PACKAGES . '/' . $package->handle;
if ($overwrite && file_exists($packageDir)) {
if (!rename($packageDir, $packageDir . '.old')) {
throw new UnableToPlacePackageException();
}
}
if (!rename($unzipPath . '/' . $package->handle, $packageDir)) {
if ($overwrite) {
rename($packageDir . '.old', $packageDir);
}
throw new UnableToPlacePackageException();
}
$this->rimraf($package->handle . '.old');
rmdir($unzipPath);
}
protected function rimraf(string $handle)
{
// Make sure we're working with a valid dir
if (!DIR_PACKAGES || !$handle || substr($handle, -4) !== '.old') {
trigger_error('Invalid handle provided to delete.');
}
$path = DIR_PACKAGES . '/' . $handle;
if (is_file($path)) {
Arguments
- βrename(): The first argument to copy() function cannot be a directoryβ
Environment & details:
Concrete CMS
Version | β9.3.1β |
---|---|
Installed Version | β9.3.1β |
Database Version | β20240515173142β |
PHP
Version | β8.2.19β |
---|---|
Extensions | array:56 [] |
Concrete Configuration
concrete | array:56 [] |
---|---|
app | array:20 [] |
GET Data empty
POST Data empty
Files empty
Cookies
dashboardPanelStatus | β****β |
---|---|
CONCRETE | β**************************β |
CONCRETE_LOGIN | β*β |
Session
_sf2_attributes | array:14 [] |
---|---|
_symfony_flashes | |
_sf2_meta | array:3 [] |
Server/Request Data
PATH | β****************************β |
---|---|
HTTP_ACCEPT | β***************************************************************************************************************************************β |
HTTP_ACCEPT_ENCODING | β***********************β |
HTTP_ACCEPT_LANGUAGE | β***********************β |
HTTP_COOKIE | β********************************************************************************β |
HTTP_HOST | β**********β |
HTTP_USER_AGENT | β*********************************************************************************************************************β |
HTTP_CACHE_CONTROL | β*********β |
HTTP_X_FORWARDED_FOR | β**************β |
HTTP_REMOTE_ADDR | β**************β |
HTTP_X_FORWARDED_HOST | β**********β |
HTTP_X_FORWARDED_PROTO | β*****β |
HTTP_X_BACKEND | β**********************β |
HTTP_SEC_CH_UA | β*****************************************************************β |
HTTP_SEC_CH_UA_MOBILE | β**β |
HTTP_SEC_CH_UA_PLATFORM | β*******β |
HTTP_UPGRADE_INSECURE_REQUESTS | β*β |
HTTP_SEC_FETCH_SITE | β****β |
HTTP_SEC_FETCH_MODE | β********β |
HTTP_SEC_FETCH_USER | β**β |
HTTP_SEC_FETCH_DEST | β********β |
HTTP_DNT | β*β |
HTTP_PRIORITY | β******β |
DOCUMENT_ROOT | β***********************************************************β |
REMOTE_ADDR | β**************β |
REMOTE_PORT | β*****β |
SERVER_ADDR | β************β |
SERVER_NAME | β**********β |
SERVER_ADMIN | ββ |
SERVER_PORT | β***β |
REQUEST_SCHEME | β*****β |
REQUEST_URI | β*********************************************************************************β |
PATH_INFO | β***********************************************************************β |
PATH_TRANSLATED | β**********************************************************************************************************************************β |
PROXY_REMOTE_ADDR | β************β |
HTTPS | β**β |
SSL_PROTOCOL | β*******β |
SSL_CIPHER | β***************************β |
SSL_CIPHER_USEKEYSIZE | β***β |
SSL_CIPHER_ALGKEYSIZE | β***β |
SCRIPT_FILENAME | β*********************************************************************β |
QUERY_STRING | ββ |
SCRIPT_URI | β***************************************************************************************************β |
SCRIPT_URL | β*********************************************************************************β |
SCRIPT_NAME | β**********β |
SERVER_PROTOCOL | β********β |
SERVER_SOFTWARE | β*********β |
REQUEST_METHOD | β***β |
X-LSCACHE | β**********************β |
PHP_SELF | β*********************************************************************************β |
REQUEST_TIME_FLOAT | β***β |
REQUEST_TIME | β***β |
Environment Variables empty
Registered Handlers
-
Concrete\Core\Error\Handler\ErrorHandler
-
Concrete\Core\Error\Handler\JsonErrorHandler
Anyone can solve it?