• Resolved gdsaxton

    (@gdsaxton)


    Hi,

    I’ve tried many things from the docs but can’t seem to get anything to work. I have two .bib files updloaded into wp-content/papercite-data/bib but when I try using the shortcodes in a post or a page I get blank posts. For instance, in one post I have:

    [bibtex file=test.bib]

    Here is one reference [bibcite key=Thackeray2013] and

    This will create an empty post.

    I have also tried entering this in a post:

    [bibtex file=https://www.citeulike.org/bibtex/user/gregorydsaxton]

    Still nothing. I am new to WordPress but have gotten teachpress to work. Am I missing something basic here?

    Thanks in advance.

    https://www.ads-software.com/plugins/papercite/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter gdsaxton

    (@gdsaxton)

    Is this simply a compatibility issue? I just noticed that papercite is only compatible up to 3.6.

    Plugin Author bpiwowar

    (@bpiwowar)

    No, it should work. If you could enable wordpress debug, and send me the messages, it would be helpful to resolve this problem – see how to use WP_DEBUG in

    https://codex.www.ads-software.com/Debugging_in_WordPress

    For the wordpress version, I have a website running with the latest version of WordPress and there is no problem with this plugin.

    Thread Starter gdsaxton

    (@gdsaxton)

    Hi,

    Thanks for the quick reply. Based on the debugging, I think there may have been some compatibility issues or some other problem with other plugins I had installed. I deactivated all of them and then reactivated papercite–that fixed the problem. When I then also reactivated the plugin teachpress, it returned this error:

    Fatal error: Cannot redeclare class PARSECREATORS in /home/gdsaxton/webapps/cybermetrics/wp-content/plugins/papercite/lib/PARSECREATORS.php on line 23

    I’m also sometimes getting this error:

    Notice: Trying to get property of non-object in /home/gdsaxton/webapps/cybermetrics/wp-includes/post-template.php on line 29

    So, it is working but I likely have some other problems with the site. I am just testing out a variety of different plugins and themes now in preparation for going live. I guess some things aren’t playing nicely together? In any case, I appreciate your looking at it. Thanks.

    Plugin Author bpiwowar

    (@bpiwowar)

    OK, thanks – I guess the problem is that teachpress is using the OSBib parser too. I opened a bug report on github so you can track this bug:
    https://github.com/bpiwowar/papercite/issues/79

    Plugin Author bpiwowar

    (@bpiwowar)

    Version 0.5.7 should fix this

    Thread Starter gdsaxton

    (@gdsaxton)

    Thanks!

    Thread Starter gdsaxton

    (@gdsaxton)

    I upgraded and it seems to work now. There is still a problem with the citeulike code. When I put this in a post:

    [bibtex file=https://www.citeulike.org/bibtex/user/gregorydsaxton]

    I get this error message:

    Warning: Invalid argument supplied for foreach() in /home/gdsaxton/webapps/cybermetrics/wp-content/plugins/papercite/papercite.php on line 822

    Any ideas? Thanks again for your help with this. Much appreciated.

    Plugin Author bpiwowar

    (@bpiwowar)

    Hi, it would help if again you set the debug mode on and copy & paste the messages. Please also report to github so I can track easily the bugs:

    https://github.com/bpiwowar/papercite/issues?state=open

    (new issue button is at the top right)

    Thread Starter gdsaxton

    (@gdsaxton)

    No problem. Here are all the messages that show up when I include the citeulike bib in a post: [bibtex file=https://www.citeulike.org/bibtex/user/gregorydsaxton]

    Warning: Invalid argument supplied for foreach() in /home/gdsaxton/webapps/cybermetrics/wp-content/plugins/papercite/papercite.php on line 822

    Warning: Invalid argument supplied for foreach() in /home/gdsaxton/webapps/cybermetrics/wp-content/plugins/papercite/papercite.php on line 832

    Warning: Invalid argument supplied for foreach() in /home/gdsaxton/webapps/cybermetrics/wp-content/plugins/papercite/bib2tpl/bibtex_converter.php on line 259

    Warning: Invalid argument supplied for foreach() in /home/gdsaxton/webapps/cybermetrics/wp-content/plugins/papercite/bib2tpl/bibtex_converter.php on line 274

    Warning: Invalid argument supplied for foreach() in /home/gdsaxton/webapps/cybermetrics/wp-content/plugins/papercite/bib2tpl/bibtex_converter.php on line 511

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Nothing works’ is closed to new replies.