We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24629
    • 370 Posts
    Hohoho boys 'n grls,

    Merry Xmas to all of you. For those of you who like to fiddle around with your favorite CMS this holiday i have got a nice challenge.
    when calling Captcha from a snippet i get this error
    
    [2013-12-24 16:07:05] (ERROR @ /mypath/core/model/modx/modx.class.php : 1087) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:05] (ERROR @ /mypath/core/model/modx/modx.class.php : 1087) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:05] (ERROR @ /mypath/core/model/modx/modresponse.class.php : 137) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:05] (ERROR @ /mypath/core/model/modx/modresponse.class.php : 137) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:05] (ERROR @ /mypath/core/model/modx/modx.class.php : 1087) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:05] (ERROR @ /mypath/core/model/modx/modresponse.class.php : 137) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:06] (ERROR @ /mypath/core/model/modx/modresponse.class.php : 137) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:07] (ERROR @ /mypath/core/model/modx/modresponse.class.php : 137) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:07] (ERROR @ /mypath/core/model/modx/modresponse.class.php : 137) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:07] (ERROR @ /mypath/core/model/modx/modresponse.class.php : 137) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:07] (ERROR @ /mypath/core/model/modx/modresponse.class.php : 137) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:08] (ERROR @ /mypath/core/model/modx/modresponse.class.php : 137) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:08] (ERROR @ /mypath/core/components/captcha/model/captcha/veriword.class.php : 125) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:08] (ERROR @ /mypath/core/components/captcha/model/captcha/veriword.class.php : 125) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:08] (ERROR @ /mypath/core/components/captcha/model/captcha/veriword.class.php : 125) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:08] (ERROR @ /mypath/core/components/captcha/model/captcha/veriword.class.php : 125) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    
    


    Also Articles gives an permission denied when i try to create a new blogpost resulting in this error

    [2013-12-24 16:02:42] (ERROR @ /manager/index.php) Encountered empty IN condition with key usergroup
    [2013-12-24 16:02:42] (ERROR @ /manager/index.php) Error 42000 executing statement: 
    Array
    (
        [0] => 42000
        [1] => 1064
        [2] => 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 ') OR  ( `ProfileUserGroup`.`usergroup` IS NULL AND `UGProfile`.`active` = 1 )  )' at line 1
    )
    
    [2013-12-24 16:02:43] (ERROR @ /mypath/core/model/modx/modx.class.php : 1087) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:02:43] (ERROR @ /mypath/core/model/modx/modx.class.php : 1087) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:02:43] (ERROR @ /mypath/core/model/modx/modresponse.class.php : 137) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:02:43] (ERROR @ /mypath/core/model/modx/modresponse.class.php : 137) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:02:43] (ERROR @ /mypath/core/model/modx/modx.class.php : 1087) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:02:43] (ERROR @ /mypath/core/model/modx/modresponse.class.php : 137) PHP warning: Cannot modify header information - headers already sent by (output started at /mypath/config.core.php:1)
    [2013-12-24 16:07:03] (ERROR @ /manager/index.php) Encountered empty IN condition with key usergroup
    [2013-12-24 16:07:03] (ERROR @ /manager/index.php) Encountered empty IN condition with key usergroup
    [2013-12-24 16:07:03] (ERROR @ /manager/index.php) Error 42000 executing statement: 


    Obviously there is something not right with permissions, but i haven't a clue as where to start. can anyone point me in the right direction?

    modx 2.2.10pl / Articles 1.7.5

    Rdg
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Usually those "headers already sent" errors are because of some other PHP error which PHP is trying to display, in conflict with the MODx headers that were already set. Once the other critical PHP error is fixed, they will also go away.
        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
        • 24629
        • 370 Posts
        is there a way to find out what the first error is?

        tnx
        Rdg
          • 3749
          • 24,544 Posts
          You may be able to see it as part of the response in Chrome Dev. Tools (Ctrl-shift-i in Chrome). It will be very confusing raw HTML, but if you paste it into an .html file and view it in a browser, it will become clear.
            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