4 replies
Apologies if this is the wrong forum, but i didn't know where to get help.

I was trying to access a paid membership site where i get this:

Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 19456 bytes) in /home/imwithja/public_html/members2/includes/loggedIn.php on line 49


I tried to find a solution on google where people say that i just need to change the numbers in some php.ini text document. Or create a new php.ini doc and put it in some folder. I have no fricken clue where to put that doc or where to look for it.

Can you guys please help me resolve this ? What should I do?

regards,
Pavel
#apologies #forum #wrong
  • Profile picture of the author ussher
    What they are telling you to do is to change the server settings to allow the script to have access to more memory.

    If you dont know what php.ini is, there is a high probability that you don't have access to it.

    Most shared hosting environments that i have used don't give access to that because it is a shared resource that everyone wants to use.

    Best idea is to ask your hosting company if they can extend your memory allocation.

    They will probably try to sell you a larger plan.

    The other solution is to try to reduce the memory usage of the script by changing the way it is programmed.
    Signature

    "Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."

    - jamroom.net
    Download Jamroom free: Download
    {{ DiscussionBoard.errors[5307003].message }}
    • Profile picture of the author Sajjann
      thank you for the help. The tech support says that they are having difficulties with their website. So I guess I have to wait before I can access it.


      Once again I appreciate the help.

      regards,
      Pavel
      {{ DiscussionBoard.errors[5308747].message }}
  • Profile picture of the author 2WDHost
    Pavel,

    It could be that your host allows to override php.ini settings by putting php.ini file with custom settings into the folder from which the script is executing.

    Try to do the following:
    1. Create an empty php.ini file in folder where your script is located.
    2. Put this line into that file:
    Code:
    memory_limit = 32M
    3. Save the file

    Check if error is still there. If yes, then you can try to override php.ini memory_limit settings using .htaccess file or ini_set directive.
    {{ DiscussionBoard.errors[5309188].message }}
    • Profile picture of the author Sajjann
      Thank you guys for the help.

      By following your instructions and playing around a little, I managed to solve the problem

      I greatly appreciate the help you guys!

      regards,
      Pavel
      {{ DiscussionBoard.errors[5310821].message }}

Trending Topics