添加文章到 Jooma! 时出现 500 Internal Server Error 3.5 数据库
500 Internal Server Error when adding article to Jooma! 3.5 database
我有一个新闻网站 运行 Joomla!在 jos_content
table.
中有超过 58.000 行(文章)
当我尝试使用任何类型的编辑器添加新文章时,我收到“500:内部服务器错误”并且 URL link 是:
sitename.com/administrator/index.php?option=com_content&view=article&layout=edit&id=0
而不是
sitename.com/administrator/index.php?option=com_content&view=article&layout=edit&id=ID_OF_THE_NEW_CREATED_ARTICLE.
文章也没有插入。
我再次尝试刷新 "Internal Server Error" 页面,等待时间比平时长,最后,文章被插入,link 变为
sitename.com/administrator/index.php?option=com_content&view=article&layout=edit&id=ID_OF_THE_NEW_CREATED_ARTICLE.
我试图在数据库中找到进行 INSERT
查询的 PHP,但没有成功。
Joomla 3.x 核心和扩展不再通过直接操作处理 "content" table。如果深入研究代码,您会发现必须使用 class JTable 进行插入、删除等操作。
因此,切勿直接删除或操作 table 至 mysql!你会变得腐败 table "assets"。 class JTable 负责在内容 table.
的同时创建和编辑资产 table
我有一个新闻网站 运行 Joomla!在 jos_content
table.
当我尝试使用任何类型的编辑器添加新文章时,我收到“500:内部服务器错误”并且 URL link 是:
sitename.com/administrator/index.php?option=com_content&view=article&layout=edit&id=0
而不是
sitename.com/administrator/index.php?option=com_content&view=article&layout=edit&id=ID_OF_THE_NEW_CREATED_ARTICLE.
文章也没有插入。
我再次尝试刷新 "Internal Server Error" 页面,等待时间比平时长,最后,文章被插入,link 变为
sitename.com/administrator/index.php?option=com_content&view=article&layout=edit&id=ID_OF_THE_NEW_CREATED_ARTICLE.
我试图在数据库中找到进行 INSERT
查询的 PHP,但没有成功。
Joomla 3.x 核心和扩展不再通过直接操作处理 "content" table。如果深入研究代码,您会发现必须使用 class JTable 进行插入、删除等操作。 因此,切勿直接删除或操作 table 至 mysql!你会变得腐败 table "assets"。 class JTable 负责在内容 table.
的同时创建和编辑资产 table