Crashes when no excerpt is entered
-
Hi,
I hit a problem with this plugin, but as it looks so nice, I dig into it and I have some kind of workaround. I would like to discuss a proper fix, so here are the information:
I’ve been trying the plugin on our site (13 years (!) old installation with several major upgrades, 500+ posts, 100+ users, 40 plugins) and it caused a server segfault when a page or post with a map was opened. It turned out that the problem is caused by
get_the_excerpt(...)
call on that line: https://plugins.trac.www.ads-software.com/browser/travelers-map/trunk/includes/public/cttm-shortcode.php#L254I quite blindly changed it to this line:
$cttm_postdatas['excerpt'] = has_excerpt($cttm_post->ID) ? get_the_excerpt($cttm_post->ID) : '';
and it started to work like a charm.I checked the geolocated posts and there was no excerpt entered. I entered excerpts, reverted my workaround and the map started to work.
Do you think that configuration or data on our site are somehow buggy? Or is the call to
get_the_excerpt()
somehow wrong (there are some caveats mentioned in the discussion in manual)? I’d be happy to test more things if you have some idea.Thanks,
Tomas
- The topic ‘Crashes when no excerpt is entered’ is closed to new replies.