Menu

phpfin on a Mac?

Help
Steve
2003-07-26
2003-07-27
  • Steve

    Steve - 2003-07-26

    Hi,

    I just tried to install phpfin on Mac OS X 10.2.6, MySQL  4.0.13, PHP 4.1.2 and Apache 1.3.27. Setting up the DB worked fine (manually).

    When I try to start phpfin I get:
    Warning:  Cannot send session cookie - headers already sent by (output started at /Volumes/data/Home/steve/Sites/phpfin Folder/menu.php:24) in /Volumes/data/Home/steve/Sites/phpfin Folder/menu.php on line 25

    Warning:  Cannot send session cache limiter - headers already sent (output started at /Volumes/data/Home/steve/Sites/phpfin Folder/menu.php:24) in /Volumes/data/Home/steve/Sites/phpfin Folder/menu.php on line 25
                              
    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 '' at line 155

    I checked through all the "line 155"s I could find, but found nothing. Has anyone else seen this before? (not even the generated html is 155 lines long).

    Thanks in advance,

    Steve

     
    • Philip Malan

      Philip Malan - 2003-07-27

      Hi Steve,

      The line 155 actually means 55. I don't know why, but the .__LINE__ command after the mysql_error() puts a 1 before the actual line up to 1000 lines, thereafter it is fine. So, line 155 is actually line 55.

      Your error might be because you have not enabled the session.use_cookies parameter in the php.ini file is set to 0. Change this to session.use_cookies = 1.

      If this doesn't work, move the license agreement on top of the page to the bottom making sure that there are no open lines before the <?php (ie the <?php must be on the first line). You are getting the error when php wants to start a session.

      I think the session.use_cookies = 1 in the php.ini file might do the trick. If not, please let me know and I will have a think.

      PS: Remember to set the sessiondata directory in your php.ini file to a directory where sessions can be stored.

      Regards,

      Philip

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.