Support » Plugins » Hacks » Partial HTML rendering when editing posts related to amount of widgets

  • Resolved Ruud Laan

    (@ruudjoyo)


    Hi,
    With my latest project i have run into some seriously weird WP-admin behaviour, and it has been getting worse and worse along the way.
    The weird behaviour is the wp-admin parts not working as they should, but not with errors and such, but with partially ‘rendered’ html pages. This resulted in partially functional pages. For instance the post.php html stops somewhere in the do_action(admin_print_footer_scripts) resulting in not completing the full html and therefor a none working tinyMCE editor..
    I investigated this, put in many var_dump(); and exit; on specific places and then I did get to see the result you would aspect, but without the HTML is just incomplete. The strange thing is: sometimes it just works normally.
    These pages not working is getting worse with my growing number of widgets (now around 40), many of which are from 4 plugins. So I’m guessing it is some sort of performance issue on some level.
    I have seen this sort of behavior before, that was ultimately related to too many SQL connections being setup/used within a single request. Consequently I raised this limit from 200 to 500 on the server. This eliminated my problems on the widget admin page; which you can imagine is a total query extravaganza with over 40 widgets quering their data and dropdown lists of pages etc.
    However the partial HTML problem for just editing posts remains 🙁
    One more thing: the page itself renders very quickly, but just incomplete.
    I hope someone can help me out here, or at least give some pointers on where to look.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Ruud Laan

    (@ruudjoyo)

    the last thing i get in the HTML is the tinyMCE.addI18n stuff script:

    <script type='text/javascript'>
    tinyMCE.addI18n({nl:{ ... }
    </script>

    Could be a memory issue or a server issue similar to http://core.trac.wordpress.org/ticket/14134

    Thread Starter Ruud Laan

    (@ruudjoyo)

    Thnx esmi for your reply.
    I am not using the suhosin add-on, so that one we can rule out.
    It might be memory issues, i can check the usage on these requests. I also want to check the server error-logs etc. Funny thing is: when I log in as an ‘editor’ this partial rendering behavior happens more often then when I am an ‘admin’. Might there be some additional checking (hence queries) going on for the any role which isn’t an ‘admin’?

    Are you running any role management plugins? Does your theme have any custom options?

    Thread Starter Ruud Laan

    (@ruudjoyo)

    I’m not using any role management plugins.
    Custom options might be (?):
    5 register_nav_menus
    11 custom post type
    11 custom taxonomies
    17 sidebars
    42 widgets used in the sidebars

    Thread Starter Ruud Laan

    (@ruudjoyo)

    Finally found the solution: I made several modified plugin based on the Image Widget by plugin by Shane & Peter, Inc. http://wordpress.org/extend/plugins/image-widget/
    However, this plugin is queuing JavaScript stuff from within the widget object.. thus loading several similar script files which resulted in total admin blackout.
    I ended up with a total rewrite of the plugin code, stripping it of any (in my case) unnecessary stuff and moving all other things out of the widget object scope.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Partial HTML rendering when editing posts related to amount of widgets’ is closed to new replies.