php memory size

by 5 replies
6
Hello my friends.
I have purchased My Arcade Pro plugin and install it to my website.
www.psgameonline.com

But when I try to upload games automatically I always get this error.

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 50 bytes) in /home/content/48/5927648/html/psgameonline/wp-content/plugins/myarcadeblog/myarcadeblog.php on line 491

My php.ini files shows that its memory size is 64 MB.
Is this php.ini problem? Should Iincrease it or another think?
Thanks.
#programming #memory #php #size
  • I doubt its a PHP.ini problem, could be a conflict with one of your existing plugins. Try removing or deactivating them and see if it helps.

    Bill
  • Are you sure you are looking at the right php.ini file, that is 256MB exhausted?

    Could there be more then one php.ini? Also is it a shared host and what is your max memory limit allowed?

    What it means is your wp installation plus all plugins plus the data you are moving is too big to be put into the memory at once so the advice given above still stands.

    You definitely want to contact your host support or check the docs to sort out these issues such as you max memory limit.

    To see where the active php.ini is located create a file with the contents below on your server and load it in your browser. Delete it after you view it!

    <?php echo phpinfo() ?>

    Look for the line: Loaded Configuration File

    Remember to delete it after it is no longer needed.
  • you should set memory limit before the script
  • Create a php file with this:

    PHP Code:
    <?php
    phpinfo
    ();
    ?>
    Then open this file in your browser. It will tell you which php.ini is actually being used. Increase the PHP memory limit there.
    • [1] reply
    • Thanks for replies my friend.
      My php memory limit is 64 mb and I have contacted with mt hosting company.
      Thanks you very much.
  • Banned
    [DELETED]

Next Topics on Trending Feed