THEMEHALL
  • Omega
  • Cart
  • Support
  • My Account

Increasing the memory limit in php

Home › Forums › Omega › Increasing the memory limit in php

Tagged: Memory limit

  • This topic has 4 replies, 3 voices, and was last updated 12 years, 4 months ago by DorothyBatts.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 7, 2014 at 5:31 pm #1436
    DorothyBatts
    Participant

    Hi Han,
    I have a slider installed on my site that is dragging it down and even causing it to crash altogether. But I need it, and the slider designer said that I need to increase my memory limit, which is now 64MB, to 128MB. Here’s the code he gave me:

    Change php.ini file to this:
    memory_limit = 128M

    Is that a valid point? I know something has to change, because the load speed is unacceptable the way it is. If so, can you tell me how to do that, where to find it?

    My site is http://www.jettandcompany.com

    Thanks,
    Dorothy

    January 9, 2014 at 2:16 am #1454
    han
    Keymaster

    add this into wp-config.php, this has to be put before /* That’s all, stop editing! Happy blogging. */.

    define( 'WP_MEMORY_LIMIT', '128M' );

    Note, this setting may not work if your host does not allow for increasing the PHP memory limit, please contact your hosting.

    January 20, 2014 at 4:55 pm #1566
    sekogas
    Participant

    you can change the memory limit in 3 ways:

    1.in your script: ini_set(‘memory_limit’, 16M);
    2.in php.ini: memory_limit = 2M
    3.in .htaccess: php_value memory_limit 8M;

    read more: http://newexception.com/php-increase-memory-limit

    January 22, 2014 at 4:15 pm #1580
    DorothyBatts
    Participant

    After I changed the wp-config file, I got this message when I tried to log back into the site:

    Parse error: syntax error, unexpected T_IF, expecting T_STRING or T_VARIABLE or ‘$’ in /home/content/63/7510763/html/wp-config.php on line 89

    What now?
    Thanks.

    January 22, 2014 at 4:54 pm #1581
    DorothyBatts
    Participant

    Disregard my last comment, han, it seems to work.
    Thank you.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)

You must login to reply to this topic.

Copyright © 2025 THEMEHALL.

  • Terms of Service
  • Resources
  • Blog
  • Support
css.php