We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9549
    • 93 Posts
    I’m using the hosting company One.com on some of my websites, and it doesn’t work at all. They recently upgraded their system, screwing up MaxiGallery totally. The memory limit is 12mb and i’m getting a blank page when I try to upload pictures. It works however with smaller (-500kb) pictures. But, is the only solution to switch host?
      • 3749
      • 24,544 Posts
      If there’s a php.ini file on your site and you’re able to modify it, you could change upload_max_filesize.

      upload_max_filesize = "20M" (or whatever)

      If not, it might be something your host would change for you if you sent in a support ticket.

      Bob

        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 9549
        • 93 Posts
        Thanks for your advice. Unfortunately I cannot access php.ini and they won’t change it for their customers. I have at least 3 clients using this host along with MaxiGallery and now I must figure something out...
          • 3749
          • 24,544 Posts
          Quote from: feary at Oct 03, 2007, 03:28 AM

          Thanks for your advice. Unfortunately I cannot access php.ini and they won’t change it for their customers. I have at least 3 clients using this host along with MaxiGallery and now I must figure something out...

          Do you have access CPanel (control panel)? If so, look for a php.ini in the root directory of the web site. If there is one, try downloading it with ftp, editing the upload_max_filesize = line and ftping it back up. If there isn’t one, you could try getting a generic php.ini, changing the line, and uploading it.

          Another idea is to create a file called php.ini with the single line:

          upload_max_filesize = "20M"

          and put in the assets folder. I’m not positive but I think that will change the upload size for directories below that and the php default values will still apply for other variables.

          Alternately -- dump the hosting service. If they won’t allow a change in the upload size, they probably are under-powered and/or incompetent, so it’s likely that you’ll run into other problems later. If you own the domain name, it’s not that hard to move a site to a new server and it’s definitely worth being at a good hosting service.

          Bob
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 36805
            • 354 Posts
            Quote from: BobRay at Oct 03, 2007, 11:16 AM

            Another idea is to create a file called php.ini with [...] I think that will change the upload size for directories below that and the php default values will still apply for other variables. [...]
            I don’t think so. Think about how many doors a design like this would open by rendering most security efforts useless. Overriding some .htaccess files for a directory you own and it’s subdirectories is one thing, it seems unlikely that you would be allowed to override the configuration of an Apache module like php from virtually everywhere by design.