• Resolved harpic

    (@harpic)


    Hi,

    This looks like a really nice plugin which I’d like to use to link to Bibsonomy. But when I add the shortcode:

    [bibtex file=http://bibsonomy.org/bib/user/harpic?items=1000]

    I get no entries. The bib is downloaded and in the cache, but I get no entries listed even though there should be two.

    I wonder if anyone else is having this problem with 3.5.1 ?

    Cheers

    http://wordpress.org/extend/plugins/papercite/

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

    (@bpiwowar)

    Hi,

    I just tested this and it works perfectly… Could you tell me which bibtex parser are you using (it should be OSBib, the other is deprecated)? You can set this in the options.

    Also, could you give me the PHP version of your server?

    Also, if it does not work, could you turn on wordpress debugging
    http://codex.wordpress.org/Debugging_in_WordPress
    reload the page, and send me any error that is displayed?

    many thanks

    Benjamin

    Thread Starter harpic

    (@harpic)

    It’s using OSBib and shows records in the database.

    I’m using…

    PHP Version 5.3.3

    But on reflection it looks a little old.

    I’ll switch on the debugging and post back when the sys-admin as chown’d the config to me.

    Cheers

    Plugin Author bpiwowar

    (@bpiwowar)

    Hi,

    forgot to ask – but do you use the latest version of the plugin? The previous version had troubles with remote sources.

    benjamin

    Thread Starter harpic

    (@harpic)

    Hi Benjamin,

    I have 0.4.5 of papercite.

    Cheers

    Thread Starter harpic

    (@harpic)

    The url with a test and wordpress debug is at:

    http://imgwpwel.cs.manchester.ac.uk/papercite-test/

    Any help would be appreciated.

    Plugin Author bpiwowar

    (@bpiwowar)

    thanks – I will look at that soon and try to find a solution.

    benjamin

    Plugin Author bpiwowar

    (@bpiwowar)

    Hi,

    it seems the mb_strtoupper is not available for your PHP installation. As a fast patch, you can edit the file ./bib2tpl/bib2tpl-entry.php and change

    if($firstTime)
    {
    $firstNameInitialMake = mb_strtoupper(mb_substr(trim($name), 0, 1));
    $firstTime = FALSE;
    }
    else
    $initials[] = mb_strtoupper(mb_substr(trim($name), 0, 1));…

    to

    require_once(“UTF8.php”);
    if($firstTime)
    {
    $firstNameInitialMake = UTF8::utf8_strtoupper(UTF8::utf8_substr(trim($name), 0, 1));
    $firstTime = FALSE;
    }
    else
    $initials[] = UTF8::utf8_strtoupper(UTF8::utf8_substr(trim($name), 0, 1));

    Tell me if this works well and I will include the change in the next version.

    Thanks
    Benjamin

    Thread Starter harpic

    (@harpic)

    Hi Benjamin,

    Thanks for the code.

    Now when I add it and leave in this:
    require_once(“UTF8.php”);

    I get errors thus:
    Warning: require_once(UTF8.php): failed to open stream: No such file or directory in /www/virtualHosts/img-wordpress/wel/wp-content/plugins/papercite/bib2tpl/bib2tpl-entry.php on line 322 Fatal error: require_once(): Failed opening required ‘UTF8.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /www/virtualHosts/img-wordpress/wel/wp-content/plugins/papercite/bib2tpl/bib2tpl-entry.php on line 322

    However, removing the line still gives me lots of errors and a delay and then at the end produced html thus:
    http://imgwpwel.cs.manchester.ac.uk/papercite-test/

    Plugin Author bpiwowar

    (@bpiwowar)

    Sorry, my fault: you should use

    require_once(“../lib/UTF8.php”);

    Benjamin

    Thread Starter harpic

    (@harpic)

    Thanks Benjamin, but it still can’t find the UTF8 file – does it relate to a specific version of PHP or Papercite?

    Cheers

    Plugin Author bpiwowar

    (@bpiwowar)

    To version >= 0.3.18.

    Another try with an absolute path might solve this problem then:

    require_once(dirname(__FILE__) . “/../lib/UTF8.php”);

    cheers
    benjamin

    Thread Starter harpic

    (@harpic)

    Thanks benjamin,

    this now ‘works’ ie it produces output – but in debug mode with lots of warnings. Do I need to worry about these wrt to the speed that the page is rendered once I turn off debug mode?

    Cheers

    Plugin Author bpiwowar

    (@bpiwowar)

    Hi,

    great! this will be included in the next version of papercite. Thanks for you help.

    regarding the warnings, no, you should not worry about those. I will try to fix the warnings though for the next version of papercite.

    benjamin

    Thread Starter harpic

    (@harpic)

    Now working fine thanks.
    This is great,

    and also works with bibsonomy groups thus:
    [bibtex file=http://www.bibsonomy.org/bib/group/groupname?items=1000]

    Thanks Again

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Bibsonomy BibTex Not Rendering’ is closed to new replies.