Tagged: hostgator
-
AuthorPosts
-
December 8, 2015 at 3:53 pm #548809
Just uploaded the logo you can see in media using default theme but cannot do it with enfold. Can you download and then upload this logo using enfold?
December 9, 2015 at 6:36 am #549503I see, did you try the codes mentioned in this thread (in functions.php)?
Regards,
JosueDecember 9, 2015 at 6:39 am #549504Yes, dont know if I did right, can you check quickly based on the ftp info I gave before? Might be something I am missing…
December 9, 2015 at 6:57 am #549509Ok, i’ve added it now using a plugin, check if the upload issue persists.
December 9, 2015 at 7:11 am #549515That did it, I can upload now. Thanks Josue!
December 9, 2015 at 7:21 am #549518You are welcome, glad to help :)
Regards,
JosueFebruary 4, 2016 at 6:41 pm #577978Won’t work for me… :(
I put this code in my child version of functions.php and it give me a error message
<?php function ava_image_sizes() { remove_image_size('masonry'); remove_image_size('magazine'); remove_image_size('widget'); remove_image_size('featured'); remove_image_size('featured_large'); remove_image_size('extra_large'); remove_image_size('portfolio_small'); remove_image_size('gallery'); remove_image_size('entry_with_sidebar'); remove_image_size('entry_without_sidebar'); remove_image_size('square'); } add_action( 'after_setup_theme', 'aa_image_sizes', 11 ); ?>
Can you take a look and see by yourself please ?
By the way, i removed everything in the child version of functions.php because it crash the site.I put my credentials in private content.
Thanks a lot.
February 8, 2016 at 1:09 pm #579558Hey!
please use this code instead:
function ava_image_sizes() { add_image_size('masonry', 0, 0); add_image_size('magazine', 0, 0); add_image_size('widget', 0, 0); add_image_size('featured', 0, 0); add_image_size('featured_large', 0, 0); add_image_size('extra_large', 0, 0); add_image_size('portfolio_small', 0, 0); add_image_size('gallery', 0, 0); add_image_size('entry_with_sidebar', 0, 0); add_image_size('entry_without_sidebar', 0, 0); add_image_size('square', 0, 0); } add_action( 'after_setup_theme', 'ava_image_sizes', 11 );
Cheers!
AndyFebruary 9, 2016 at 6:40 pm #580508February 10, 2016 at 12:22 am #580665Glad you got this solved, although this is common issue it doesn’t occur to everyone because the source of it is caused by a server limitation (the server is unable to re-create the image that many sizes so we remove them with that code).
Regards,
JosueFebruary 10, 2016 at 9:29 pm #581349It’s strange that a popular theme like Enfold and a popular hosting service like GoDaddy are not compatible together.
By the way, due to the code, the thumbnail in the post list (wp-admin/edit.php) is displayed in full size.
Seems that “add_image_size(‘widget’, 0, 0);” disable the normal thumbnail size of the image.
I fix it by hiding it, but i hope it does not create another error on the site.
//remove_image_size('widget');
February 11, 2016 at 6:25 pm #581804It shouldn’t, the “fix” doesn’t require you to do remove ALL image sizes, just a few or the ones you don’t use.
Regards,
JosueMarch 3, 2016 at 7:08 pm #592816I have tried all of these PLEASE HELP!!!! I was supposed to launch this morning :(
**URGENT**
Godaddy managed wordpress server
- This reply was modified 8 years, 8 months ago by neverstar.
March 7, 2016 at 10:23 pm #594617Hi!
please also contact your host about it. Does it work for you when using a default WordPress theme?
Cheers!
AndyMarch 24, 2016 at 4:49 pm #603231Hi,
I’m having the http error issue. I’ve just updated my Enfold theme to the latest version and am still getting the error.
I noticed the code being offered in this thread and wanted to try it but I am not using a child theme. Is it still fine for me to add this code?
Would you be able to list the steps on how to add this code? Do I go to ‘appearance’ then ‘editor’?
***update*** I tried adding the code and it works! If someone could get back to me and let me know if it’s ok that I did that without using a child theme that would be great.
Thanks,
Gene- This reply was modified 8 years, 8 months ago by genealexander.
March 25, 2016 at 12:35 pm #603634Hi Gene,
So did it work on the child theme or the parent one? what code did you use and where did you place it?
Best regards,
JosueMarch 29, 2016 at 3:11 am #604212Hi Josue,
The code worked for me on the parent theme. I used the code that was offered in this thread posted by Andy (February 8, 2016 at 1:09 pm).
I went to Appearance in the WP menu and then selected ‘Editor’. From there I located the ‘Theme Functions’ file (functions.php) which was located on the right sidebar Templates menu. I opened the file and scrolled to the bottom and pasted the code and everything worked from that point.
Would you be able to comment on using Parent vs Child themes. If there is documentation you could refer me to or just give a brief comparison of why or when to use one over the other.
Thanks,
GeneMarch 29, 2016 at 11:43 am #604377Hi!
The idea of a child theme is to avoid losing custom code placed in functions.php when updating the main theme.
Regards,
JosueApril 7, 2016 at 12:29 am #609250Guys – this is a huge issue as more and more of us use Go Daddy managed wordpress… this needs to be addressed in future Enfold theme updates… please….
April 7, 2016 at 12:37 am #609253Help! I used the fix above and while it solves the upload issue, I get:
Warning: Division by zero in /home/content/p3pnexwpnas08_data02/27/2854827/html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/helper-slideshow.php on line 47
displayed at the top of my web page!
April 7, 2016 at 12:59 am #609258I went up through this thread and saw Josue’s fix for the div by zero error message… that seems to have fixed my problem but this really feels like a workaround that should be addressed in theme development. Go Daddy is the world’s largest hosting provider and the theme should be 100% compatible, with all respect.
Thank youApril 7, 2016 at 1:42 am #609263Same thing happened to me today ( WP Hosting at GoDaddy ) and I also used the code that was offered in this thread posted by Andy (February 8, 2016 at 1:09 pm). Worked like a charm!
April 8, 2016 at 6:55 pm #610364Thanks for letting me know Josue. Still learning my way around wordpress!
April 9, 2016 at 1:21 am #610471Glad to hear it worked, let us know if you need further assistance with anything theme-related :)
Cheers!
JosueApril 15, 2016 at 12:49 am #614408Josue, as I use the theme and continue to upload images and build pages, I am really missing some of the sizes that the above code removes… it seems like eliminating them is a workaround… is there a more permanent solution that allows me to use more of the photo sizes without http errors?
Thanks!
RobApril 15, 2016 at 11:32 am #614733Hi!
It’s more of a server limitation so asking your provider to increase the processes your instance can handle would be a good start, alternatively you could try removing only the image sizes you don’t use.
Cheers!
JosueApril 15, 2016 at 8:15 pm #615115Hi everyone,
The best and simple way to fix that is by adding this plugin.
https://github.com/getsource/default-to-gd
There’s some instruction on the page.It’s an old plugin but work well for me with GoDaddy WP account.
And it won’t be overwritten by next WP update. ;)
Hope will help. Will work well for me.
Cheers, ;)
P.S – It not only an Enfold/GoDaddy problem.
April 16, 2016 at 1:32 pm #615447That’s something new, thanks for sharing it @nparent.
Cheers!
JosueApril 17, 2016 at 12:46 am #615615I host with Media Temple (which IS GoDaddy, no matter how they try to spin it). I can confirm @nparent’s solution https://github.com/getsource/default-to-gd works for me.
I have over 7 man hours into this silly issue.
Am I relieved to have it working? YES.
Do I think Enfold is the best thing to happen to WordPress? YES
Should Enfold add a “Notice to GoDaddy/Media Temple hosted sites” clearly on the download page and install instructions page? YESJeff
April 17, 2016 at 1:00 am #615616I just have a concern about installing a 4-year old plug to manage all my media… one that is not updated regularly with security patches etc and one that is not available in the Word Press Plugin Library….
It really seems like Enfold should work with Go Daddy to at least give us some parameters of what to ask them to fix / change on their end… it almost seems like the uploads go faster than Go Daddy can handle and error out. If there were only a way to slow them down…
UPDATE:
I just found this discussion at WordPress support: https://wordpress.org/support/topic/media-files-cant-upload
This comment seemed relevant so i tried this fix on my staging site:
“This issue is being caused due to a restriction placed on your site by your web host. The reason why it appears with Minamaze and not other themes, is because Minamaze creates copied of each image you upload. The correct image size is then automatically used when needed to reduce page load speed time. As a result Minamaze needs longer to upload and create image copies.To fix this issue please speak to your webhost and ask them to increase the max_execution_time variable to 300 seconds. Alternatively, you can achieve this by editing your wp-config.php file for your domain. To do this please follow the steps below.
Open wp-config.php in your sites main directory via FTP (or cPanel)
Scroll to the line which reads /* That’s all, stop editing! Happy blogging. */
Add the code set_time_limit(60); above the line /* That’s all, stop editing! Happy blogging. */ text
This will override any conditions placed on your site by your host and you should now be able to upload images.”After modifying the wp-config.php file to 90 seconds (instead of 60) all pictures upload perfectly and it works like a charm!
HOWEVER – the bad news is that on the staging site this broke the functionality of the Full Screen Slider and those pages just display a big white box where the slider used to be. Feels like we are getting closer to a solution with the above if we can make sure nothing else is broken by increasing the timeout.
Can someone smarter than I am (most of you..) figure this out? (While the above support thread references a different theme, you’ll also see our beloved Enfold mentioned in the thread)
Thanks!
- This reply was modified 8 years, 7 months ago by goldengate415.
-
AuthorPosts
- The topic ‘Upload image giving http error (theme error)’ is closed to new replies.