I have successfully installed Magento 2 on the xampp server but I'm having an issue of loading the admin page as it is giving me a 404. Also, when loading its homepage the default theme,it doesn't apply and instead gives me the following errors:
Failed to load resource: the server responded with a status of 404 (Not Found)
:7777/Magento/pub/static/version1491913172/adminhtml/Magento/backend/en_US/extjs/resources/css/ext-all.css Failed to load resource: the server responded with a status of 404 (Not Found)
:7777/Magento/pub/static/version1491913172/adminhtml/Magento/backend/en_US/jquery/jstree/themes/default/style.css Failed to load resource: the server responded with a status of 404 (Not Found)
mixins.js Failed to load resource: the server responded with a status of 404 (Not Found)
require.js Failed to load resource: the server responded with a status of 404 (Not Found)
magento-icon.svg Failed to load resource: net::ERR_CONNECTION_RESET
mixins.js Failed to load resource: net::ERR_CONNECTION_RESET
requirejs-config.js:66 Uncaught TypeError: require is not a function
at requirejs-config.js:66
at requirejs-config.js:71
at requirejs-config.js:423
127.0.0.1/:39 Uncaught TypeError: require.config is not a function
at 127.0.0.1/:39
127.0.0.1/:87 Uncaught TypeError: require is not a function
at 127.0.0.1/:87
127.0.0.1/:298 Uncaught TypeError: require is not a function
at 127.0.0.1/:298
127.0.0.1/:430 Uncaught TypeError: require is not a function
at 127.0.0.1/:430
127.0.0.1/:475 Uncaught TypeError: require is not a function
at 127.0.0.1/:475
127.0.0.1/:533 Uncaught TypeError: require is not a function
at 127.0.0.1/:533
127.0.0.1/:556 Uncaught TypeError: require is not a function
at 127.0.0.1/:556
127.0.0.1/:579 Uncaught TypeError: require is not a function
at 127.0.0.1/:579
opensans-400.woff2 Failed to load resource: net::ERR_CONNECTION_RESET
admin-icons.woff2 Failed to load resource: net::ERR_CONNECTION_RESET
opensans-600.woff2 Failed to load resource: net::ERR_CONNECTION_RESET
opensans-700.woff2 Failed to load resource: net::ERR_CONNECTION_RESET
opensans-400.woff Failed to load resource: net::ERR_CONNECTION_RESET
admin-icons.woff Failed to load resource: net::ERR_CONNECTION_RESET
opensans-600.woff Failed to load resource: net::ERR_CONNECTION_RESET
opensans-700.woff Failed to load resource: net::ERR_CONNECTION_RESET
opensans-400.ttf Failed to load resource: net::ERR_CONNECTION_RESET
admin-icons.ttf Failed to load resource: net::ERR_CONNECTION_RESET
opensans-600.ttf Failed to load resource: net::ERR_CONNECTION_RESET
opensans-700.ttf Failed to load resource: net::ERR_CONNECTION_RESET
It seems permission issue. it's common in magento2.
Please try this solution.
https://magento.stackexchange.com/a/93892
after making above changes please execute below command.
php bin/magento setup:static-content:deploy
Please try this and let me know if you need any other help. or you can contact me on my skype : mayur.jadeja8
Thanks
Related
I saw that MySqlConnection.php is missing from the folder shown in the error. Inspect console shows this - Failed to load resource: the server responded with a status of 500 (Internal Server Error). I am running this locally on Ubuntu 20
Do I have to create a MySqlconnection.php file ?
PLease help...thank you...
When i try to open my PHP website, it's giving the 500 error in the console. The error log shows this error:
PHP Fatal error: require_once(): Failed opening required '../assets/init.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home3/bcaftanc/public_html/thequrantube/index.php on line 13
But in the index.php file in line 13, i don't have it like the error says, it's written like this:
require_once('./assets/init.php');
What could be the issue ?
I noticed a strange behaviour in my local development machine.
I'm developing a Laravel/VueJS based application.
My system:
Ubuntu 18.04.3
Laravel 5.5.44
PHP 7.3.12
After having launched the dev server with the usual php artisan serve, it's impossible to connect to the app on localhost:8000.
The app is only partially loaded. The html seems to load but the assets (css, js) are not. I get loads of net::ERR_INVALID_HTTP_RESPONSE on Chrome console but no errors at all in the artisan console.
On the other hand, the problem is solved when I launch the server with php -S localhost:8000 -t public.
I discovered that the problem seems related to the zlib php library. When it's activated, artisan trhows errors, otherwise everything works flawlessly.
I can work it out, but I'd like to understand why I get this strange behaviour.
EDIT
I attach the messages from Google Chrome console.
Failed to load resource: net::ERR_INVALID_HTTP_RESPONSE FD_logo_white_text.png:1
Failed to load resource: net::ERR_INVALID_HTTP_RESPONSE FD_logo.png:1
Failed to load resource: net::ERR_INVALID_HTTP_RESPONSE app.js:1
Failed to load resource: net::ERR_INVALID_HTTP_RESPONSE app.css:1
Uncaught TypeError: Cannot read property 'init' of undefined (index):1
at (index):1
Failed to load resource: net::ERR_INVALID_HTTP_RESPONSE white-arrow.png:1
Failed to load resource: net::ERR_INVALID_HTTP_RESPONSE 7.jpg:1
Failed to load resource: net::ERR_INVALID_HTTP_RESPONSE 4.jpg:1
Failed to load resource: net::ERR_INVALID_HTTP_RESPONSE manifest.json:1
Moreover, here is a screenshot of the Network tab on Google Console.
I use XAMPP on Windows 10. I installed Magento 2.20 community. My admin URLs are all broken:
Is there another version I should use? I tried to run the commands from this post:
Magento 2 - Links in Admin wont work
In my console, I see these errors:
/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/extjs/resources/css/ytheme-magento.css:1 Failed to load resource: net::ERR_CONNECTION_RESET
/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/extjs/resources/css/ext-all.css:1 Failed to load resource: net::ERR_CONNECTION_RESET
require.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
(index):1 Refused to apply style from 'http://localhost/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/jquery/jstree/themes/default/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
mixins.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
requirejs-config.js:71 Uncaught TypeError: require is not a function
at requirejs-config.js:71
at requirejs-config.js:78
at requirejs-config.js:416
magento-icon.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
(index):38 Uncaught TypeError: require.config is not a function
at (index):38
(index):87 Uncaught TypeError: require is not a function
at (index):87
(index):295 Uncaught TypeError: require is not a function
at (index):295
(index):428 Uncaught TypeError: require is not a function
at (index):428
(index):473 Uncaught TypeError: require is not a function
at (index):473
(index):514 Uncaught TypeError: require is not a function
at (index):514
(index):537 Uncaught TypeError: require is not a function
at (index):537
(index):560 Uncaught TypeError: require is not a function
at (index):560
admin-icons.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-400.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-600.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-700.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
admin-icons.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-700.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
admin-icons.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-600.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-400.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-700.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-600.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-400.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
I run Magento 2 on Windows (for development) successfully although I use WAMP. My recipe for setting it up is as follows (I adapted it from another stackexchange Q&A but can't find it). Note my locale is en_GB, replace yours below:
Run grunt clean which will clean several of the folders below quickly (*)
*delete var/cache
*delete var/view_preprocessed
*delete pub/static/* (don't delete the .htaccess)
delete generated/* and not .htaccess
delete var/composer_home
run php bin/magento cache:flush
run php bin/magento setup:static-content:deploy --theme YOUR/theme en_GB [en_GB is essential]
run php bin/magento setup:static-content:deploy --theme Magento/backend en_GB [en_GB is essential]
delete all themes/languages you don't actually use from pub/static/frontend
run php bin/magento dev:source-theme:deploy --locale="en_GB" --theme="YOUR/theme" css/styles-m css/styles-l css/email css/email-inline
grunt commands below need to be run as administrator
Copy a valid dev\tools\grunt\configs\theme.js that contains the theme definition if you’ve done an upgrade (as it gets overwritten)
DO NOT run grunt exec at all
run grunt less:yourtheme (and probably :backend)
Doesn't know whether the following will help you out, Please check.
In your screen shot i can see that you are already in magento/bin path, so here you have to run below command
sudo magento setup:upgrade
And for second command yo are using two php in command.
First Note : Magento2 doesn't support in windows version. But, can run.
If you are installing magento2.2 please make sure you are using php7 or 7x, magento2.2 will not support older versions.
Check your apache2 a2enmode is enabled or not, because it will make issues on redirection.
Check your all files have enough permission to load, for your local you can check with giving full permission for app/etc,var/,pub/static/,generate/*.
Once everything is set try to run the deployment commands with php.
You can avoid sudo if not needed. Or else go to magento root and run the earlier command which you already tried to implement.
Hope this will help you to sort out.
I have a wordpress site, where users can log in there and watch films uploaded by me (administrator) in the dashboard. Videos are long and there are a large files.
Unfortunately they do not load on chrome and firefox. Site displays only the controls of the video, but it looks like they are disabled.
Here is the code with my videos:
<video id="trainingVideo<?php echo $tb; ?>" class="training-video embed-responsive-item" autoplay="autoplay" controls="controls">
<source src="<?php echo $video_url; ?>" type="<?php echo $video['mime_type'] ?>">
</video>
Here is the debug console:
jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.1
/wp-content/uploads/CKZ-Informacje-o-szkoleniu.mp4 Failed to load resource: the server responded with a status of 403 (Forbidden)
/wp-content/uploads/CKZ-prawo-cywilne.mp4 Failed to load resource: the server responded with a status of 403 (Forbidden)
/wp-content/uploads/CKZ-prawo-handlowe.mp4 Failed to load resource: the server responded with a status of 403 (Forbidden)
/wp-content/uploads/CKZ-podatki-op%C5%82aty-i-ubezpieczenia.mp4 Failed to load resource: the server responded with a status of 403 (Forbidden)
/wp-content/uploads/CKZ-organizacja-i-zarz%C4%85dzanie-przedsi%C4%99biorstwem.mp4 Failed to load resource: the server responded with a status of 508 (unused)
/wp-content/uploads/CKZ-prawo-transportowe.mp4 Failed to load resource: the server responded with a status of 508 (unused)
/wp-content/uploads/CKZ-finansowanie-inwestycji-i-przedsi%C4%99biorstw.mp4 Failed to load resource: the server responded with a status of 403 (Forbidden)
/wp-content/uploads/CKZ-czas-pracy-kierowc%C3%B3w.mp4 Failed to load resource: the server responded with a status of 403 (Forbidden)
/wp-content/uploads/CKZ-bezpiecze%C5%84stwo-w-transporcie.mp4 Failed to load resource: the server responded with a status of 403 (Forbidden)
/wp-content/uploads/CKZ-przewozy-specjalistyczne.mp4 Failed to load resource: the server responded with a status of 403 (Forbidden)
/wp-content/uploads/CKZ-kontrole-w-transporcie-drogowym.mp4 Failed to load resource: the server responded with a status of 508 (unused)
/wp-content/uploads/CKZ-porozumienia-i-organizacje-w-transporcie-drogowym.mp4 Failed to load resource: the server responded with a status of 508 (unused)
/wp-content/uploads/CKZ-zadania-egzaminacyjne-film.mp4 Failed to load resource: the server responded with a status of 508 (unused)
/wp-content/uploads/CKZ-finanse-i-ksi%C4%99gowo%C5%9B%C4%87.mp4 Failed to load resource: the server responded with a status of 404 (Not Found)
/wp-content/uploads/CKZ-zasady-za%C5%82adunku-pojazd%C3%B3w.mp4 Failed to load resource: the server responded with a status of 404 (Not Found)
/wp-content/uploads/CKZ-prawo-pracy.mp4 Failed to load resource: the server responded with a status of 404 (Not Found)
Microsoft edge does not display any error. Could you please help me with this ?
you need to add 2 different source file to play the video.
1st one is mp4
2nd one is ogg
after that the structure will be
<video id="trainingVideo<?php echo $tb; ?>" class="training-video embed-responsive-item" autoplay="autoplay" controls="controls">
<source src="<?php echo $video_url_mp4; ?>"> <!-- mp4 -->
<source src="<?php echo $video_url_ogg; ?>"> <!-- ogg -->
</video>