Closed FilipeBicho closed 2 days ago
Hi @FilipeBicho. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hi @FilipeBicho ,
Thanks for reporting and collaboration.
Verified the issue in magento 2.4-develop and 2.4.7 instance and the issue is not reproducible.
Steps to reproduce:-
1.Go to app-> etc->env.php 2.Set the port information to the host in the db connection. e.g. db['connection']['default']['host'] = 'localhost:3306' 3.Execute php bin/magento setup:static-content:deploy
Please refer the attached screenshots and let us know if we missed anything.
No error
I reproduced this error on a Magento Project that we recently updated to 2.4.7-p1. The steps to reproduce the error are:
bin/magento setup:static-content:deploy --force --strategy standard --jobs 4
While this bug is not fixed there is a workaround to compile statics properly without using --jobs param
Hi @FilipeBicho ,
Verified the issue on 2.4.7 and it is reproducible.
Hence, Confirming the issue.
Steps to reproduce:-
1.Flush the Magento cache, e.g. bin/magento c:f 2.Go to app-> etc->env.php 3.Set the port information to the host in the db connection. e.g. db['connection']['default']['host'] = 'localhost:3306' 4.bin/magento setup:static-content:deploy --force --strategy standard --jobs 4
Flush the Magento cache
Set the port information to the host in the db connection. e.g. db['connection']['default']['host'] = 'localhost:3306'
Run bin/magento setup:static-content:deploy --force --strategy standard --jobs 4
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-12176 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Delta. Thank you for verifying the issue.
Issue Available: @engcom-Delta, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
I opened a PR to fix this issue -> https://github.com/magento/magento2/pull/38842
Encountered the same problem. PR works for me.
Preconditions and environment
Steps to reproduce
env.php
db<'connection']['default']['host'] = 'localhost:3306'
./magento.sh setup:static-content:deploy
Expected result
The theme is deployed
Actual result
Exception:
Port must be configured within host parameter (like localhost:3306 in /var/www/lehner_dev/src/www/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:464
Additional information
Possible solution: ``{{ diff --git a/DB/Adapter/Pdo/Mysql.php b/DB/Adapter/Pdo/Mysql.php --- a/DB/Adapter/Pdo/Mysql.php (revision 2dc0b58888392ed5304ac6ad02e36a70e6e490a2) b/DB/Adapter/Pdo/Mysql.php (date 1717577596939) @@ -432,6 432,11 @@ $this->parentConnections[] = $this->_connection; $this->_connection = null; $this->pid = getmypid(); if (isset($this->config['port']) && !str_contains($this->config['host'], '/')) { if (!strcontains($this->config['host'], ':')) $this->config['host'] .= ':' . $this->config['port']; unset($this->_config['port']);
Release note
No response
Triage and priority