Проблема с сайтом
16 USDздравствуйте всем. Купил домен. S-aircon.expert. Перенес на хостинг ukraine.com.ua. Пишет такую ошибку:
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:/home/cooperan/s-aircon.expert/www/design/rlab/html/index.tpl" on line 19 "function gtag(){dataLayer.push(arguments);}" - Unexpected ".", expected one of: "}" <-- thrown in /home/cooperan/s-aircon.expert/www/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.phpon line 19
жду ваши предложения)
Хорошего дня
Applications 1
-
Hello! I see the task "Modernize the website and adapt it for mobile version" for the online store / OpenCart. I have practical experience with refining stores: modules, checkout, payments/shipping, import/export, theme adjustments, and speed optimization. First, I will quickly check the current implementation, agree on the details, and make adjustments carefully, without unnecessary risk to the working site.
-
👋 Hello! I'm ready to start working right now. I clearly understand the task and have successful experience in implementing exactly such projects (examples are in the reviews). I will complete the task today, quickly and without unnecessary questions. Let's discuss the details and get started! 🚀
-
262 Good day. I can help fix this error. According to the message, the problem is that Smarty interprets the JavaScript code gtag(){dataLayer.push(arguments);} as template syntax due to the curly braces {}.
You need to either wrap the JS code in {literal}{/literal}, or properly escape the curly braces in the index.tpl template. I will also check the Google Tag/scripts connection after moving to the new hosting to ensure the site opens correctly without fatal errors.
I can quickly look at the index.tpl file, correct the Smarty syntax, and check the site after the changes.
-
1790 18 0 Good day, I have been working as a developer for over 3 years. I would be happy to collaborate with you, and I will complete the tasks quickly and efficiently.
Examples of my recent work:
https://mansionproject.nl/
https://thecarguys.kinsta.cloud/
https://totuus.co.uk/
https://futurizm.io/
-
10671 591 6 10 Ready to take on the job, write to me, I will do everything with quality. I have over 14 years of work experience!
-
849 20 1 1 Hello. There is a problem with compiling the Smarty template engine. Let's fix this error for you.
-
411 6 1 Hello! The error occurs because there is unprocessed JavaScript code in the Smarty template. Wrap it in {literal}…{/literal} or move it to a separate .js file. After that, the error will disappear. I am ready to help with the setup.
-
3001 42 0 1 Hello. Is the site made on OpenCart or on what platform? Let me try to figure it out and help.
-
487 1 0 Peter, hello! I already see the problem — there's no need to dig deep. The Smarty templating engine conflicts with the Google Tag Manager code. The solution is simple. I can fix it in 1-2 hours. I'm ready to start now.
-
890 10 1 Good day, I will be glad to help, write......................)))))
-
234 Hello! We are well acquainted with similar Smarty/OpenCart errors after transferring a site to a new hosting or domain — most likely the problem lies in the incorrectly inserted Google Analytics/gtag JS code within the tpl template. We can quickly find the cause, fix the error, and check the site's functionality after the transfer to the hosting ukraine.com.ua. Also, if needed, we will check the cache, PHP version, and other possible conflicts after migration. Examples of our work: apple-family.com.ua/uk, 3magency.co
-
937 5 0 1 Hello! I am Vladimir, the founder of the engineering agency Vaysed. Your error is related to the specifics of the Smarty templating engine used on your site. The problem is that you or a previous developer inserted the Google Analytics tracking code directly into the index.tpl template file. Smarty uses curly braces for its internal tags, so when it encounters these braces in the JavaScript code of the gtag function, it tries to process them as its own command and throws a syntax error due to an unexpected dot inside. To fix this issue, you need to log into your hosting at ukraine.com.ua, open the file at the specified path /home/cooperan/s-aircon.expert/www/design/rlab/html/index.tpl, find the inserted analytics script on line nineteen, and simply wrap all this JavaScript code in special parsing protection tags. Immediately after the opening script tag, write {literal}, and before the closing tag, add {/literal}. This will instruct the templating engine to completely ignore the curly braces inside the tracker, treating them as regular text, and your site will instantly work correctly again without a fatal error. Our team regularly encounters such technical nuances when migrating websites and setting up server infrastructure. You can learn more about our technical support and web development services on the official agency website https://vaysed.me/. If you have difficulties editing this file or need further professional configuration of your online store, message me directly, and we will promptly resolve this task turnkey.
-
1973 17 0 1 Good day! The error is understood — the Smarty templating engine on the new hosting interprets curly braces {} in the Google Analytics JavaScript code as its own syntax. Specifically, the line function gtag(){dataLayer.push(arguments);} — Smarty sees {dataLayer.push(arguments);} and tries to process it as a Smarty tag. This is a typical situation after moving to hosting with a different version of Smarty.
Fix: wrap the entire JS block in {literal}...{/literal} tags in the index.tpl file (and other templates where there is inline JavaScript). I will also check the entire template for similar instances to ensure the error does not appear on other pages. Additionally, I will check the PHP version on the new hosting and its compatibility with the CMS.
This is a quick task — 1 day. Please message me privately — I will clarify access to the hosting and we can start.
-
543 3 0 Good day. This is not a domain or hosting issue. The error occurs due to a conflict between the Google Analytics JavaScript code and Smarty: the templating engine interprets {} in function gtag(){dataLayer.push(arguments);} as its own syntax. It can be fixed by wrapping the script in {literal}{/literal} or escaping the curly braces.
-
172 Feel free to contact me, I will do it.
-
11596 44 0 Hello, if the task is to fix the error and that's all, it will be done quickly. Please write to me privately, provide SSH access and to the hosting. I will quickly fix the error. I will be happy to help you!
-
12912 67 0 Hello!
I have reviewed the project "Website Issue" and am ready to take on the task.
I propose to complete it in 3 days.
Best regards, Freelancer
-
96304 1273 1 10 Hello. I have extensive experience in website development. I am ready to fix the problem.
-
348 1 0 Hello.
I know what the problem is. I will fix it in an hour.
Message me and I will complete everything quickly and efficiently.
-
13100 331 0 Good afternoon, I can take a look, FTP access is needed.
-
669 8 0 Good day. I understand the essence of the problem and am ready to resolve it quickly. Please reach out.
-
1812 55 0 Good day. The problem is obvious. I can fix it. Write to me. Thank you.
-
1251 35 1 3 Hello, I will fix your problem quickly. Message me, I will be happy to collaborate.
-
1621 45 2 Hello. I will do everything right now, just write. Experience of more than 6 years)
-
2785 8 0 Good day. I am ready to fix the mistake. Write in private messages....
-
1867 52 0 1 Доброго дня. Зацікавив ваш проект. Допожу вирішити цю проблему зараз
Пишіть, буду радий співпраці
_________________________________________________
Великий досвід роботи в:
- WordPress (+Elementor/WooCommerce/UX Builder/ACF/Carbon Fields/WPBakery/Gutenberg/Bricks Builder і т.п.), OpenCart, ocStore, Bubble.io, Weblium, Webflow, Wix, Simpla, Bitrix, Webasyst, Joomla, Magento, Drupal, PrestaShop,1С, Хорошоп;
- Prom, Rozetka (Pricecreator), OLX, bigl, Etsy, Shopify, AutoRIA, Автобазар, RST, Besplatka, Kidstaff, Klubok (та ін. майданчики);
- AI: ChatGPT, Gemini, Midjourney, Nano Banana та їхні аналоги;
- Google (Таблиці, документи, гуглдиск, форми, пошук)
… - Microsoft Office;
- FTP, Хостинг, БД сайтів (базові навички), RDP.
Фото/відео/аудіо: софт від Adobe(Photoshop, Lightroom, Premiere Pro, After Effects, Audition); Figma; FL Studio; Ableton.
Є знання з HTML / MySQL / PHP / CSS / JS; Базове SEO / Базове технічне SEO.
ВідгукиFreelancehunt
Приклади роботи - за запитом в особисті повідомлення.
-
10922 224 0 1 Good day. Write to me, I will fix it now)
I will be happy to cooperate, I will need access to the hosting.
-
3367 148 4 1 Good day. I will help you quickly fix the mistake. If you have any questions, you can write to me in private messages.
-
12437 600 0 Good day, feel free to reach out - I will fix it quickly....................................