We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4749
    • 623 Posts
    Hey all,
    I have been experiencing weird, random errors ever since the 1.0.2 release. When adding content and then saving documents I get weird changes to the icons in the tree. Sometimes the icons will disappear and other times it will change the content type (most of the time to xml/rss). Other times the document won’t even save and I get this error:

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' richtext=1, published=1, pub_date=1267155257, unpub_date=0, parent=10, template' at line 2 »
          SQL: UPDATE `db318382909`.`sol_site_content` SET introtext='', content='
    
    [PRESS LISTINGS GO HERE]
    
    ', pagetitle='Press', longtitle='Press', type='document', description='', alias='press', link_attributes='', isfolder=, richtext=1, published=1, pub_date=1267155257, unpub_date=0, parent=10, template=8, menuindex='4', searchable=1, cacheable=1, editedby=1, editedon=1268258962, publishedon=publishedon, publishedby=publishedby, contentType='text/html', content_dispo='0', donthit='0', menutitle='Press', hidemenu='0' WHERE id=14; 


    Any ideas why I’m getting these problems. Oh, and just to ease your minds about various server configurations I’ve had this happen on various versions of PHP, MYSQL, and APACHE. I don’t think it has to do with the server. But, not saying it isn’t either. It just seems like the problem is something to do with the core and how it saves the document. I’ve had to go into the database multiple times and manually change the content type. Sometime I’ll go in there and see entries that look like this: "tex----------243948576" or "text/html-----------2348762965" very odd or it will be completely blank. Someone else has to have experienced this, because this has happened on at least four different installations of evo 1.0.2 - upgrades and fresh installs.

    EDIT: I just noticed that when using "Save + Continue Editing" it hasn’t had any weird side effects. I thought that was interesting, but it’s annoying to have to select that each time unnecessarily.
      The MODx has you...
      Utah Web Design
      • 4749
      • 623 Posts
      Is there anybody else that has experienced anything similar? I’m pretty sure I’m not alone in this. Here is a thread that talks about the same issue I’ve experienced before.

      http://modxcms.com/forums/index.php?topic=43211.0

      Also, here’s a screen shot showing another of the weird errors:

        The MODx has you...
        Utah Web Design
        • 25663 MODX Staff
        • 12,272 Posts
        Sounds like it could be a character set or collation problem in the database. Without additional information, it’s hard to say.
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 4749
          • 623 Posts
          Quote from: rthrash at Mar 16, 2010, 04:34 PM

          Sounds like it could be a character set or collation problem in the database. Without additional information, it’s hard to say.

          Ryan, let me know what other information you think is necessary and I will get it for you. I’ve had so much trouble with this lately that I don’t know what else to do.
            The MODx has you...
            Utah Web Design
            • 4749
            • 623 Posts
            I just finished upgrading a few different sites to the latest release and the problems persist. I’m dying here. What info from the db do you need in order to determine a collation or character set problem. Everything seems to match (said the designer). I really need to solve this, as it plagues several sites of mine.


            $database_connection_charset = 'utf8';
            $database_connection_method = 'SET NAMES';




            Webserver:
            PHP 5.2.13
            Apache 1.3.34
            Linux Debian 2.26.28.8

            Database:
            MySQL 5.0.67

            MODx 1.0.3 GA

            Mac OSX 10.6.3
              The MODx has you...
              Utah Web Design
              • 25663 MODX Staff
              • 12,272 Posts
              Just follow the link in my signature: "help us help you".
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 4749
                • 623 Posts
                Quote from: rthrash at Apr 09, 2010, 07:43 AM

                Just follow the link in my signature: "help us help you".

                Webserver:
                PHP 5.2.13
                Apache 1.3.34
                Linux Debian 2.26.28.8

                Database:
                MySQL 5.0.67

                MODx 1.0.3 GA

                Mac OSX 10.6.3
                  The MODx has you...
                  Utah Web Design
                  • 4749
                  • 623 Posts
                  I don’t want to speak too soon, but it appears it may be a local problem. Obviously I’m having problems posting. I don’t know why it’s creating a new topic when I’m replying to an existing topic, but it is. I just checked some older modx installations from 0.9.6.1 up to the current release and they’re all behaving the same. So, I’m pretty sure it’s my setup here. I’m wondering if my ISP is causing problems with packet loss and dropping information. But for whatever reason I can’t edit any modx sites anymore without doing it through the db. If anyone has any insight whatsoever on this problem let me know, thanks!
                    The MODx has you...
                    Utah Web Design
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Is this only on your localhost? Or is this happening with sites on remote servers?
                      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
                      • 4749
                      • 623 Posts
                      They’re all remote servers. It doesn’t happen on my MAMP installs.
                        The MODx has you...
                        Utah Web Design