Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

php.ini Education - Some Directories Work, Others Exceed Memory

  • Jason Hill
  • Jason Hill's Avatar Topic Author
  • Offline
  • New Member
More
15 years 3 months ago #26956 by Jason Hill
I'm trying to display some galleries on a website.  Initially I got the blank pages and thanks to the advice on the forum, I had the host create a PHP.ini to increase the allowed memory.  Now, I find that the galleries in some folders display while others do not (I get the debug message that the allowable memory is exceeded.  My host said 'If you want use this limit in some subfolder, please copy php.ini file there.' 

Is my problem that I just have too large of a gallery (or galleries, in sum), or do I just need to put the php.ini in more subdirectories?  Or is there another solution?

As an example my file structure is:
subdirectoryA/gallery1
subdirectoryA/gallery2
subdirectoryA/gallery3
subdirectoryA/gallery4
subdirectoryA/gallery5

Gallery 1 through 3 display fine.  Galleries 4 and 5 give me the error that memory was exceeded.  Also, Gallery 1 is 6 times larger than galleries 4 or 5. 

Where should I have the php.ini? 

Would it solve my problem if I were to create a subdirectoryB and put some galleries there?

I have tried to search the forum and have made multiple attempts to figure it out via trial-and-error and nothing seems to be working.

Thanks a lot.

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
15 years 3 months ago #26957 by Yiota
You should better increase the allowed memory through php.ini file rather than copying it every time to each subfolder you have the problem with. How much did you increase it?

Also maybe you should just try putting smaller images inside each gallery folder/subfolder. There is no need for the images to be larger that 800x600 or 1024x768 because some screens don't fit the popup window properly to view the image.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum