gpt4 book ai didi

php - 500 - 发生错误 - 在 Joomla 中添加新文章时 DB 函数报告没有错误

转载 作者:行者123 更新时间:2023-11-29 05:00:37 27 4
gpt4 key购买 nike

我有一篇文章想发表在我的 Joomla!地点。每次我点击应用或保存。我收到错误 500 - 发生错误! DB 函数报告没有错误。我不知道为什么会出现此错误,我认为这是服务器错误。

我正在使用 TinyMCE 与 Joomla 一起输入文章! 1.5.11。

更新:我在 Joomla! 中打开了最大错误报告在文章管理器中,我试图保存文章,但出现了这对错误。请查看截图

alt text

我尝试添加

<?php
ini_set('error_reporting', E_ALL);
error_reporting(E_ALL);
ini_set('log_errors',TRUE);
ini_set('html_errors',TRUE);
ini_set('display_errors',true);
?>

在 Joomla 的 index.php 页面顶部!但它没有显示任何错误。我检查了服务器上的错误日志,也没有出现错误。

我设法通过 phpMyAdmin 发布了这篇文章,但随后发生了其他事情。我尝试通过单击文章链接从前端访问文章,但只出现一个空白页面。

这真的很奇怪,因为错误日志没有显示任何信息。所以我假设错误需要来自 Joomla!

如果我在/administrator/components/com_content/controller.php 上的 if (!$row->check()) { 之前添加 print_r($_POST) (大约第 693 行),就会发生这种情况

    Array
(
[title] => Test.
[state] => 0
[alias] => test
[frontpage] => 0
[sectionid] => 10
[catid] => 44
[details] => Array
(
[created_by] => 62
[created_by_alias] =>
[access] => 0
[created] => 2008-10-25 13:31:21
[publish_up] => 2008-10-25 13:31:21
[publish_down] => Never
)

[params] => Array
(
[show_title] =>
[link_titles] =>
[show_intro] =>
[show_section] =>
[link_section] =>
[show_category] =>
[link_category] =>
[show_vote] =>
[show_author] => 1
[show_create_date] => 0
[show_modify_date] => 0
[show_pdf_icon] =>
[show_print_icon] =>
[show_email_icon] =>
[language] =>
[keyref] =>
[readmore] =>
)

[meta] => Array
(
[description] => Test.
[keywords] => Test
[robots] =>
[author] => Test
)

[id] => 58
[cid] => Array
(
[0] => 58
)

[version] => 30
[mask] => 0
[option] => com_content
[task] => apply
[ac1e0853fb1b3f41730c0d52de89dab7] => 1
)

我在这个问题上有赏金,但问题仍然没有解决? link text

任何帮助将不胜感激!!

这是文章的链接(带有我从 TinyMCE 获得的源的文本文件)Article

最佳答案

我读了this other question并看到你不能发布这篇文章,因为它是 secret 的。它是“简单的英语”,它有 html 吗?你能提供更多信息吗? Joomla 有一些插件可以“过滤”很多内容。如果您尝试在 Joomla TinyMCE 中编写“iframe”或“script”标签,它将被过滤,这是 Joomla 提供安全性的方式。

您是否尝试禁用 TinyMCE 过滤器?转到“插件管理器”、“编辑器 - TinyMCE 2.0”并更改“代码清理”选项以进行测试。

关于php - 500 - 发生错误 - 在 Joomla 中添加新文章时 DB 函数报告没有错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1304809/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com