Zend Framework 1: Troubleshoot 404 Pages for Zend Translated pages

时间:2019-06-01 14:03:13

标签: php zend-framework

I have migrated my Zend Framework 1 site to a new server.

The site populates and renders with no errors apart from one issue related to Translated Pages.

The once working translated pages return 404 errors, and when you click on the home page url - it returns only english.

The site base URL is english, and has two other languages.

The database and the backend of the CMS has all the original content, however, when we render the translated URL's they return as a 404.

Each language is routed to its own domain, managed by the application.ini file.

Could anyone let me know what this issue could be?

Server background - moved from Debian 7 to 9 Php running on new server is 7.0 - could this be the issue? (Old server it was low 5.x)

I have checked all based URL's all are set as they were before. In fact all scripts and folders are exactly the same, including the folder structure.

No php errors to display - none show.

Only repeat error is as follows but i dont think this is related:

PHP Deprecated: iconv_set_encoding(): Use of iconv.internal_encoding is deprecated in /var/www/DOMAINNAME.com/library/Zend/Locale/Format.php on line 302

Line to refers to

iconv_set_encoding('internal_encoding', 'UTF-8');

2 个答案:

答案 0 :(得分:1)

Zend Framework 1不支持PHP7,其终止销售日期为2016年9月28日。 如此说来,由于这种不兼容,您会遇到很多问题。

您可以尝试使用this solution来解决该问题,但建议是考虑对应用程序进行重构,以避免安全问题。

答案 1 :(得分:0)

谢谢您的答复。

我们最终发现了问题,并且与PHP无关。我们仍在运行php.7.0

该问题实际上与我们排除在运行之外的Google Maps API有关。这与尚未使用的Google Maps有关,但是由于某种原因,需要启用它。