views:

63

answers:

2

I'm having a problems uploading images and keep getting the same error message.

I've googled the issues and have found some "fixes" but they don't seem to be doing anything.

I've tried adding a custom php.ini file Adding ini_set('memory_limit' ... in the file that throws the error

The site is being hosted by Netfirm (which has been painfully slow!) does any one know how I could go about fixing this error?

Thanks

I still haven't had any luck getting this resolved. I've edited the wp-config, and php.ini file with not luck.

And every time I try to increase the memory but using the .htaccess file it shows this error.

Error in /mnt/w0239/d41/s37/b0325e92/www/DOMAINNAME/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration

Any thought on what might be causing the problem?

A: 

Three tricks to increase overall memory for Wordpress, which work much better than trying to allocate memory just for image uploading:

Add this line in your .htaccess file:

php_value memory_limit 128M

or this line near the top of your wp-config.php file:

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

or in an account wide php.ini, if you have one or have access to it:

memory_limit = 128M;

If those don't work, your host may simply have memory settings that can't be overridden. Might have to find a new host. In the Wordpress forums, people complain about Netfirms being slow and not fully supporting permalinks.

songdogtech
Hi Songdogtech - I've already tried the wp-config.php and the php.ini file with no luck.Everytime I try the .htaccess file I get this error from the site - Error in /mnt/w0239/d41/s37/b0325e92/www/DOMAIN NAME/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configurationThoughts?
Adam
Try the memory bump line for wp-config instead. Some hosts have restrictions on what can go in .htaccess, and if you're on a Windows server, .htaccess might not be fully supported, anyway.
songdogtech
I've tried the wp-config with no luck. Any other thoughts?
Adam
Find a new host. Netfirms must have memory locked down. They have a rep of having problems, anyway. It's not that big of a deal to move hosts.
songdogtech
A: 

Hi Adam,

I work at Netfirms and would like to fix your problem. Can you post the URL thats throwing this error.

DeBugger
Thanks for the offer site's url is http://devonmartene.ca - (site not 100% done) Let me know if you find anything.
Adam
DeBugger I actually have another Clients site with wordpress that is hosted by Netfirms. I just it uploaded yesterday, and just tried the image uploader now and I'm getting the same error. So it would be very useful if you could figure out the problem. :)
Adam