• Resolved kzipp

    (@kzipp)


    I use PTE on mostly every one of my sites. One that I am working on has a buddypress install as well.

    When disabling BuddyPress, PTE works fine. When Buddypress is active I get a page like https://awesomescreenshot.com/0871set3c8 where everything is displayed except the actual loading of the large image and the cropping.

    The install is very dirty, so it’s possible some settings are wrong on my end. I will try installing buddypress on another site that has PTE working, just wanted to see if there were any known issues or others with the same issue.

    Also, I am getting no console log errors or anything.

    https://www.ads-software.com/plugins/post-thumbnail-editor/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author sewpafly

    (@sewpafly)

    Are there any messages in the javascript console? I’ve seen similar behavior before, but the cause is usually because pte tries to load before the content is ready. What happens if you press f5 when this happens?

    Thread Starter kzipp

    (@kzipp)

    There are no Javascript console messages.

    f5/refreshing doesn’t change anything.

    I did also add buddypress to another site running PTE jsut to test, and it worked fine, which means it isn’t 100% buddypress, but really really strange.

    I tested for about an hour doing the following:
    Removing all other buddypress related plugins – No luck
    Updating all settings on newly installed site to match old one – Still works on new one.

    It’s REALLY weird, especially since there is no error. I am definitely looking to get it resolved, so if you have any ideas please let me know and I can try them.

    Plugin Author sewpafly

    (@sewpafly)

    I have a couple suggestions:

    1. Enable debugging in Settings → Post Thumbnail Editor. See if any useful messages appear…
    2. Using the network tab of the chrome debugger, there should be a file downloaded that resembles this: admin-ajax.php?action=pte_imgedit_preview&_ajax_nonce=5c6ec358f9&postid=<PICID>&rand=30231. Try loading this in a separate tab and tell me what happens…
    Thread Starter kzipp

    (@kzipp)

    1. No messages when enabling the debugger.
    2. I actually see 2 of those URLs, one as a text/html Type and one as an image/jpeg type, with different Initiators. They do however lead to the exact same url. I opened them both just in case, and it is the same result of a broken image icon.
    Plugin Author sewpafly

    (@sewpafly)

    okay, i have seen this problem before, it’s the result of a plugin or theme having an extra line after the closing ?>. It’s probably in a buddy press file on the old system, but not on the new one.

    OR in case I’m completely wrong, try changing this function in post-thumbnail-editor.php from:

    function pte_wp_ajax_imgedit_preview_wrapper(){
    	require_once( PTE_PLUGINPATH . "php/overwrite_imgedit_preview.php" );
    	pte_wp_ajax_imgedit_preview();
    }

    to:

    function pte_wp_ajax_imgedit_preview_wrapper(){
    	require_once( PTE_PLUGINPATH . "php/overwrite_imgedit_preview.php" );
    	print("HERE");
    	pte_wp_ajax_imgedit_preview();
    }

    When you load this in the separate tab, you should now see some text saying, “HERE”.

    Thread Starter kzipp

    (@kzipp)

    I actually came across that post and checked my functions as well, but didn’t think about checking BuddyPress at the time.

    Another option is we have some template files that overwrite the BuddyPress template. This issue is most likely here as I originally said this code is kind of sloppy. I will test these templates out one by one later today and see if that fixes it.

    When I update the php file as you mentioned, I still get the broken image icon. I then took it one step further and commented out the last line of pte_wp_ajax_imgedit_preview, and I received HERE0.

    Thread Starter kzipp

    (@kzipp)

    Got it!!

    It was the empty line issue, and it was happening on my bp-custom.php file which is similar to functions.php but for BuddyPress.

    Thanks for the help, as well as the plugin.

    Plugin Author sewpafly

    (@sewpafly)

    Awesome! Thanks for updating.

    Hey kzipp — how did you narrow it down to the buddypress file? I’m having the same issue but I do not have a bp-custom.php file

    Plugin Author sewpafly

    (@sewpafly)

    taxgirlsrh, a good place to look is in your theme’s functions.php, keep in mind that it can be in any (enabled) plugins or themes .php files. Normally, i have people disable plugins or change their theme to help narrow down where it could be.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Editor Breaks with Buddypress’ is closed to new replies.