• Resolved egaertner

    (@egaertner)


    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/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    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”)

    Thread Starter egaertner

    (@egaertner)

    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 :/

    Plugin Author Jordy Meow

    (@tigroumeow)

    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!

    Thread Starter egaertner

    (@egaertner)

    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.

    Plugin Author Jordy Meow

    (@tigroumeow)

    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 🙂

    Thread Starter egaertner

    (@egaertner)

    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.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Okay, please keep me updated 🙂 Thank you!

    Plugin Author Jordy Meow

    (@tigroumeow)

    Still no news?

    Thread Starter egaertner

    (@egaertner)

    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.

    Plugin Author Jordy Meow

    (@tigroumeow)

    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!

    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 (1024×768), 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.

    Plugin Author Jordy Meow

    (@tigroumeow)

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

    Thread Starter egaertner

    (@egaertner)

    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).

    Plugin Author Jordy Meow

    (@tigroumeow)

    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)

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Dashboard stuck on Please Wait’ is closed to new replies.