WordPress.org

Ready to get started?Download WordPress

Forums

AgentPress Listings
[resolved] Send To Text Editor not working (12 posts)

  1. cyrjm
    Member
    Posted 1 year ago #

    I have a fresh install of AgentPress, Genesis and your plugin and when I click on the "Send to text editor" it does nothing. On my test server it worked great...any ideas?

    Cheers,
    JC

    http://wordpress.org/extend/plugins/agentpress-listings/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    Try posting a thread at http://www.studiopress.com/forums/

  3. cyrjm
    Member
    Posted 1 year ago #

    Thanks Ron...I did, no answer yet.

  4. Koff
    Member
    Posted 1 year ago #

    Hi,

    I Found the problem.

    The win.send_to_editor is not always there.

    If you change the admin_js function on class-listing.php line: 234
    to:

    function admin_js() {
    		wp_enqueue_script( 'media-upload' );
    		wp_enqueue_script( 'accesspress-admin-js', APL_URL . 'includes/js/admin.js', array(), APL_VERSION, true );
    
    	}

    It solves the problem.

  5. cyrjm
    Member
    Posted 1 year ago #

    Hey Koff..thanks for taking the time to reply. Unfortunately, that did not work.

    On line 234 in class-listing.php I get this code:

    if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) return;
    
    	    if ( defined( 'DOING_CRON' ) && DOING_CRON ) return;

    There is nothing on line 234. The lines you are referring to are on line 463 and when I replace those lines I get this error:

    Parse error: syntax error, unexpected '}', expecting T_STRING or T_VARIABLE or '$' in /home/retailpl/public_html/wp-content/plugins/agentpress-listings/includes/class-listings.php on line 234

    I'm not a php ninja, but I can poke around enough to get me in trouble. What am I missing here? I'm sure it's super obvious??

    Cheers,
    JC

  6. Koff
    Member
    Posted 1 year ago #

    You may have an old version.

    Dowload again, and just add this line:

    wp_enqueue_script( 'media-upload' );

    on line 234 as the first line of the admin_js() function.

  7. cyrjm
    Member
    Posted 1 year ago #

    I have version 1.0.0...updated 370 days ago?!

  8. cyrjm
    Member
    Posted 1 year ago #

    Working...thanks Koff! *high five*

  9. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    I'll send a link to this thread to the person who did our testing and see if it can be reproduced/

  10. Nick the Geek
    Member
    Posted 1 year ago #

    I just tested on my AgentPress demo site with WordPress 3.5, Genesis 1.9.1, and AgentPress listings 1.0.0.

    I only have AP Listings, Backup Buddy, Gravity Forms, Genesis Slider, jQuery Lightbox For Native Galleries, Social Profiles Widget, and WordPress Manual installed on this demo site

    Everything is working correctly in my test. I place the cursor in the editor where I want the short code to show then click the "insert text" button and the short code is added.

  11. cyrjm
    Member
    Posted 1 year ago #

    It's crazy because it worked just fine on my test site a few weeks ago. All it good now!

  12. Koff
    Member
    Posted 1 year ago #

    Hi,
    I had jetpack gallery component when i saw this issue. And i got the solution from this post

    http://wordpress.org/support/topic/wordpress-35-image-insert-fails-with-send_to_editor-is-not-a-function-fixed

    Koff

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic