WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-dTree 3.3.2] Fatal error in WP 2.5 (29 posts)

  1. sg11111
    Member
    Posted 6 years ago #

    Please upgrade it for WP 2.5.
    Fatal error: Cannot redeclare wp_dtree_load_javascripts() (previously declared in /home/username/public_html/blog/wp-content/plugins/wp-dtree-30/wp-dtree.php:113) in /home/username/public_html/blog/wp-content/plugins/wp-dtree-30/wp-dtree.php on line 121

    http://wordpress.org/extend/plugins/wp-dtree-30/

  2. callaweb
    Member
    Posted 6 years ago #

    Mine is loading fine in 2.5, but it's defaulting to the ugly blue link color which looks horrible! I've checked the settings in style.php but they're the correct gray hex colors... ?? It's not a huge issue, but it DOES look better gray. Am I missing a setting somewhere maybe?

    http://www.ez-entertainment.net/blog/

    Thanks!

  3. callaweb
    Member
    Posted 6 years ago #

    oops... never mind!!! I got it fixed! DUH! I've spent WAY too much time on this upgrade today!!!!haha

  4. slowwaydown
    Member
    Posted 6 years ago #

    It works with WP 2.5. Activate the PlugIn and then go to the settings. Enable the Scriptaculous Effects - then it works. At least for me it does... .

  5. DavieR
    Member
    Posted 6 years ago #

    It works for WP 2.5 for me too. As slowwaydown said "Enable the Scriptaculous Effects". I also had to reset the font colours.

  6. Chrisber
    Member
    Posted 6 years ago #

    I'm getting the same fatal error message trying to activate in 2.5.1

    Fatal error: Cannot redeclare wp_dtree_load_javascripts() (previously declared in /home/chrisber/public_html/wp-content/plugins/wp-dtree-30/wp-dtree.php:113) in /home/chrisber/public_html/wp-content/plugins/wp-dtree-30/wp-dtree.php on line 121

  7. ulfben
    Member
    Posted 6 years ago #

    I just wanted to let you know I'm working on bringing WP-dTree to WordPress 2.6. A beta is available now, and I'd appreciate it if you tried it out for me.

    The changelist so far:

  8. Fixed invalid XHTML output. (props: jberghem)
  9. Fixed breakage in WP 2.5, 2.6
  10. Renamed the dTree script to avoid collisions with plugins using an unmodified version.
  11. Thanks!

  • Chrisber
    Member
    Posted 6 years ago #

    ulfben: I just installed it on my site if you want to take a look. Everything seems to be working, but I do have two minor complaints. Longer post titles don't wrap, and I can't get my font styles to match using your point size selector. Is there a way to override this to get the proper style to display?

  • ulfben
    Member
    Posted 6 years ago #

    Thanks you Chrisber.

    I've just uploaded a new version. Remember to disable / enable the plugin after uploading the new one: it wont lose your settings.

    Changelog:
    Added link tree (needs testing!)
    Fixed some CSS-issues. (props: wenzlerm)

  • Chrisber
    Member
    Posted 6 years ago #

    ulfben: I love what this plugin does, but the new version has no effect on my style problem. See for yourself. Thanks!

  • ulfben
    Member
    Posted 6 years ago #

    Wrapping is a non-trivial problem - thus long post titles are truncated. You can change to white-space: normal; in style.php, but it will look like crap.

    If you figure out a safe way to apply line wrap on the nodes, please let me know.

    Fonts are set in /wp-dtree-30/style.php and the font size in the WP-dTree admin panel (eg: design->WP-dTree).

  • wenzlerm
    Member
    Posted 5 years ago #

    Hi Ulfben

    I just tested WP-dTree-3.4-beta.zip and came across a problem for parent nodes in 'Pages'.

    The parent node (below 'Node with children') does only have a url to navigate to:

    <div class="wp_dTreewp_dtree_Node">

    Über uns
    </div>

    I would suggest changing it to
    href="..." onclick"javascript:p.o(3);">Über uns

  • wenzlerm
    Member
    Posted 5 years ago #

    Hi Ulfben

    I just tested WP-dTree-3.4-beta.zip and came across a problem for parent nodes in 'Pages'.

    The parent node (below 'Node with children') does only have a url to navigate to:

    <div class="wp_dTreewp_dtree_Node">
      <a href="javascript: p.o(3);"></a>
      <a class="node" title="Node with children" href="javascript:p.o(3);">Über uns</a>
    </div>

    I would suggest changing it to

    <a class="node" title="Node with children" <strong>href</strong>="..." <strong>onclick</strong>"javascript:p.o(3);">Über uns</a>
  • wenzlerm
    Member
    Posted 5 years ago #

    Sorry Ulfben, last postings are wrong formated. To keep it short:
    It would be nice to have
    <a href="..." onclick="javascript:p.o(...)></a>
    in 'Pages' for nodes with children

  • wenzlerm
    Member
    Posted 5 years ago #

    Forget all postings above, it's already there with option 'Folders are links'

  • eiland
    Member
    Posted 5 years ago #

    Hi UlfBen!

    Great tjhat your adding the links! But I just installed it, and my categories tree and my links-list remain empty :(

    http://www.climatesceptics.org/, WP 2.5.?

    Thanks!!

  • ulfben
    Member
    Posted 5 years ago #

    Eiland - that's very wierd indeed: both tree seems healthy and are properly populated and printed in source.

    Try and disable "Open to selection", "Highlight selection" and whatever other non-standard settings you're using. Try and toggle the scriptaculous effects - play around with the settings and see if it makes any difference.

    Let me know what you find.

  • eiland
    Member
    Posted 5 years ago #

    I tried, turned a bit off, a bit on, but nothing. The Open all-Close all links did appear, but clicking them did not do anything.

    But I've been waiting for this feature for a while, so ill help you in any way i can to find the problem!

  • ulfben
    Member
    Posted 5 years ago #

    Try disabling all your other plugins to see if any of them interferes with WP-dTree.

  • eiland
    Member
    Posted 5 years ago #

    thats weird. With All Plugins deactivated, only WPdtree turned on, it still doesnt work!

  • eiland
    Member
    Posted 5 years ago #

    okay: updqraed to 2.6 - no avail - disabled and deleted plugin, and reinstalled in from scratch and voila!!

    So now a request; I would like not to end the names of the links but linebreak them when they get too long?

    after the weekend i have time to add all the links i want... jippeee!

  • ulfben
    Member
    Posted 5 years ago #

    So now a request; I would like not to end the names of the links but linebreak them when they get too long?

    Wrapping is a non-trivial problem - thus long post titles are truncated. You can change to white-space: normal; in style.php, but it will look like crap.

    If you figure out a safe way to apply line wrap on the nodes, please let me know.

  • eiland
    Member
    Posted 5 years ago #

    Hm, but the latest posts and the latest comments in the sidebar look decent? Why not use those styles?

  • ulfben
    Member
    Posted 5 years ago #

    That is actually a good idea! Please submit a patch when you're done.

  • eiland
    Member
    Posted 5 years ago #

    hm... i think that would be over my head. im already proud when i can backtrace css.

  • eiland
    Member
    Posted 5 years ago #

    im looking in the code but, i wondering where to add the google search javascript for outbound links.... And how to add a "link count" (instead of a post count?)

  • eiland
    Member
    Posted 5 years ago #

    ah :) ... and sorting categories by slug??

  • eiland
    Member
    Posted 5 years ago #

    and a bug; in categories, if "Hide empty categories" is checked, and an empty category (post-wsie) does have subcatgories with posts, the category is still being hid.

  • ulfben
    Member
    Posted 5 years ago #

    Eiland - category sorting and -hiding has been fixed in the development version. Please help me out with testing it before WP 2.7 is released.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags