WSL2 - Magento 2.4-Nginx - Css and Js Issue - nginx

I need suggestion with my magento setup.
I have windows 10 in my system. I am using wsl2 with nginx web server. I am trying to install magento2.4 but facing issue for loading css and js.
When hit js in new tab getting below error:
Requested path frontend/Magento/luma/en_TT/requirejs/require.js is wrong.
#1 Magento\Framework\App\Bootstrap->run() called at [pub/static.php:13]
I have tried every solution from google but none help.
Plz help me here :(

You need to run below command,
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy en_TT

Related

Symfony deployment problem on hostinger, impossible to download dependencies

I have been trying for several days to deploy a Symfony site. All the files are well in the public folder with the .htaccess, I only need the dependencies for the site to be functional. The problem is that when I run the command
php composer.phar update
I get several error messages concerning my version of PHP.
The host is hostinger. I know the problem comes from the composer.json file and the version of the bundles but I don't know how to solve the problem.
Thanks
you need php version 8.1 as the message says. Normally, for a deployment you should not launch a composer update. It would rather be a composer install.
I contacted hostinger, and the problem is that the server was in PHP7 after changing to PHP8 it worked. Thank you all for your responses

Wordpres: Installation failed: Download failed. No working transports found

I'm using windows 7, Wamp, PHP version 7.4.16, MySQL Version 4.9.7, and Apache 2.4.23.
I'm unable to download theme and plugins on WordPress. I have searched a lot on this issue and tried the Following solutions but all in vain.
Uncommented the php_curl and php-openssl.
Copied the two/ three files from PHP to apache bin
Last but not least I'm using the latest version of WordPress. Any quick help will be highly appreciated.
Thanks in advance
I had the same error trying to download a theme and found a solution here:
https://wordpress.stackexchange.com/questions/292175/installation-failed-download-failed-no-working-transports-found?newreg=571f25138e3a44d5abfc6fae52765759
Basically, you have to edit your php.ini to enable the php-openssl.dll extension and that's all!

installation of wordpress with xampp

I want to install Wordpress on my pc so first, I need to install xampp.
After installation when I'm trying to start apache it is automatically shutting down. So I changed the localhost port number to 8080 then it started.
But now the problem is when I'm trying to run Wordpress it is not opening correctly.
Here is a screenshot of my error. Please help with installation of Wordpress with the xampp
I think you have to check first if any other html file is working fine or not on the root directory inside (www) folder. If its working fine then try with http://localhost/wpfive
see my example screenshot for this.
Best of luck

Wamp 3.0.6 server can not run Composer and Symfony

Please I need help on this project, I have wamp server to run the project on symphony.Look at the error display on my web browser ,when load the project from wamp server
If I run this code from my command prompt see the results php app/check.php
If I run this code from my command prompt see the results php app/check.php
php app/console server:run
It looks like you also have XAMPP installed on your system, or did at one time.
See the line that says
Configuration file used in PHP : C:\xampp\php\php.ini
^^^^^
I would suggest that you check your Windows PATH. I guess XAMPP might have added it's own PHP version into the PATH.
Alternatively you could uninstall XAMPP, but make sure you back everything up, code/databases etc before you uninstall it.
WAMPServer does not need anything placed on the Windows PATH, and if you do it makes switching versions of PHP far more complicated and prone to mistakes.
Have a look at this answer for how to make the PHP CLI as flexible as WAMPServer when it comes to running PHP code on different versions of PHP from the command line.
It also looks like you have not istalled composer. Follow the instructions on how to instal composed from the error messages. Or have a look at the composer site for help

Access Denied on Install Symfony on Xamp?

I am new in Symfony and dont know how to install Symfony on my Xamp server. In symfony webm, when i want to download it, Through this command c:> php -r "readfile('http://symfony.com/installer');" > symfony`
then Access denied is occur on my cmd.
I am also beginner to symfony and had a same problem.
I think you also need to install composer first to make it working. I download the composer from https://getcomposer.org/download/ and then installed it. After that the symfony installer command worked for me. Try it and Good luck.
I just had a similar problem, it was not allowing me to download the symfony file (and displaying "Access denied") because I had a folder named Symfony. Renaming the folder solved the project problem.
Probably you do not have write access to your c:\ directory - it is default settings on Windows 7, 8, ....
Create some folder (for ex. c:\symfony_project) and try readfile('http://symfony.com/installer');" > symfony in that folder
For those who are still facing the problem, here how I solved mine. First you have to open XAMPP as administrator by clicking right click on XAMPP make sure its closed first after opening it as admin enable Apache and mysql then open shell, then head to htdocs and make sure there is composure installed and then paste the installing of symfony there. I hope it works after that.

Resources