WordPress.org

Ready to get started?Download WordPress

Forums

WP Retina 2x
[resolved] Dashboard stuck on Please Wait (15 posts)

  1. egaertner
    Member
    Posted 1 year ago #

    When I click generate on any items in the dashboard, it is getting stuck on "Please Wait..."

    WP Retina 1.0, WP 3.5.1, PHP 5.2 or 5.4 (tried both).

    Using debug messages I traced where the issue is coming from, seems to be in the media.php function wp_get_image_editor().

    It seems like $editor is a corrupted variable (if that is such a thing in PHP?). After it is instantiated, if I try to wr2x_log("$editor"); that line seems to hang as I can't print anything directly after it either.

    Example 1:

    if ( empty ($editor) ) { *THIS WON'T EXECUTE }
    *BUT A WR2X_LOG HERE WILL WORK*

    Example 2:

    if ( ! empty ($editor) ) {* THIS WON'T EXECUTE }
    *AND A WR2X_LOG HERE WON'T WORK EITHER*

    Here is a snippet of the wp_get_image_editor() function with my comments of where it hangs:

    if ( $implementation ) {
    **CAN PRINT DEBUG HERE**
    		$editor = new $implementation( $path );
    ** CAN PRINT DEBUG HERE**
    		$loaded = $editor->load();
    ** NEVER REACHES HERE TO PRINT DEBUG**
    		if ( is_wp_error( $loaded ) )
    			return $loaded;
    
    		return $editor;
    	}

    http://wordpress.org/extend/plugins/wp-retina-2x/

  2. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    Which line is it "breaking" in the plugin code though? Because the lines you're pointing at are from WordPress core code.

    Also, I think you might run out of memory. Can you try what I wrote in the FAQ? ("When re-uploading, WordPress stops responding")

  3. egaertner
    Member
    Posted 1 year ago #

    It gets stuck at this line in wr2x_vt_resize.php

    $image = wp_get_image_editor( $file_path );

    I tried increasing the memory allocation (and confirming it was set via phpinfo() ), no change. Also, I have all plugins disabled except this one.

    My web host is 1&1, I would not be shocked if it was due to some limitation they were imposing :/

  4. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    Is the image in $file_path insanely huge or something? wp_get_image_editor is an internal function of WordPress.

    Can you check the PHP error logs? There must be something there, I am pretty sure!

  5. egaertner
    Member
    Posted 1 year ago #

    Not really, all of my images fail, they are all 2-3MB. I've been trying to find the PHP error logs but it doesn't look like my host exposes them. Tried a few PHP hacks to redirect errors to a log file, but nothing of interest is coming up there. Do get some warnings so I know the reporting is working.

  6. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    Did you try the WP_DEBUG option? That might give you more details on the errors. Try that.

    Then don't try to debug, you will end-up spending a lot for time maybe for no results. Ask 1&1 where you can find those PHP logs, they will give them to you, they have no reason to hide them :)

  7. egaertner
    Member
    Posted 1 year ago #

    Yea, WP_DEBUG is enabled, no output from that. Let me see what 1&1 says, I have asked them for the logs. Thanks for the support.

  8. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    Okay, please keep me updated :) Thank you!

  9. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    Still no news?

  10. egaertner
    Member
    Posted 1 year ago #

    Sadly not. They are ignoring my requests for logs or providing any useful information. They said I need to call their support phone number for further assistance (what kind of web company can't use email???). I'm leaving on vacation tomorrow, going to try to call before then.

  11. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    This is totally a lack of respect... They can't ask you that, all the others provide awesome support by email already. You should probably change your hosting service... they are so many cheap good ones now!

  12. sunriseweb
    Member
    Posted 1 year ago #

    I had a similar problem with 1and1 and wp_get_image_editor failing when resizing/generating images. I was able to get things to work by using smaller images to start with (1024x768), so less resources were required for wp_get_image_editor to get the job done. Not sure if this is an option for WP Retina 2x as you probably need high-res images to start from. In that case try another hosting company (as already suggested) - I like HostGator.

  13. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    I am using HostGator, it's really cheap but it works. Cloudweb is also fine.

  14. egaertner
    Member
    Posted 1 year ago #

    Thanks for the tips guys. I ended up signing up for HostGator and migrating my files and DB over. WP Retina 2X is working flawlessly now at all sizes (limited testing, but samples that didn't work before).

  15. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    It's not the fastest hosting (server-performance-wise) but they usually a good job and the bandwidth is good.

    I am glad to know it works :) Let me know if I can help. Also, when you have time, can you make a little review? Always looking for more reviews, they are always very hard to get :p (http://wordpress.org/support/view/plugin-reviews/wp-retina-2x)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.