简体   繁体   English

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

[英]500 - An error has occurred – DB function reports no errors when adding new article in Joomla

I have an article that I want to publish on my Joomla! 我有一篇文章要发布在我的Joomla上! site. 现场。 Every time I click apply or save. 每次我点击申请或保存。 I get error 500 - An error has occurred! DB function reports no errors 我收到错误500 - An error has occurred! DB function reports no errors 500 - An error has occurred! DB function reports no errors . 500 - An error has occurred! DB function reports no errors I have no idea why this error comes up, al I can think is that it's a server error. 我不知道为什么会出现这个错误,我可以认为这是一个服务器错误。

I'm using TinyMCE to type articles together with Joomla! 我正在使用TinyMCE与Joomla一起打字! 1.5.11. 1.5.11。

Updated: I turned on Maximum error reporting in Joomla! 更新:我在Joomla中打开了最大错误报告! and in the article manager I tried to save the article and got these couple of errors. 在文章管理器中,我试图保存文章,并得到了这些错误。 Please check screenshot 请检查截图

替代文字

I tried adding 我尝试添加

<?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);
?>

at the top of the index.php pages for Joomla! 在Joomla的index.php页面的顶部! but it does not show any errors. 但它没有显示任何错误。 I checked the error logs on the server and also no errors come up. 我检查了服务器上的错误日志,也没有出现错误。

I managed to publish the article via phpMyAdmin but then something else happens. 我设法通过phpMyAdmin发布文章,但随后发生了其他事情。 I try to access to article from the front end, by clicking on the link to the article, but only a blank page comes up. 我尝试通过单击文章的链接从前端访问文章,但只出现一个空白页面。

This is really weird, since the error log does not show any information. 这真的很奇怪,因为错误日志没有显示任何信息。 So I assume the error needs to be coming from Joomla! 所以我认为错误需要来自Joomla!

This happens if I add a print_r($_POST) before if (!$row->check()) { on /administrator/components/com_content/controller.php (around line 693) 如果我在if (!$row->check()) { on /administrator/components/com_content/controller.php(第693行附近)之前添加了print_r($ _ POST), if (!$row->check()) {发生这种情况。

    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
)

I had a bounty on this question, but the problem is still not resolved? 我对这个问题有一个赏金,但问题仍未解决? link text 链接文字

Any help will be appreciated!! 任何帮助将不胜感激!!

Here is a link to the article (text file with the source I got from TinyMCE) Article 这是文章的链接(带有我从TinyMCE获得的源文本文件) 文章

I read this other question and saw that you can't post the article since it's confidential. 我读了这个问题 ,发现你不能发表文章,因为它是保密的。 Is it in "plain english", does it have html? 它是“普通英语”,它有HTML吗? Could you provide some more information? 你能提供更多信息吗? Joomla has some plugins that "filter" a lot of content. Joomla有一些插件可以“过滤”很多内容。 If you try to write "iframe" or "script" tags in Joomla TinyMCE it's going to be filtered, this is Joomla's way of providing security. 如果您尝试在Joomla TinyMCE中编写“iframe”或“script”标签,它将被过滤,这是Joomla提供安全性的方式。

Did you try to disable TinyMCE filters? 您是否尝试禁用TinyMCE过滤器? Go to "Plugin Manager", "Editor - TinyMCE 2.0" and change "Code cleanup" options to test. 转到“插件管理器”,“编辑器 - TinyMCE 2.0”并更改“代码清理”选项进行测试。

Looking at your POST array, it looks like the body text of your post isn't being sent. 查看您的POST数组,看起来您的帖子的正文文本未被发送。 This would suggest it's a problem on the front end. 这表明它在前端是一个问题。 Can you check the name of the HTML element where you are typing the body text? 您可以检查正在键入正文的HTML元素的name吗? If you could edit and show us the relevant parts of the HTML form that would help too. 如果您可以编辑并向我们展示HTML表单的相关部分,这些部分也会有所帮助。


edit: ok, that article you linked to is almost 150,000 bytes, so it might be that it's choking on it. 编辑:好的,你链接的那篇文章几乎是150,000字节,所以它可能会让它窒息。 If this is a once-off article that you probably won't have to edit too much, I'd recommend putting in some dummy text and then going into your database using phpMyAdmin or something and editing the text in the jos_content table. 如果这是一篇一次性的文章,你可能不需要编辑太多,我建议你输入一些虚拟文本,然后使用phpMyAdmin或其他东西进入你的数据库并编辑jos_content表中的文本。 The introtext and fulltext columns are defined as MEDIUMTEXT so they should be able to hold up to about 16MB without hassle. introtextfulltext列定义为MEDIUMTEXT因此它们应该能够容纳大约16MB而不会有麻烦。

If writing and/or editing articles of this size is something you'll be doing often (and hence, don't want to go into the DB each time), then perhaps you'll have to look at the maximum post size allowed. 如果编写和/或编辑这种大小的文章是你经常做的事情(因此,每次都不想进入数据库),那么你可能需要查看允许的最大帖子大小。

This error could occur when you use Firefox. 使用Firefox时可能会发生此错误。

Try to reproduce using IE. 尝试使用IE重现。

Regards 问候

Simply do the following task 只需执行以下任务即可

"""you can ask to your hosting provider to disable the function suhosin in php.ini. When this function is enable, is not possible to save large posts."""". msgstr“”“您可以要求您的托管服务提供商禁用php.ini中的函数suhosin。启用此功能时,无法保存大型帖子。”“”“。

Shailedner Ahuja Shailedner Ahuja

My Web Developer http://www.mywebdeveloper.in 我的Web开发人员http://www.mywebdeveloper.in

Your article text is too big . 你的文章文字太大了。 The table might not be finding space to save this big . 该表可能没有找到空间来保存这个大的。 I would like suggest you to use the LONGTEXT 我建议你使用LONGTEXT

datatype. 数据类型。 Check if it works for you . 检查它是否适合您。

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

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