尝试导出语言包后,Prestashop管理面板丢失(Prestashop admin panel is lost after trying to export language packet)

编程入门 行业动态 更新时间:2024-10-15 16:24:32
尝试导出语言包后,Prestashop管理面板丢失(Prestashop admin panel is lost after trying to export language packet)

我的网站中存在一些使用特定主题的语言问题,所以我想,我应该选择语言包编辑并重新加载它。 因为我找不到使用管理面板上的浏览器编辑它的方法。

我刚按了一个名为export language packet的按钮。 我不知道那个时候发生了什么事。 但它没有给我一个文件(我的意思是导出文件)。 所以我没有做任何其他事情。 但从那时起,我无法联系到我的管理员小组。 当我写URL时,它会显示一个大白屏。

另一方面,站点本身(不是管理面板)是可以访问的。 我该怎么做才能解决我的问题?

嗨,这是错误

( ! ) SCREAM: Error suppression ignored for ( ! ) Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\wamp\www\httpdocs\translations\tr\admin.php on line 586 Call Stack # Time Memory Function Location 1 0.0009 690552 {main}( ) ..\index.php:0 2 1.7995 9942280 DispatcherCore->dispatch( ) ..\index.php:50 3 2.0567 10375504 ControllerCore::getController( ) ..\Dispatcher.php:342 4 2.0686 12512728 AdminControllerCore->__construct( ) ..\Controller.php:128 5 2.0689 12514200 AdminControllerCore->l( ) ..\AdminController.php:304 6 2.0711 12612344 TranslateCore::getAdminTranslation( ) ..\AdminController.php:1737

There were some language problems in my site which uses a specific theme so I thought,I should pick out the language pack edit and reload it. Because I couldn't find a way to edit it using browser on admin panel.

I just pressed a button named export language packet. I don't know if something happened that time. But it didn't give me a file (an exported file I mean) . So I didn't do anything else. But since that time I can't reach my admin panel. While I write the URL it shows me a big white screen.

On the other side the site itself (not admin panel) is reachable. What can I do to fix my problem?

Hi, This is the error

( ! ) SCREAM: Error suppression ignored for ( ! ) Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\wamp\www\httpdocs\translations\tr\admin.php on line 586 Call Stack # Time Memory Function Location 1 0.0009 690552 {main}( ) ..\index.php:0 2 1.7995 9942280 DispatcherCore->dispatch( ) ..\index.php:50 3 2.0567 10375504 ControllerCore::getController( ) ..\Dispatcher.php:342 4 2.0686 12512728 AdminControllerCore->__construct( ) ..\Controller.php:128 5 2.0689 12514200 AdminControllerCore->l( ) ..\AdminController.php:304 6 2.0711 12612344 TranslateCore::getAdminTranslation( ) ..\AdminController.php:1737

最满意答案

您收到的错误位于第586行的文件翻译\ tr \ admin.php中的翻译文件中。

要修复该错误,请备份该文件,即将该文件的副本保存在其他位置,然后尝试找出您在那里遇到的语法错误。 这个翻译文件中存在某种PHP语法错误。 由于翻译文件仅适用于管理部分,因此您的网站前端可能正常,而您的网站管理部分无效。

如果您无法找到该错误并进行修复,请删除该文件中的所有内容,然后尝试加载管理部分。

您应该使用prestashop提供的翻译包,即从prestashop http://www.prestashop.com/en/translations下载。

此外,如果您要编辑翻译,请使用admin。 在您提到的问题中,您无法编辑翻译,请确保提供该问题的详细信息,并尝试编辑翻译,同时保持错误报告,因此如果有任何问题,您将收到错误。 如果您打印出错误,请使用该错误消息更新您的问题。

如果您还有任何疑问,请告诉我。

The error you got is in your translation file in file translations\tr\admin.php on line number 586.

To fix that error, take a backup of that file, i.e. keep a copy of that file in some other place, then try to find out the syntax error you got there. It is some kind of PHP syntax error there in that translation file. As the translation file is only for the admin section, therefore your site front end may be fine and your site admin section is not working.

If you are not able to find that error and fix it, then delete all contents from that file, and then try to load the admin section.

You should use a translation pack which is provided by prestashop, ie download it from the prestashop http://www.prestashop.com/en/translations .

Also if you want to edit translations, use admin. In your question you mentioned, that you were not able to edit translations, please do provide details for that problem, and also try to edit translations while keeping error reporting on, so if there is any problem, you will get the errors printed. If you got errors printed, then update your question with that error message.

Let me know if you still got any questions.

更多推荐

本文发布于:2023-08-07 07:39:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1463007.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:语言包   面板   admin   panel   Prestashop

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!