rawkinrich Posted December 15, 2008 Share Posted December 15, 2008 Hi allWhen adding images to products on my PC I have no problem - however my colleague seems to have issues on his PC periodically when uploading them. Quite often when he tries adding a photo, the page tries to load then basically gets stuck. I then check to see if the image has been uploaded it the admin section but the image is dead. Some images are fine but others refuse to go up.The images are fine as I don't seem to have any problems. Is there any known fixes for this?Many thanks Link to comment Share on other sites More sharing options...
Guest Posted December 15, 2008 Share Posted December 15, 2008 Try to increase ( max_execution_time ) from your php setting Link to comment Share on other sites More sharing options...
rawkinrich Posted December 15, 2008 Author Share Posted December 15, 2008 Is this a common problem with the image upload? I'd like to know if this is confirmed as I don't want to ask my host too much Thank you Link to comment Share on other sites More sharing options...
rawkinrich Posted December 15, 2008 Author Share Posted December 15, 2008 Does anyone have anymore views on this problem?Richard Link to comment Share on other sites More sharing options...
ramblingrose Posted December 16, 2008 Share Posted December 16, 2008 My image upload problems were solved when I added to my .htaccess file php_value memory_limit 32M Some hosts/installations have it still set at 8 Mb. which is definitely not enough to run Prestashop.Just as the above mentioned you might check this. Link to comment Share on other sites More sharing options...
rawkinrich Posted December 16, 2008 Author Share Posted December 16, 2008 Thank you mate I will give this a try.Richard Link to comment Share on other sites More sharing options...
rawkinrich Posted December 17, 2008 Author Share Posted December 17, 2008 Hi wheeloftimeI added php_value memory_limit 32M to the .htaccess and then I got a 500 server error.. Any other ideas?Richard Link to comment Share on other sites More sharing options...
ramblingrose Posted December 17, 2008 Share Posted December 17, 2008 Hi Richard,What else is in your htaccess file and have you given it 777 access rights (the given addition by itself shouldn't raise a 500 exception) ?Grt,Howard Link to comment Share on other sites More sharing options...
rawkinrich Posted December 17, 2008 Author Share Posted December 17, 2008 Hi,The file wasn't 777, but I have just changed it now and still a server error page comes up. The contents are;# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.phpRichard Link to comment Share on other sites More sharing options...
ramblingrose Posted December 17, 2008 Share Posted December 17, 2008 Comment out the Rewrite rules and try again, with some hosts it is not allowed. # RewriteEngine on # RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.)$ product.php?id_product=$1$3 [L,E] # RewriteRule ^([0-9]+)\-([a-zA-Z0-9-])(.)$ category.php?id_category=$1 [QSA,L,E] # RewriteRule ^([0-9]+)__([a-zA-Z0-9-])(.)$ supplier.php?id_supplier=$1$3 [QSA,L,E] # RewriteRule ^([0-9]+)_([a-zA-Z0-9-])(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E] Link to comment Share on other sites More sharing options...
rawkinrich Posted December 17, 2008 Author Share Posted December 17, 2008 Ok I have tried this and still the same problem; # URL rewriting module activation #RewriteEngine on # URL rewriting rules #RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E] #RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E] #RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E] #RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E] # Catch 404 errors #ErrorDocument 404 /404.php php_value memory_limit 32M I have email my host who has done this; have increases the max_execution_time and max_input_time for your domain name "DudhillsKaraoke.com" but again he seems to have the same problem.Richard Link to comment Share on other sites More sharing options...
ramblingrose Posted December 17, 2008 Share Posted December 17, 2008 Your frontoffice seems to be working okay and the URL rewrites are on if I am correct ? Problem solved as for the 500 error ?! Link to comment Share on other sites More sharing options...
rawkinrich Posted December 18, 2008 Author Share Posted December 18, 2008 Hi,When adding php_value memory_limit 32M it gives the 500 store error - everything else is fine. Also my host has increased the memory limit. So confusing! It must be down my friends PC, but what can be stopping him?Richard Link to comment Share on other sites More sharing options...
rawkinrich Posted January 2, 2009 Author Share Posted January 2, 2009 Hi allI've just tried to upload an image that both me and my friend are both having trouble uploading and checked my error log. Here it is (the stars are my IP); *.*.*.* - - [02/Jan/2009:09:16:31 +0000] "POST /myadmin/index.php?tab=AdminCatalog&id_product=133&token=1950289469ea08a9839479465fde4cc0 HTTP/1.1" 500 6733 "http://www.dudhillskaraoke.com/myadmin/index.php?tab=AdminCatalog&id_product=133&id_category=11&addproduct&conf;=4&tabs=1&token=1950289469ea08a9839479465fde4cc0" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5" I tried another test image which uploaded fine and got this; *.*.*.* - - [02/Jan/2009:09:18:59 +0000] "GET /img/p/133-245-small.jpg HTTP/1.1" 404 16774 "http://www.dudhillskaraoke.com/myadmin/index.php?tab=AdminCatalog&id_product=133&id_category=11&addproduct&conf;=4&tabs=1&token=1950289469ea08a9839479465fde4cc0" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5" As you can see they are both different. Can anyone see whats wrong?Thanks allRichard Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now