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
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.
thanks – I will look at that soon and try to find a solution.
benjamin
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/
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
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
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