• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Forwarded to devs Languagefiles breaks system

Edward Dekker

Basic Pleskian
TITLE:
Language files breaks system
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
Product version: Plesk Onyx 17.8.11 Update #24
Update date: 2018/10/02 03:42
Build date: 2018/09/27 08:08
OS version: CentOS 7.5.1804
Revision: f184ec1c85934ecb09cf67b41bff796c0ea05c01
Architecture: 64-bit
Wrapper version: 1.2
PROBLEM DESCRIPTION:
I've a problem by installing a updated language file from the Locales Manager.
And cannot fix the problem at the moment by a SSH command line.

Code:
[root@edwarddekker ~]# plesk repair -y
[2018-10-07 10:10:24.610] ERR [panel] syntax error, unexpected 'used' (T_STRING), expecting ')':
0: /usr/local/psa/admin/plib/locales/en-US/common_messages_en-US.php:15
        include()
1: /usr/local/psa/admin/plib/functions.php:729
        lmsg_load(string 'en-US', string '', boolean true)
2: /usr/local/psa/admin/plib/functions.php:811
        lmsg_impl(string 'cu_panel__repair_run_powerUser')
3: /usr/local/psa/admin/plib/functions.php:749
        lmsg_power_user(string 'cu_panel__repair_run')
4: /usr/local/psa/admin/plib/functions.php:763
        lmsg(string 'cu_panel__repair_run')
5: /usr/local/psa/admin/plib/api-common/cuRepair.php:918
        cuRepair->registerAdditionalUnixCommands()
6: /usr/local/psa/admin/plib/api-common/cuRepair.php:1058
        cuRepair->registerCommands()
7: /usr/local/psa/admin/plib/api-common/cuRepair.php:38
        cuRepair->__construct(NULL null)
8: /usr/local/psa/admin/plib/api-common/CuExecutor.php:59
        CuExecutor->execUtil(string 'cuRepair', string 'execute')
9: /usr/local/psa/admin/plib/api-common/CuExecutor.php:130
        CuExecutor->run()
10: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:25
        CliUtilityRunner->run()
11: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:36
        require_once(string '/usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php')
12: /usr/local/psa/admin/plib/api-cli/repair.php:4
ERROR: ParseError: syntax error, unexpected 'used' (T_STRING), expecting ')' (common_messages_en-US.php:15)
exit status 1
ACTION:
Correct all files to a good translation and sort anything out as situated at this post. See also Input - Updated language file (Dutch)
ACTUAL RESULT:
Plesk system breaks at the moment.
REQUESTED:
A fix by commandline with SSH, and a updated ZIP file for English - United States language. Also would I asking to publish the update at the microupdates channel.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Help with sorting out.
 

Attachments

  • PLESK_17_8_en-US_06_Oct_2018.zip
    314.1 KB · Views: 2
Last edited:
@Edward Dekker

Thanks for your post.

Your zip archive with english locale template has corrupt files:
  • Common I\en-US\common_messages_en-US.php
  • Unix\en-US\conhelp_en-US.php

These files must comply with the syntax rules
PHP Syntax and Tags - w3resource

Now a file Common I\en-US\common_messages_en-US.php has a two lines which does not meet syntax requirements:

line 15
'actionlog__client_sapppkg_pool' => "User's web application", , not used?

", not used?" after a first comma should be removed

line 247
'actionlog__upgrade' => 'upgraded', ?

"?" after comma should be removed


Another incorrect file (wrong syntax) is
Unix\en-US\conhelp_en-US.php

line 1188

'l_clientslist_resource' => "Sort by resource usage criteria (overused/not overused).",)

spare ")" after comma

Please, fix these issues maunally. Both of these files are placed at /usr/local/psa/admin/plib/locales/en-US folder


Also I've attached a correct zip archive locale template to this post.
And finally i've created a bug with ID = EXTPLESK-512 to add a some validation to the installation of the locale template. This bug will be fixed in the next release of Locale Manager extension
 

Attachments

  • PLESK_17_8_en-US_06_Oct_2018-correct.zip
    314.1 KB · Views: 3
Okay,

Than will Plesk running again?

Tonight will i make a try to fix the problems. Many thanks for your review. And did you check also my Dutch translation?

Staying in touch,
Edward Dekker

@Edward Dekker

Thanks for your post.

Your zip archive with english locale template has corrupt files:
  • Common I\en-US\common_messages_en-US.php
  • Unix\en-US\conhelp_en-US.php

These files must comply with the syntax rules
PHP Syntax and Tags - w3resource

Now a file Common I\en-US\common_messages_en-US.php has a two lines which does not meet syntax requirements:

line 15
'actionlog__client_sapppkg_pool' => "User's web application", , not used?

", not used?" after a first comma should be removed

line 247
'actionlog__upgrade' => 'upgraded', ?

"?" after comma should be removed


Another incorrect file (wrong syntax) is
Unix\en-US\conhelp_en-US.php

line 1188

'l_clientslist_resource' => "Sort by resource usage criteria (overused/not overused).",)

spare ")" after comma

Please, fix these issues maunally. Both of these files are placed at /usr/local/psa/admin/plib/locales/en-US folder


Also I've attached a correct zip archive locale template to this post.
And finally i've created a bug with ID = EXTPLESK-512 to add a some validation to the installation of the locale template. This bug will be fixed in the next release of Locale Manager extension
 
Back
Top