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

    I am very new to MODx this is my first attempt. I finally got MODx installed but when I access the manager and click on home 9or any of the site pages. I get the following error.

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/gingersquirrel.com/httpdocs/manager/includes/header.inc.php:7) in /var/www/vhosts/gingersquirrel.com/httpdocs/manager/includes/document.parser.class.inc.php on line 2732
    « 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 ’@localhostsite_tmplvars ORDER BY name ASC’ at line 1 »
    SQL: SELECT name,type,id FROM Mark@localhostsite_tmplvars ORDER BY name ASC
    [Copy SQL to ClipBoard]

    Any help would be very much appreciated on this error.

    Is this CMS suitable for a person who is more a designer (with a fair knowledge of html and css) than a developer? I feel I have fumbled my way through my first endeavors in to the program. Is this just part of the steep learning curve or could it be I have bitten of more than I can chew?

    Cheers
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The header errors are caused by the original database error being fired off by PHP before MODx tries to send its errors.

      Your problem is the SQL issue. It looks like you used your database login for the table prefix, and/or for the database name when you first installed the site.
        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
        • 3749
        • 24,544 Posts
        I agree with Susan. I think you just put something in the wrong field when you installed MODx.

        If you don’t have any important content yet, I would go into PhpMyAdmin (via cPanel or the equivalent) and "Drop" all the tables in the MODx DB. To do that, look at the bottom of the table list. You’ll see a "check all" option or something similar. Click on it, then use the drop-down next to it and select "drop" then click on the "Go" button.

        Then edit the manager/includes/config.inc.php file, delete everything in it, and save it. This will put you back where you were just before the install.

        Now, redo the install being careful to put the right things in the right fields (leave the table prefix as "modx_").

        If you have the same problem again (you shouldn’t), it probably means that one or more files was corrupted when you FTP’d them to the site and you’ll have to do that again.

        It’s hard to say if MODx is right for you. If you know HTML and CSS, you should be able to use MODx without much trouble once you get past the installation (which goes pretty smoothly most of the time).

        It might be worth knowing that there are hosts, such as Bluehost.com, that have a built-in installer for MODx that makes the process very painless and much simpler.

        Also, many people install XAMPP or MAMP to create a server on their local machines and install MODx there locally while learning it.

        Feel free to ask more questions if you run into trouble or need more details.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 10842
          • 6 Posts
          Thank you for your quick replies. I will try them out and let you know how I get on.
            • 10842
            • 6 Posts
            Yes it worked fine. Thank you very much.

            I am now going to try installing XAMPP to see if I can test sites on the PC too.

              • 20413
              • 2,877 Posts
              Is this CMS suitable for a person who is more a designer (with a fair knowledge of html and css) than a developer? I feel I have fumbled my way through my first endeavors in to the program. Is this just part of the steep learning curve or could it be I have bitten of more than I can chew?

              MODx rocks because it lets you control the html output 100%!

              There is existing add-ons for most stuff. This forum and community
              loves to help you mangle code and solutions.

              When I started with MODx, I knew no PHP. Thanks to customizing PHP in existing snippets, plugins and modules. I slowly
              became so good that I now can write basic PHP from my head. cool
                @hawproductions | http://mrhaw.com/

                Infograph: MODX Advanced Install in 7 steps:
                http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
                • 10842
                • 6 Posts
                Quote from: mrhaw at Feb 07, 2010, 10:00 AM

                MODx rocks because it lets you control the html output 100%!

                There is existing add-ons for most stuff. This forum and community
                loves to help you mangle code and solutions.

                When I started with MODx, I knew no PHP. Thanks to customizing PHP in existing snippets, plugins and modules. I slowly
                became so good that I now can write basic PHP from my head. cool

                Thanks mrhaw,

                I needed to hear that, along with an afternoon of focusing on modx I am feeling more confident with the whole thing.

                I know once I get going there will be no stopping me wink Though I feel modx is a great journey with many lessons to learn along the way. I have learn’t the first and probably the most important one - If I get totally stuck, hit the forums and the community like you said.

                Cheers for the advice.
                  • 3749
                  • 24,544 Posts
                  Many of us were not fluent in PHP when we started with MODx.

                  Welcome aboard. smiley
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting