divinenephron
Forum Replies Created
-
My install of Latex Everything has mysteriously started working again, and I can’t identify anything I’ve done to make it do so, so I’m afraid I can’t reproduce your problem.
If you’ve move on and don’t care about fixing the problem, that’s fine – it’s less work for me as well
:)
. If you’d still like to fix it enable debugging in WordPress by adding the following towp-config.php
:define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
Try to generate a PDF again, and tell me if any errors appear in
wp-content/debug.log
.In fact, I can guarantee you that I cannot fix it until after the 17th of March 2012 (11 days from now). I’ll figure out what’s wrong after that though.
I’ve tested the creation of PDFs with WordPress 3.3.1, and I indeed can’t get the PDFs to be created. It’s well broken. I haven’t got time right now to fix it though – I’ll post here when I get around to it.
Is the problem that the PDF isn’t being attached to the post, or that a link to the PDF isn’t being inserted into the post.
You can tell whether the PDF of a single post been attached to the post in question by going to
Media->Library
in the admin section and looking at the “Attached to” column. You should see that a PDF with a titles such as “My First Post” will be attached to the post “My First Post”. PDFs for categories, tags, taxonomies and posts types won’t be attached to anything. Tell me if this isn’t working, because it should be.If the problem is that a link to the PDF isn’t being inserted into the post, have you made sure you’ve added code for the link into the theme? This can be found in the plugin’s FAQ. For example, here’s the code you should put in The Loop.
<?php if( function_exists('get_latex_url') && $latex_url = get_latex_url( 'single_post', get_the_ID() ) ): ?> <a href="<?php echo $latex_url ?>">PDF</a> <?php endif; // get_latex_permalink ?>
If you have put some code like this in, and you’re still not getting a link to the PDF, could you tell me exactly what you have written, and what result it produces?
Forum: Plugins
In reply to: [Latex Everything] [Plugin: Latex Everything] No PDFs generated?First, verify that PDFs are being generated for the posts concerned. Go to
Media->Library
in the admin section and look for a PDF that is attached to the post/page of concern. Check that it has aFile URL
and that you can visit it.Next, verify that the ID you’re providing to the function also exists by adding a temporary comment near to your link:
<!-- ID: <?php echo get_the_ID() ?> -->
Do both of these exist?
Sure, but I’ll be a bit of a hack.
Add the following to
[your wordpress directory]/wp-config.php
.define('WP_DEBUG', true);
This will, among other things, stop the plugin from deleting its temporary files.
Re-save a post in the category you’re concerned about in order to re-generate the category’s PDF file.
You can then look in the directory
/tmp/le-[random characters]
for the temporary files (the path will be different if you’re not on unix). If you find you have millions of these directories, delete them and repeat the above step, so that you only have to look in the newest directories.Make sure you turn off
WP_DEBUG
when you’re finished.Hi CJC,
Go to
Setting->Reading
and check theSingle Categories
item to generate PDFs of each category. If you want to generate links to a category’s PDF, use this code from theREADME
:<?php the_latex_url( 'term', $category_ID, 'category' ) ?>
(Make sure
$category_ID
is the category ID you want of course.)The Latex Everything plugin is dependant on a program called
pdflatex
being installed on the computer WordPress is being run on. You can check whether you do havepdflatex
by running the commandwhich pdflatex
in a terminal. Ifpdflatex
is installed, it’ll echo something like/usr/texbin/pdflatex
. Ifpdflatex
isn’t installed, it won’t return anything.You can get
pdflatex
at https://www.latex-project.org/ftp.html. You should also check you have the plugin’s other dependancy,pdftk
: https://www.pdflabs.com/docs/install-pdftk/.Forum: Plugins
In reply to: [Picasa Photo Embed] [Plugin: Picasa Photo Embed] BrokenI apologise if the plugin has caused your WordPress install to break. I tested the plugin on the latest WordPress 3.1 release and I didn’t have this problem. I also think it implausible that the plugin could cause this problem – I really doesn’t do anything to the login screen or any other part of the WordPress admin interface.
Can I suggest having another go at installing the plugin, or try another plugin, such as the embed.ly plugin (https://www.ads-software.com/extend/plugins/embedly/)
Forum: Plugins
In reply to: [Picasa Photo Embed] [Plugin: Picasa Photo Embed] Photo sizing issueI modified the plugin so that the picture you mentioned above works. It’s been committed to the plugin repository as version 1.5.0, so either wait for your WordPress install to ask you to update it, or download it yourself (https://www.ads-software.com/extend/plugins/picasa-picture-embed/).
If you’re interested in why, the regular expression that changed the size of the image didn’t accept urls with dashes (-) in, so your picture wasn’t resize.
Forum: Plugins
In reply to: [Picasa Photo Embed] [Plugin: Picasa Photo Embed] Photo sizing issueWould you be able to provide:
- A link to the site you’re on.
- What you typed into wordpress in an attempt to make the images appeared
- Links to some of the images that you’re embedding (the failed and successful ones).
I should be able to figure out what’s wrong from that.
Forum: Plugins
In reply to: [Picasa Photo Embed] [Plugin: Picasa Photo Embed] Fatal error with V3.0Sorry about that. In version 1.2.0 I thought I’d be clever and try removing the bits of the Zend GData library that I didn’t think I needed. It turns out that I do need them and I didn’t notice until version 1.4.
Version 1.4 works – you can either wait until it’s on the website or you can use the Embedly plugin which also supports Picasa embedding.
Forum: Plugins
In reply to: [Plugin: Picasa Photo Embed] A bug for usernameThanks, I’ve belatedly changed the regex to something more inclusive (in version 1.3.0 when I remember how to do version bumps).
This plugin has been made to overcome the fact that WordPress doesn’t support Picasa out of the box, so if you’re giving it a valid URL, it should work.
You’ve likely moved on since posting this, but if you’re still searching for a solution, post the url you’re trying to embed here.
Alternatively, try out the Embedly plugin, which also supports picasa.
Forum: Plugins
In reply to: [Plugin: Picasa Photo Embed] Picasa embed for BuddypressI’m not familiar with B uddypress, but the Buddypress oEmbed plugin could solve your problem.
There’s no reason why this plugin won’t work providing that Buddypress includes the oEmbed feature introduced in WordPress 2.9.