Okay
  Public Ticket #3137585
ParseError: syntax error, unexpected token "<",
Closed

Comments

  •  2
    caos989 started the conversation

    I'm getting this error (only in production modus) when I try to acces Magento Admin --> Configuration:

    An error has happened during application run. See exception log for details.

    my system.log says: main.CRITICAL: ParseError: syntax error, unexpected token "<", expecting end of file in /home/seedsat/public_html/magento244/var/view_preprocessed/pub/static/app/code/MGS/ThemeSettings/view/adminhtml/templates/system/config/head.phtml:1

    I saw that there was a missing semicolone in line 1 so i fixed that.

    And magento was not compiling this line correct: <link href="//fonts.googleapis.com/css?family=<?php echo $font['css-name'] ?>:100,200,300,400,500,600,700,800,900" rel="stylesheet" type="text/css">


    because of the // it was uncommented.

    I deleted // and made it just: fonts.googleapis.com


    Magento is still hanging in a loop after correcting this.

    Can I deactivate this file? What is it good for?

  •  2
    caos989 replied

    Can you check this please?

    I can't switch to production mode because of this error.

  • [deleted] replied

    I'm so sorry. I don't connect ssh account. Please help me check it.

    3511909361.png


  •   caos989 replied privately
  • [deleted] replied

    I still don't connect ssh. Can you send ssh account again ?

  •   caos989 replied privately
  •  2
    caos989 replied

    did the connection work?

  • [deleted] replied

    I don't connect your access.

  •   caos989 replied privately
  • [deleted] replied

    Hi,

    I connected the server. Please switch to production mode and check it again. Thanks

  •  2
    caos989 replied

    I switched to production mode.

    There is still a problem.

    Please go to Magento Admin --> MGS --> Font Settings

    When you are there, all Menues are hanging. Only Dashboard is working.

    error in the console: Uncaught ReferenceError: setFontFamily is not defined

  • [deleted] replied

    Please remove block our company IP: 222.254.34.188


  •  2
    caos989 replied

    I recheck and it's really working now. I don't know why it was not working yesterday.

    Did you just changed /app/code/MGS/ThemeSettings/view/adminhtml/templates/system/config/head.phtml or other files also?

    I have to apply the changed files to my liveshop.

  • AlkhtybNana replied

    تتعرض اغلب المكيفات فى المنازل الى تراكم الاتربة والغبار عليها وذلك غالبا بسبب كثرة التشغيل او تعرض المكيف للهواء بسبب فتح النوافذ 

    ولكن تعتبر هذه الاتربة والغبار من اكثر الاشياء ضررا على المكيف حيث ان تراكم الغبار على المكيف يؤدى الى حدوث العديد من الاعطال به ومن هذه الاعطال تسريب المكيف للمياه 

    شركه تنظيف مكيفات بالجبيل
    بسبب انسداد المبخرة بالاتربة والغبار وضعف كفاءة المكيف وعدم قدرته على التبريد واعطال اخرى كثيرة ونظرا لاهمية المكيف فى المنزل فإنه لابد من المحافظة عليه والاهتمام بتنظيفه وذلك ايضا لان تنظيف المنزل يعكس ايضا منظر جمالى على المنزل 
    بأكمله وقد يصعب على الافراد القيام بتنظيف المكيف بأنفسهم ولابد لهم من ان يستعينوا بشركة متخصصة فى تنظيف المكيفات الموجودة بالمنازل وتعد شركة تنظيف مكيفات بخميس مشيط اكثر شركة مناسبة للقيام بعملية التنظيف وذلك لخدماتها العديدة التى تقدمها وتميزها فى مجال تنظيف المكيفات عن باقى الشركات

    شركة تنظيف مكيفات بخميس مشيط

    شركة عزل اسطح بمكة

  •  2
    caos989 replied

    Hi,


    I changed the file  in my liveshop /app/code/MGS/ThemeSettings/view/adminhtml/templates/system/config/head.phtml but the problem is still here.

    Did you changed some other files?

  • [deleted] replied

    Do you really sure it received new code?

  •  2
    caos989 replied

    yes I copied the file from magento244/app/code/MGS/ThemeSettings/view/adminhtml/templates/system/config/

    to

    /app/code/MGS/ThemeSettings/view/adminhtml/templates/system/config/


    you can check it when you conect with FTP.

  • [deleted] replied

    Could you send me to access your live shop?

  •   caos989 replied privately
  • [deleted] replied

    Please send link to your admin.

  •   caos989 replied privately
  •   [deleted] replied privately
  •   caos989 replied privately
  •  2
    caos989 replied

    do you have any updates for this?

  • [deleted] replied

    I don't see error because admin is developer mode.

  •  2
    caos989 replied

    you can switch to production mode

  • [deleted] replied

    I don't have ssh access connect to your site.

  •   caos989 replied privately
  •   caos989 replied privately
  • [deleted] replied

    Hi,

    I don't see error after enabling production mode.

  •  2
    caos989 replied

    It's working now on my site too. I really don't know why it's working suddenly but it's good when it's working :)

    you can close this