Fork me on GitHub
Subscribe 4

Ticket #866 (fixed bug)

Broken PostgreSQL support on 1.5.1+ with o_redirect_delay == 0

  • Created: 2013-06-10 19:37:20
  • Reported by: lystor
  • Assigned to: JohnLewis
  • Milestone: 1.5.4
  • Component: database
  • Priority: highest

Hi

It is impossible to add/edit/delete posts on fluxbb 1.5.1+ (PostgreSQL) due to uncommited transactions where o_redirect_delay == 0.

Please fix it.

Thx


Possible solution:
diff -up fluxbb/include/functions.php.orig fluxbb/include/functions.php
--- fluxbb/include/functions.php.orig   2013-02-22 13:15:11.000000000 +0200
+++ fluxbb/include/functions.php    2013-06-10 22:34:39.801129005 +0300
@@ -1290,6 +1290,9 @@ function redirect($destination_url, $mes
    // If the delay is 0 seconds, we might as well skip the redirect all together
    if ($pun_config['o_redirect_delay'] == '0')
    {
+       // End the transaction
+       $db->end_transaction();
+       
        header('Location: '.str_replace('&', '&', $destination_url));
        exit;
    }

--
With best regards,
Nikolay Ulyanitsky
http://pkgs.org/

History

Franz 2013-06-10 22:26:10

  • Milestone set to 1.5.4.

Oh wow, good catch. Thank you, will fix and do the release soon!

Visman 2013-07-25 04:14:08

+ $db->close();
tongue

JohnLewis 2013-08-01 01:32:44

  • Owner set to JohnLewis.

JohnLewis 2013-08-01 01:50:52

Commit c5243f9 to fluxbb master

#866: PgSQL fixes.

JohnLewis 2013-08-01 01:51:26

Pulled.

Franz 2013-08-01 10:23:14

Commit d25b0d8 to fluxbb master

Merge pull request #85 from JohnFLewis/patch-2

#866: PgSQL fixes.

Franz 2013-08-01 10:24:03

  • Status changed from open to fixed.