OJS 3 - Error 404 Not Found

Hi!
OJS 3.1.1.0 Turkish
1- Publication Error
error1

2- Error Issues
error2

OS platform Linux
PHP version 7.2.5-1+ubuntu16.04.1+deb.sury.org+1
Apache version Apache/2.4.18 (Ubuntu)
Database driver mysqli
Database server version 5.7.22-0ubuntu0.16.04.1

Hi @hcemkucuk,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

Php error log 0 kb. file is empty

Warning: Declaration of LensGalleyPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /var/www/html/ojs/plugins/generic/lensGalley/LensGalleyPlugin.inc.php on line 0

Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0

Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /var/www/html/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 19

Warning: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /var/www/html/ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 19

Warning: Declaration of SubmissionFileDAO::fromRow($row) should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /var/www/html/ojs/classes/article/SubmissionFileDAO.inc.php on line 23

++ lib/pkp/classes/i18n/PKPLocale.inc.php added and the errors have not gone.

if ($locale == 'tr_TR') setlocale(LC_CTYPE, 'en_US');

Hi @hcemkucuk,

If the log file is empty, then where did those warnings come from?

Regards,
Alec Smecher
Public Knowledge Project Team

config.inc.php - display_errors = On

Hi @hcemkucuk,

Using display_errors will interfere with AJAX requests, so I’d suggest turning that option off again and reviewing your PHP configuration to see where errors and warnings are logged. It might be that there is a different log file, or that log entries are dumped instead of logged. Having them sent to a log file, and knowing where that log file is, will be very important in debugging.

Regards,
Alec Smecher
Public Knowledge Project Team

I understand. Thank you. I will come back to you.

error.log
https://drive.google.com/open?id=1VCsEqIMqrqyu9iZs-6FSQ6JnnksxQJWj

Hi @hcemkucuk,

I don’t see anything relevant in the error log. Does this error persist if you change the interface language over to something else e.g. English?

Regards,
Alec Smecher
Public Knowledge Project Team

Turkish = Error

English, French = No Error

Hi @hcemkucuk,

Where did you add the modification you described in this post?

Regards,
Alec Smecher
Public Knowledge Project Team

	static function initialize($request) {
		self::$request = $request;

		// Use defaults if locale info unspecified.
		$locale = AppLocale::getLocale();

		$sysLocale = $locale . '.' . LOCALE_ENCODING;
		if (!@setlocale(LC_ALL, $sysLocale, $locale)) {
			// For PHP < 4.3.0
			if(setlocale(LC_ALL, $sysLocale) != $sysLocale) {
				setlocale(LC_ALL, $locale);
			}
		}

		AppLocale::registerLocaleFile($locale, "lib/pkp/locale/$locale/common.xml");

		// Set site time zone
		// Starting from PHP 5.3.0 PHP will throw an E_WARNING if the default
		// time zone is not set and date/time functions are used
		// http://pl.php.net/manual/en/function.date-default-timezone-set.php
		$timeZone = self::getTimeZone();
		date_default_timezone_set($timeZone);

		if (Config::getVar('general', 'installed')) {
			// Set the time zone for DB
			// Get the offset from UTC
			$now = new DateTime();
			$mins = $now->getOffset() / 60;
			$sgn = ($mins < 0 ? -1 : 1);
			$mins = abs($mins);
			$hrs = floor($mins / 60);
			$mins -= $hrs * 60;
			$offset = sprintf('%+d:%02d', $hrs*$sgn, $mins);

			$conn = DBConnection::getInstance();
			$dbconn =& $conn->getDBConn();
			switch($conn->getDriver()) {
				case 'mysql':
				case 'mysqli':
					$dbconn->execute('SET time_zone = \''.$offset.'\'');
					break;
				case 'postgres':
					$dbconn->execute('SET TIME ZONE INTERVAL \''.$offset.'\' HOUR TO MINUTE');
					break;
				default: assert(false);
			}
		}
				if ($locale == 'tr_TR') setlocale(LC_CTYPE, 'en_US');
	}

Hi @hcemkucuk,

What version of PHP are you using?

Regards,
Alec Smecher
Public Knowledge Project Team

OS platform Linux
PHP version 7.2.5-1+ubuntu16.04.1+deb.sury.org+1
Apache version Apache/2.4.18 (Ubuntu)
Database driver mysqli
Database server version 5.7.22-0ubuntu0.16.04.1