简体   繁体   English

Joomla“找不到404类别”错误

[英]Joomla “404 category not found” error

I've just upgraded a Joomla website to version 3.5.1 in order to support PHP 7. This site is hosted on a server which ran PHP 5.3 till now. 为了支持PHP 7,我刚刚将Joomla网站升级到了3.5.1版。该网站托管在运行PHP 5.3的服务器上。 So far every version of Joomla worked fine. 到目前为止,每个版本的Joomla都可以正常运行。

But when I upgrade PHP to version 7, I encounter "404 category not found" errors on many links on the frontend, including menus. 但是,当我将PHP升级到版本7时,前端的许多链接(包括菜单)上都会遇到“找不到404类别”错误。 Actually all first level menu entries are OK but all second level menu entries and links in articles give errors. 实际上,所有第一级菜单项都可以,但文章中的所有第二级菜单项和链接均会出错。 However I haven't seen any issue on the admin panel. 但是,我在管理面板上没有看到任何问题。

When I get back to PHP version 5.3, it's OK again. 当我回到PHP 5.3版本时,就可以了。 I tried with PHP version 5.6 too and got the same error. 我也尝试使用PHP 5.6版,并得到了相同的错误。

For developpement and tests purposes, I have a copy of the full site (a backup of files and data) at home : it worked before with PHP 5.6, and it's still working now with PHP 7. 出于开发和测试目的,我在家中有一个完整站点的副本(文件和数据的备份):以前在PHP 5.6上可以使用,现在在PHP 7上仍可以使用。

I looked through the PHP configurations of my PC and the server. 我浏览了PC和服务器的PHP配置。 But I'm not skilled enough to see anything obvious that could help. 但是我不够熟练,看不到任何明显可以帮助的东西。

Thanks in advance for any help. 在此先感谢您的帮助。

Problem solved : my web-hosting provider (OVH) introduced a specific php config file for mutualized hosting 2 years ago. 解决的问题:2年前,我的网络托管提供商(OVH)引入了一个用于相互托管的特定php配置文件。 Since my site was older the file was missing. 由于我的网站较旧,因此文件丢失。 Once this file is added with the right parameters (among them the PHP version) the links get back to normal again. 一旦为文件添加了正确的参数(包括PHP版本),链接就会恢复正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM