Menu

Stack Overflow

Help
ksajdak
2009-08-28
2013-05-30
  • ksajdak

    ksajdak - 2009-08-28

    Just received a "PHP has encountered a Stack overflow" message when trying to add a source.

    Any ideas?

     
    • Anonymous

      Anonymous - 2009-08-28

      Millions of ideas - thats a very general error.

      Need much more information:
      PGV version
      PHP version
      Database type and version

      What EXACTLY were you doing?
      You say "add a source" - where in PGV; what did you enter wondering about bad characters).

      Anything else that might help.

       
    • ksajdak

      ksajdak - 2009-08-28

      Using PGV 4.1.6
      PHP Version 5.2.9-2

      Database MySql 5

      I was adding a New source to a death event.
      Had a crash yesterday and had to upload a backup gedcom file.

       
    • Stephen Arnold

      Stephen Arnold - 2009-08-29

      ksajdak
      Reboot to clear your caches and memory. Usually the issue with this kind of error as it is not inherent within PGV.
      Stephen

       
    • ksajdak

      ksajdak - 2009-08-31

      Don't think that is it (rebooting) because it is happening on TWO computers separated by several thousand miles.

       
    • ksajdak

      ksajdak - 2009-08-31

      Good news is that it only "Overflows" when trying to add source info.

       
    • Stephen Arnold

      Stephen Arnold - 2009-08-31

      Lots of possible reasons with nothing to do with PGV
      Simply Good your overflow error message and read. Examples like:
      By chance are you using Windows Server with IIS (there is alot of complaint with this about stack overflow)

      This Error is NOT part of osCMax but it's your server.

      Make sure you have PHP installed as ISAPI.

      And here is the fix if you use ISAPI:

      - Make sure your IIS application protection is on high/isolated.
      - Add the ISAPI module to your ISAPI filter section.

      You may want also check your server php.ini file....

      look for "memory_limit" in there. What value does it have?

      By default it should be 8MB (which may be a bit low).

      Try increasing that to see if that fixes it.

      or

      I had the same problem.
      the solution: wrong mysql permissions and some errors at the cacti.sql file import (I used the MYSQL Administrator). With an the "Ignor Errors" at the Import it works.

      etc

       
    • ksajdak

      ksajdak - 2009-09-01

      Memory limit is set at 32 Meg.

      I don't know about the ISAPI, but the system has been on line and stable for three years.

      We have just started entering sources.

      We have discovered that the error only seems to occur when there is an obituary entered before we enter a source (eg Death Index).

      So, for this specific error, I doubt it is a setup error. (Although I continue to check out your previous advice.

       
    • ksajdak

      ksajdak - 2009-09-01

      OK, where is the PHP,INI file?

       
    • ksajdak

      ksajdak - 2009-09-01

      Adding LONG notes seems to be  the problem.
      Tried moving an 900 character Obit. It deletes fine, but cannot be added back.

       
    • ksajdak

      ksajdak - 2009-09-05

      I'm thinking I should upgrade to 4.2.2.

      Any advise given my 4.1.6 issues?

       
    • Anonymous

      Anonymous - 2009-09-05

      Upgrading to 4.2.2 is a good idea, but it won't fix your memory problem. It might even make matters worse.

      You should get your web host to increase the memory limit to at least 64mb on their side, then you can set PGVs memory to use the same.

      If they have a problem with that, then there will probably be other restrictions that even if not a problem now, may become so eventually, as your data grows.

      Also, don't forget 4.2.2's requirement for installed and enabled PDO drivers.

      Check all these things before trying to upgrade, and if any are a problem consider getting a more accommodating web host. There are plenty of good ones around (see various discussions on the Open Discussions forum), and they don't have to be expensive (although personally I believe that you "get what you pay for").

       
    • ksajdak

      ksajdak - 2009-09-06

      I don't know for sure how to talk with my host.

      What specifically do I need to ask them?

       
    • Anonymous

      Anonymous - 2009-09-06

      Regarding memory requirement - ask them to "increase the memory available to PHP to at least 64mb (128mb would be great)"

      Regarding PDO, first check for yourself what you have at present. Go to PGV's Admin page, and click on "PHP Information" On the new screen look for the section headed "PDO"

      It should say
      PDO Support - Enabled
      PDO support    enabled
      PDO drivers     mysql, sqlite

      Then the next section is "pdo_mysql" whcih shouls say:
      PDO Driver for MySQL, client library version    5.0.51

      If it doesn't say ALL of this, ask them to  " install and enable the PDO drivers for MySQL.in PHP"

       
    • ksajdak

      ksajdak - 2009-09-06

      Thanks.

      Contacted the Webhost and the upped Memory to 250M, and all seems well.

       

Log in to post a comment.