We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    Hey everything went ok with the install, I think I have the permissions set, but I’m getting these errors, which I have abbriviated here by removing part of the string and adding .. :
    ----------------------------
    Warning: Cannot modify header information - headers already sent by (output started at D:\..\manager\includes\config.inc.php:1) in D:\..\modx921\manager\Index.php on line 144

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at D:\..\modx921\manager\includes\config.inc.php:1) in D:\..\httpdocs\modx921\manager\includes\config.inc.php on line 38

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at D:\..\modx921\manager\includes\config.inc.php:1) in D:\..\httpdocs\modx921\manager\includes\config.inc.php on line 38
    ----------------------------
    Mean anything?
    The errors show up at the top of the page, the manager page does show up still.
    I’m behind a corporate firewall here, that could be messing things up?
    If I go ahead and fill in the user name password, it goes to the next page and shows these errors:
    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at D:..modx921\manager\includes\config.inc.php:1) in D:..modx921\manager\includes\config.inc.php on line 38

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at D:..modx921\manager\includes\config.inc.php:1) in D:\..modx921\manager\includes\config.inc.php on line 38

    Warning: Cannot modify header information - headers already sent by (output started at D:..modx921\manager\includes\config.inc.php:1) in D:..modx921\manager\processors\login.processor.php on line 249

    Warning: Cannot modify header information - headers already sent by (output started at D:..modx921\manager\includes\config.inc.php:1) in D:..modx921\manager\processors\login.processor.php on line 272

    -----------------------------------------------------------
    Entering the wrong username or password does indeed popup the box telling the same, so that’s good, but still shows errors at the top of the page, that’s bad.
    Any suggestions or help would be appreciated.
    • You just don’t give up on IIS do you? tongue

      lol
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • Once again, you need to set the session save_path variable to a proper location in the startCMSSession() function in your manager/config.inc.php file, as xwisdom has tried to explain.
          • 34162
          • 1 Posts
          I’ll see if my host knows anything about session variables in PHP, I know I don’t.
          need more info, I’d already given up on that install by that time, when maybe it was mentioned.
          thanks for any more how to...

          Do I need to change something in the function then, or it’s elsewhere something’s boggled by an amateur?
              // start cms session
              if(!function_exists('startCMSSession')) {
                  function startCMSSession(){
                      global $site_sessionname;
                      session_name($site_sessionname);   
                      session_start();
                  }
              }

          It could be the firewall here that’s giving me fits too, that can’t be ruled out just yet, I’ll know when I get home, but still.
          • You could check the PHP documentation, and please do so in the future (it’s quite easy to find answers like this there), but basically you add one line before the session_start() call...

            session_save_path('path/to/writable/directory');
              • 34162
              • 1 Posts
              Quote from: OpenGeek at May 23, 2006, 11:53 PM

              You could check the PHP documentation....
              Have you got a general link for wherever you’re talking about looking up PHP documentation then?
              thanks. Maybe I should have checked W3schools random googling didn’t find many answers.
              I don’t have an up-to-date selection of php general links at all.

              The one Ajax CMS.
              • http://php.net/manual/en/index.php (it will automatically redirect you to the mirror nearest you).

                Also http://www.zend.com/manual/, although the user comments at php.net are often even more useful than the manual entries themselves.

                A Google search of "php sessions" puts the PHP manual first on the list, this is usually the result I get when Googling for a function or feature.

                  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
                  • 34162
                  • 1 Posts
                  Currently I’ve mucked up some of the general details, not to worry.
                  Question about the session save path line to add to the config file, thanks to openGeek.
                  session_save_path(’path/to/writable/directory’);

                  I know the physical drive path and all the details of the path right down to the modx921 folder in my web root, but...

                  My install is in a folder called /modx921 do i need to create a directory with write permissions for the session save, or is there a specific folder already in the installation files that I should use and make sure it is writable?

                  So far I’ve got the three folder’s specified in the installation pages as writeable that’s all.
                  Assets/images, assets/cache, forget the third but have it set to go.
                  thanks yo.

                  • You will need to create a folder and make sure it is writable. If possible, put the session_save folder above your public_html or www or whatever folder actually holds your HTML (or .php) files. That way it’s safe from hackers entering through your website.

                    For example, if you have /home/myuser/public_html, put the folder in /home/myuser/sessions. Many shared hosting configurations won’t allow php scripts to write outside the actual webspace (public_html) so you may not be able to do this.
                      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
                      • 34162
                      • 1 Posts
                      Quote from: rthrash at May 23, 2006, 08:28 PM

                      You just don’t give up on IIS do you? tongue ...lol

                      My host sent this today:
                      "I did verify that the server is using a single PHP.INI file. On the server I have verified that the session save path is writing to a directory to which all accounts have read/write/modify. The error you are getting is indicating that information is being written prior to when expected."

                      I tried it again removing the session save path line of code, still error’s, I’m wondering if the sessions save line needed altered elsewhere.

                      Still can’t get the sessions working correctly.
                      The error’s I have now are maybe about the same still...
                      Warning: Cannot modify header information - headers already sent by (output started at ...\httpdocs\modx921\manager\includes\config.inc.php:1) in ...\httpdocs\modx921\manager\Index.php on line 144
                      
                      Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at ...\modx921\manager\includes\config.inc.php:1) in ...\httpdocs\modx921\manager\includes\config.inc.php on line 41
                      


                      If anybody has any ideas, I’d be greatful.
                      Sorry again for being a bother. If the hosting company can figure it out, I’ll be back with the news.
                      in limbo
                      t
                      PS: I setup a folder called sessions in a folder above the webspace, maybe the location is a problem, the host suggested the location though, so it shouldn’t be.