Magento 2 Installation, 404 Files - magento

After the installation of Magento 2 I get some errors. I share the screenshot of the error below. The error is exactly.
Error: Magento is first installed with version folder. Example: pub/static/versionxxxxxxx/
A sample url address;
https://furnitica.com/pub/static/version1547110740/frontend/Magento/luma/en_US/requirejs/require.js
But if we make changes to this url ( I will delete version folder url )
https://furnitica.com/pub/static/frontend/Magento/luma/en_US/css/styles-m.css
This works smoothly. Worked when I moved the files to the version folder. But this is not a valid solution because the name of the version folder changes continuously.
Screenshot:

Magento shows 404 for static content if system is in production mode and static content is not deployed. Deploy static content to resolve it:
php bin/magento setup:static-content:deploy

Related

I am getting 404 error for css and js files after I installed magento

I installed magento 2.4.2 on bluehost vps hosting, but I am getting the website as shown in figure 1 I tried every solution I found online but non of them worked for me.
Solutions I tried:
1- changing the permission for pub/static dir.
2- In app/etc/di.xml, find the virtualType name=”developerMaterialization” section and its item called name=”view_preprocessed”. I changed Symlink with Copy in Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink.
3- php bin/magento setup:static-content:deploy -f command
4- RewriteEngine On, in /pub/static/.htaccess file
5- set sign static files to No (dev/static/sign to 0)
I wish someone can help
Hi #Silverwolf96 and welcome on StackOverflow.
There are few things you can try/check.
1.) Check in the page source if the URLs to your files are correct. If not set correctly, set them manually as described in step 2.
2.) Go to Store > Configuration > General > Web and set under Base URLs & Base URLs (Secure) your URLs for static files - you can set this URL manually and it needs to be set as http://www.example.com/static/
3.) You can try to remove pub/static/frontend on the server
4.) Check what happens if you select Magento Luma as the default theme

Joomla File not found error

I have clone the website from http://www.betaekwondo.com.au/ to http://www.be-ma.com.au/index.php
everything works fine but I am stuck and getting 404 file not found error only on below link
http://www.be-ma.com.au/programs.html
http://www.be-ma.com.au/be-fit.html
http://www.be-ma.com.au/programs/taekwondo.html
all links working in main site i just copy the files and database and change in configuration file as required. Please share you knowledge*
Links are not error And no problem!

Magento 1.9 Installation Error

I am trying to install magento 1.9 on my web hosting server .
I ftp-ed the files into my hosted website but experience the following error when i try to access my URL.
Fatal error: Class 'Mage_Core_Controller_Request_Http' not found in /home/bf/public_html/app/code/core/Mage/Core/Model/App.php on line 1238
I tried a google search but i am unable to find anything relevant .
Just download the Fresh copy from Magento community again. Also make sure that your server has all the prerequisite for Magento as mentioned in below link.
http://docs.magento.com/m1/ce/user_guide/magento/system-requirements.html
Please make sure that below files exist in this directory
app/code/core/Mage/Core/Controller/Request/Http.php
1.Make sure you have enabled curl on your server and with have right file permission.
2.Make sure file should exist on following path:
/home/bf/public_html/app/code/core/Mage/Core/Controller/Request/Http.php
3.Make sure compilation mode is disabled.
/home/bf/public_html/includes/config.php
Every thing inside should be commented.
4.If it does not work, you have to debug this.
Open index.php in root and add these line of code,
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
It will show you why error is coming.Once you will find the root cause, you can get the solution on google or any forum.

Custom module gives error in Magento2

I created a simple custom module in Magento2. I enabled my module in app/etc/config.php, executed the command bin/magento setup:upgrade in my project root folder and cleared all the cache directories.
But after page refresh, I'm getting the below error page:
Check your module version in two files:
app/code/Eglobe/HelloWorld/etc/module.xml
app/code/Eglobe/HelloWorld/composer.json
and make sure they are the same

no file uploaded error in magento

I have upgraded my Magento version from 1.4.0.1 to 1.7.0.2.
Now I tried to upload a theme package using upload package file in Magento Connect Manager. It shows an error 'No file was uploaded'.
Please get me a solution.
Try using the Version 2.0 from the dropdown on the extensionpage on magento-connect, that should work.
The No file was uploaded error is return when:
The form key is invalid
$_FILES doesn't exist
$_FILES['file'] is empty
I had the same issue and managed to fix it by commenting out the rewrite instructions in my main .htaccess file in Magento's root folder. Don't forget to add those instructions back after you finished installing your module.
I suggest you keep a .htaccess.magento-connect file for when you want to use Magento Connect along with your regular .htaccess file, and switch between the two.

Resources