Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-14548

Custom BBCode not parsed - sometimes

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.8
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      PHP Version 5.5.9, MySQL(i) 5.5.47, Cache-System: file or APC

      Description

      Sometimes our Custom BBCode "[center]

      {TEXT}[/center]" is not parsed. But only this BBCode, all other (custom) BBCodes are ok.
      If I purge the cache, all is well again, until the next time.

      I have researched a little bit, and I found that there are usually the result of sql_fetchrow cached, with the following content:

      Array ( [0] => Array ( [bbcode_id] => 14 [bbcode_tag] => center [bbcode_helpline] => [center]text[/center] [display_on_posting] => 1 [bbcode_match] => [center]{TEXT}

      [/center] [bbcode_tpl] =>

      {TEXT}

      [first_pass_match] => ![center](.?)[/center]!ies [first_pass_replace] => '[center:$uid]'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', ''', '(', ')'), trim('${1}')).'[/center:$uid]' [second_pass_match] => ![center:$uid](.?)[/center:$uid]!s [second_pass_replace] =>${1}) )

      But if the BBCode is not parsed, then is the cached result an empty array.
      I dont know why.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Tacitus89 Tacitus89 [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: