1

I am try to upgrade magento 2.0.0 to 2.1.7

Tutorial : magento.stackexchange.com

After upgrade Back-end changed to 2.1.7, but front end looking like,

enter image description here

Note :

Refused to apply style from MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled Uncaught TypeError: Unable to process binding "css: function(){return { empty:cart().summary_count == 0} }" Message: cart is not a function at css (eval at createBindingsStringEvaluator (knockout.js:2624),

Note :

[DOM] Found 2 elements with non-unique id #email: (More info: https://goo.gl/9p2vKq) <input name=​"login[username]​" value autocomplete=​"off" id=​"email" type=​"email" class=​"input-text" title=​"Email" data-validate=​"{required:​true, 'validate-email':​true}​" aria-required=​"true">​ <input name=​"login[username]​" value autocomplete=​"off" id=​"email" type=​"email" class=​"input-text" title=​"Email" data-validate=​"{required:​true, 'validate-email':​true}​" aria-required=​"true">​
(index):1 [DOM] Found 2 elements with non-unique id #newsletter: (More info: https://goo.gl/9p2vKq) <input name=​"email" type=​"email" id=​"newsletter" placeholder=​"Enter your email address" data-validate=​"{required:​true, 'validate-email':​true}​">​ <input name=​"email" type=​"email" id=​"newsletter" placeholder=​"Enter your email address" data-validate=​"{required:​true, 'validate-email':​true}​">​
(index):1 [DOM] Found 2 elements with non-unique id #pass: (More info: https://goo.gl/9p2vKq) <input name=​"login[password]​" type=​"password" autocomplete=​"off" class=​"input-text" id=​"pass" title=​"Password" data-validate=​"{required:​true, 'validate-password':​true}​" aria-required=​"true">​ <input name=​"login[password]​" type=​"password" autocomplete=​"off" class=​"input-text" id=​"pass" title=​"Password" data-validate=​"{required:​true, 'validate-password':​true}​" aria-required=​"true">​
(index):1 [DOM] Found 2 elements with non-unique id #popup-login-form: (More info: https://goo.gl/9p2vKq) <form class=​"form form-login" action=​"http:​/​/​localhost/​beta/​customer/​account/​loginPost/​" method=​"post" id=​"popup-login-form" novalidate=​"novalidate">​…​</form>​ <form class=​"form form-login" action=​"http:​/​/​localhost/​beta/​customer/​account/​loginPost/​" method=​"post" id=​"popup-login-form" novalidate=​"novalidate">​…​</form>​
(index):1 [DOM] Found 2 elements with non-unique id #send2: (More info: https://goo.gl/9p2vKq) <button type=​"submit" class=​"action login primary" name=​"send" id=​"send2">​…​</button>​ <button type=​"submit" class=​"action login primary" name=​"send" id=​"send2">​…​</button>​
jquery-migrate.js:41 JQMIGRATE: jQuery.fn.andSelf() replaced by jQuery.fn.addBack()
migrateWarn @ jquery-migrate.js:41
jquery-migrate.js:43 console.trace
migrateWarn @ jquery-migrate.js:43
/beta/customer/section/load/?sections=cart&update_section_id=false&_=1526040812897:1 Failed to load resource: the server responded with a status of 404 (Not Found)
customer-data.js:86 Uncaught Error: [object Object]
    at Object.<anonymous> (customer-data.js:86)
    at fire (jquery.js:3099)
    at Object.fireWith [as rejectWith] (jquery.js:3211)
    at done (jquery.js:9312)
    at XMLHttpRequest.callback (jquery.js:9720)
2knockout.js:3012 Uncaught TypeError: Unable to process binding "css: function(){return { empty:cart().summary_count == 0} }"
Message: cart is not a function
    at css (eval at createBindingsStringEvaluator (knockout.js:2624), <anonymous>:3:71)
    at update (knockout.js:3803)
    at ko.dependentObservable.disposeWhenNodeIsRemoved (knockout.js:3004)
    at evaluateImmediate (knockout.js:1737)
    at Object.ko.computed.ko.dependentObservable (knockout.js:1946)
    at knockout.js:3002
    at Object.arrayForEach (knockout.js:151)
    at applyBindingsToNodeInternal (knockout.js:2974)
    at applyBindingsToNodeAndDescendantsInternal (knockout.js:2854)
    at applyBindingsToDescendantsInternal (knockout.js:2836)
0

Just run below command and check

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
  • Yes, after i did below is my screen shot. – zus May 10 '18 at 5:50
  • Make sure all these command did you run? – Suresh Chikani May 10 '18 at 5:56
  • yes, all my commands Successfully run. – zus May 10 '18 at 5:59
  • Any idea about this error : snag.gy/BCHxpl.jpg – zus May 10 '18 at 7:07
  • Almost done everything, what is the error mean : Found 2 elements with non-unique id. screenshot -> snag.gy/s73RBx.jpg – zus May 11 '18 at 11:27
0

open the terminal and navigate to magento web root

Set folder permissions

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
find ./var -type d -exec chmod 777 {} \;
find ./pub/media -type d -exec chmod 777 {} \;
find ./pub/static -type d -exec chmod 777 {} \;
chmod 777 ./app/etc
chmod 644 ./app/etc/*.xml

Remove folder

sudo rm -rf pub/static
sudo rm -rf var/cache
sudo rm -rf var/composer_home
sudo rm -rf var/generation
sudo rm -rf var/page_cache
sudo rm -rf var/view_preprocessed

Run magento commands

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
chmod -R 777 var
chmod -R 777 pub
  • Thanks for your stuff, could you pls guide me how can i run these commands into windows – zus May 10 '18 at 5:54
  • Please provide your magento root directory full path, So i can explain you. – Vithal Bariya May 10 '18 at 5:56
  • chmod -R 777 pub -> what is mean this line? – zus May 10 '18 at 5:58
  • No, It's folder permission. 777 means Everyone can read write and execute. In a web server. – Vithal Bariya May 10 '18 at 6:01
  • 2
    Here is link to help you, how to run command in windows. magento.stackexchange.com/questions/186169/… – Vithal Bariya May 10 '18 at 6:04
0

run below query in your magento 2 database it will insert a row in core_config_data table:

INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', 0, 'dev/static/sign', '0');

If already added then change it to 0 then.

  • The table already present. – zus May 10 '18 at 7:18
  • You just need to update those values in the table. – Saphal Jha May 10 '18 at 7:20
  • My table : snag.gy/ER0GvK.jpg – zus May 10 '18 at 7:25
  • run this : INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', 0, 'dev/static/sign', '0'); – Saphal Jha May 10 '18 at 7:29
  • 1
    Comment the // throw ex; – Saphal Jha May 18 '18 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.