Blog

Advanced Excerpt + PHP 4 problem (solved)

Immediately after the release of version 0.2.1, I was made aware of a huge problem. The plugin fails to work on PHP 4, causing a fatal error.

A quick update has been released that fixes this. The new safe release is now 0.2.2, which should be available from the WordPress plugin repository shortly.

The cause for this problem is the fact that PHP 4 can have mbstring enabled, but not support all its functions. Ironically.

By the way, this would be a good time to urge your host to update PHP. The version 4 releases are all historical now.

January 17, 2009
71 comments

Posted in:
WordPress


Comments

Worst coded plugin. never works and when it does.. the loading time of a blog takes forever.

Reply

Lou Sparx
May 14, 2010 at
6:33 pm


@ Lou: I am aware that some users are experiencing problems. The plugin is mainly for my own needs, but I sometimes choose to extend it for others. This is, however, on a completely voluntary basis. If you think something is wrong with the code, please provide some details for me to work with or, even better, a patch to solve the issue.

Bas
May 20, 2010 at
6:11 pm


I have found a quite insteresting “bug”.

I used the_advanced_excerpt twice on my homepage. First to show the most recent post and second to show the featured post. BUT the second one does show the title and the link correctly, but excerpt content is from a different post. After I put back the wordpress excerpt function, it displayed the correct content again.

Do you know about it?

Reply

Tom
June 3, 2010 at
9:35 pm


@ Tom: I am not aware of this bug. The plugin uses WordPress’ get_the_content('') function to fetch the post from ‘The Loop’ (the default way WordPress delivers posts on a page in order).
This is, in fact, the same way the default excerpt function works when fetching a post.
I’m guessing ‘The Loop’ isn’t working correctly on your parcticular website. It could be a theme problem, it could be a bug in WordPress itself or it could be a bug in my plugin.

Bas
June 3, 2010 at
10:25 pm


@Bas I was looking through google, and I found one possibility, that it could be caused via mod_cache, but couldnt find any other thing. I will look also through the theme code, if there is not a problem.

I will keep you posted, if you want.

Reply

Tom
June 3, 2010 at
11:06 pm


Hi Bas,

? for you… I have installed your plugin and the standard excerpt works great. I would, however like to make a certain excerpt longer than the others. I guess this would be considered a custom excerpt. I Have tried hardcoding the “advanced excerpt” method and for some reason it does not work. I am using version 2.9. Here is the page:

Speedtech Graphic Design Group

The post in question is the one located below the 3 column posts ( vector vs. bitmap). If you could give me ANY direction, I would GREATLY appreciate it. Thanks in advance, Jon

Reply

Jon DuVall
June 17, 2010 at
9:38 pm


@ Jon: The text you can add to any post using the Excerpt field in the post editor is what’s considered a custom excerpt. If you want a different excerpt for a certain post, you can create one there, but make sure the plugin doesn’t ignore them (you can find this option on the plugin’s settings page).
If you want to have a longer excerpt for every post that is displayed on that particular location of you site, you should use the template tag provided by the plugin in your theme.

Bas
June 17, 2010 at
9:51 pm


Hi Bas,

Thanks for the quick response. I would like to have the excerpt longer than the standard excerpt settings. Using the admin I unchecked the “No Custom Excerpts” option and I hard coded the following into my theme:

I do have other posts that are called using same template. Could this be the problem? Thanks again for your help, Jon

Reply

Jon DuVall
June 19, 2010 at
2:44 am


Sorry, Here is the code…

Reply

Jon DuVall
June 19, 2010 at
3:31 am


the_advanced_excerpt(‘length=450&use_words=1&no_custom=0′);

Reply

Jon DuVall
June 19, 2010 at
3:32 am


hi,
i like the plugin, would just like to have the featured post stay in the main index page as well. how can i do that?
thanks a lot in advance!

Reply

explorish
June 19, 2010 at
2:08 pm


Hi Bas,

I figured out what the problem was. I needed to add the text in the excerpt box on the post page itself. Thanks again for your help

Reply

Jon DuVall
June 19, 2010 at
6:10 pm



Write a reply

Your comment goes here… 




*required