We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36564
    • 17 Posts
    Hi,

    I’m having issues displaying my RSS feed on my live site. I get an error "Error while inserting event log into database." when I set it to RSS. On my localhost it works fine.

    Is this something on the live server I need to set or add?

    I’m a newbie to this whole thing, please excuse me if this is really simple.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      That means you’ve got two problems. The event log is for logging errors. So this means that there is an error, plus there is a problem with the event log table in the database. It is possible that when you moved the site, the event log table lost the auto_increment of its id field. Check the structure of the event_log table in phpMyAdmin (or whatever MySQL client you use) and make sure the Extra for the id field has auto_increment.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 36564
        • 17 Posts
        I still appear to have now joy with this. The database field does have a auto increment in it. I also loaded a fresh modx sample intsall and received the same error message.

        Setup looks the same with php, mysql etc. Any other ideas?
          • 7231
          • 4,205 Posts
          If you view the Event Log (in the manager) are there any entries? If you "clear" the log is there an error? The error you describe is a database error while recording to the event log. But you also have the error that is causing the event to be logged as well.

          Things to look into: Clear the cache. Are the production and live databeses using the same collation/charset? Do you get errors with other activities (creating chunks, new pages, etc...)? Is the RSS feed in the correct format? Are you using FURLs? If so try it with them off and see if it helps.




            [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

            Something is happening here, but you don't know what it is.
            Do you, Mr. Jones? - [bob dylan]
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            And are you sure that the rss document has no template assigned? Template headers will definitely cause rss to choke.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 36564
              • 17 Posts
              Quote from: sottwell at Feb 19, 2008, 06:33 AM

              And are you sure that the rss document has no template assigned? Template headers will definitely cause rss to choke.

              No template assigned. It is "blank".

              Quote from: dev_cw at Feb 19, 2008, 04:50 AM

              If you view the Event Log (in the manager) are there any entries? If you "clear" the log is there an error? The error you describe is a database error while recording to the event log. But you also have the error that is causing the event to be logged as well.

              Things to look into: Clear the cache. Are the production and live databeses using the same collation/charset? Do you get errors with other activities (creating chunks, new pages, etc...)? Is the RSS feed in the correct format? Are you using FURLs? If so try it with them off and see if it helps.

              Event log had the ’configuration file still writable’ in it, but I have cleared the log now. No error when clearing the log. Going to check the collation/charset. RSS feed is XML/RSS. I have turned off FURLs.