Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-14111

Saving an edited post causes a PHP error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 3.2.0-dev
    • Posting
    • None
    • Area 51

      After editing a post on Area 51 and saving it I got the following error (note that there seems to be two errors here):

      [phpBB Debug] PHP Warning: in file [ROOT]/phpbb/notification/manager.php on line 359: Invalid argument supplied for foreach()
       
      Return to the index page	
       
      General Error
       
      SQL ERROR [ mysqli ]
       
      Unknown column 'Array' in 'where clause' [1054]
       
      SQL
       
      DELETE FROM phpbb_notifications WHERE notification_type_id = 5 AND item_id = 282676 AND user_id = Array
       
      BACKTRACE
       
      FILE: (not given by php)
      LINE: (not given by php)
      CALL: msg_handler()
       
      FILE: [ROOT]/phpbb/db/driver/driver.php
      LINE: 855
      CALL: trigger_error()
       
      FILE: [ROOT]/phpbb/db/driver/mysqli.php
      LINE: 193
      CALL: phpbb\db\driver\driver->sql_error()
       
      FILE: [ROOT]/phpbb/db/driver/factory.php
      LINE: 329
      CALL: phpbb\db\driver\mysqli->sql_query()
       
      FILE: [ROOT]/phpbb/notification/method/board.php
      LINE: 367
      CALL: phpbb\db\driver\factory->sql_query()
       
      FILE: [ROOT]/phpbb/notification/manager.php
      LINE: 447
      CALL: phpbb\notification\method\board->delete_notifications()
       
      FILE: [ROOT]/phpbb/notification/type/quote.php
      LINE: 135
      CALL: phpbb\notification\manager->delete_notifications()
       
      FILE: [ROOT]/phpbb/notification/method/board.php
      LINE: 290
      CALL: phpbb\notification\type\quote->update_notifications()
       
      FILE: [ROOT]/phpbb/notification/manager.php
      LINE: 419
      CALL: phpbb\notification\method\board->update_notification()
       
      FILE: [ROOT]/phpbb/notification/manager.php
      LINE: 400
      CALL: phpbb\notification\manager->update_notification()
       
      FILE: [ROOT]/phpbb/notification/manager.php
      LINE: 394
      CALL: phpbb\notification\manager->update_notifications()
       
      FILE: [ROOT]/includes/functions_posting.php
      LINE: 2350
      CALL: phpbb\notification\manager->update_notifications()
       
      FILE: [ROOT]/posting.php
      LINE: 1414
      CALL: submit_post()
       
      Please notify the board administrator or webmaster: null@phpbb.com
       
      Powered by phpBB® Forum Software © phpBB Limited 

      The edit that was done was saved however.

            Unassigned Unassigned
            DavidIQ David Colón
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: