Problem to Create or edit section


#1

Hi can someone please help, I have problem when I want to create section under Journall settings

It shows error “Failed Ajax request or invalid JSON returned”

I looked in the logs:
Error 92.240.33.146 500 GET /OJS/index.php/BHF/$$$call$$$/grid/settings/sections/section-grid/add-section?gridId=grid-settings-sections-sectiongrid&_=1546109407674 HTTP/1.0 !

http://www.ef.unze.ba/OJS/index.php/BHF/management/settings/context Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 421 Apache access
2018-12-29 19:52:06 Error 92.240.33.146 AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught exception ‘PDOException’ with message ‘SQLSTATE[HY000] [2005] Unknown MySQL server host ‘localhost:3306’ (2)’ in /var/www/vhosts/ef.unze.ba/httpdocs/OJS/lib/pkp/lib/vendor/illuminate/database/Illuminate/Database/Connectors/Connector.php:47\nStack trace:\n#0 /var/www/vhosts/ef.unze.ba/httpdocs/OJS/lib/pkp/lib/vendor/illuminate/database/Illuminate/Database/Connectors/Connector.php(47): PDO->__construct(‘mysql:host=loca…’, ‘ojs’, ‘Nautilus1982$’, Array)\n#1 /var/www/vhosts/ef.unze.ba/httpdocs/OJS/lib/pkp/lib/vendor/illuminate/database/Illuminate/Database/Connectors/MySqlConnector.php(20): Illuminate\Database\Connectors\Connector->createConnection(‘mysql:host=loca…’, Array, Array)\n#2 /var/www/vhosts/ef.unze.ba/httpdocs/OJS/lib/pkp/lib/vendor/illuminate/database/Illuminate/Database/Connectors/ConnectionFactory.php(59): Illuminate\Database\Connectors\MySqlConnector->connect(Array)\n#3 /var/www/vhosts/ef.unze.ba/httpdocs/OJS/lib/pkp/lib/vendor/illuminate/database/Illuminat…\n’, referer: http://www.ef.unze.ba/OJS/index.php/BHF/management/settings/context Apache error


#2

I solved problem, I edited config file, removed port from localhost