• Resolved Rainmaker

    (@rainmaker)


    nextGen worked perfectly until I upgraded to WP 2.7. After upgrading, all my long (over 13,000 characters, aprox 2100 words) disappear. The title and comments are displayed, but no article. If I shorten up the article, to less than about 13,000 char the article and photos are displayed.

    There is absolutely no unusual code in the article.
    All other plugins have been turned off.
    I can move the “more” tag around and determine, to the character, where it will stop functioning.

    Right now, I have nextGen deactivated and it’s killing me not having my photos displayed.

    Thanks in advance.

    running: nextGEN Gallery 1.1.0

    sample post: https://www.thejoyofaviation.com/lobster-lunch-at-portland-maine-pwm

Viewing 1 replies (of 1 total)
  • Thread Starter Rainmaker

    (@rainmaker)

    Got this response from Brusdeylins. Worked great!
    ===============
    Hi,

    this is a problem in WordPress 2.5.x and its new “ShortCodes” which are also utilized in NextGEN Gallery. Just finde the file ./wp-includes/shortcodes.php in your WordPress installation. Here look for the function get_shortcode_regex() and change the regualar expression from

    \[(‘.$tagregexp.’)\b(.*?)(?:(\/))?\](?:(.+?)\[\/\1\])?

    to

    \[(‘.$tagregexp.’)\b([^\]]*?)(\/)?\](?:(.+?)\[\/\1\])?

    This new RegEx matches the same ShortCode structure, but don’t use so much backtracking and in this case so much memory (on large posts a problem). For details see (in german):
    https://www.brusdeylins.info/wordpress/probleme-mit-shortcodes/

    Brusdeylins

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: NextGEN Gallery] Long posts disappear when nextGEN is activated’ is closed to new replies.