Egorkin Posted June 21, 2018 Share Posted June 21, 2018 After upgrade to 4.3 start applications from the admin center and perform tasks. But occasionally an error is thrown: "Sorry, you do not have permission for that! 1S111 / 1 Out of range value for column 'topics' at row 1". I press F5 and after 20-30 seconds again an error. What could be the matter? Link to comment Share on other sites More sharing options...
Egorkin Posted June 21, 2018 Author Share Posted June 21, 2018 Got a response in the console, here: Exception: IPS\Db\Exception Object ( [query] => UPDATE `ibf_forums_forums` forums_forums SET `topics`=?,`posts`=? WHERE id=? [binds] => Array ( [0] => -1 [1] => 227 [2] => 159 ) [message:protected] => Out of range value for column 'topics' at row 1 [string:Exception:private] => [code:protected] => 1264 [file:protected] => C:\OSPanel\domains\localhost\system\Db\Db.php [line:protected] => 541 [trace:Exception:private] => Array ( [0] => Array ( [file] => C:\OSPanel\domains\localhost\system\Db\Db.php [line] => 990 [function] => preparedQuery [class] => IPS\_Db [type] => -> [args] => Array ( [0] => /*IPS\Node\_Model::save:2195*/ UPDATE `ibf_forums_forums` forums_forums SET `topics`=?,`posts`=? WHERE id=? [1] => Array ( [0] => -1 [1] => 227 [2] => 159 ) ) ) [1] => Array ( [file] => C:\OSPanel\domains\localhost\system\Patterns\ActiveRecord.php [line] => 492 [function] => update [class] => IPS\_Db [type] => -> [args] => Array ( [0] => `ibf_forums_forums` forums_forums [1] => `topics`=?,`posts`=? [2] => WHERE id=? ) ) [2] => Array ( [file] => C:\OSPanel\domains\localhost\system\Node\Model.php [line] => 2219 [function] => save [class] => IPS\Patterns\_ActiveRecord [type] => -> [args] => Array ( ) ) [3] => Array ( [file] => C:\OSPanel\domains\localhost\system\Content\Item.php [line] => 2195 [function] => save [class] => IPS\Node\_Model [type] => -> [args] => Array ( ) ) [4] => Array ( [file] => C:\OSPanel\domains\localhost\applications\forums\sources\Topic\Topic.php [line] => 976 [function] => delete [class] => IPS\Content\_Item [type] => -> [args] => Array ( ) ) [5] => Array ( [file] => C:\OSPanel\domains\localhost\applications\forums\extensions\core\Queue\DeleteLegacyTopics.php [line] => 58 [function] => delete [class] => IPS\forums\_Topic [type] => -> [args] => Array ( ) ) [6] => Array ( [file] => C:\OSPanel\domains\localhost\system\Task\Task.php [line] => 47 [function] => run [class] => IPS\forums\extensions\core\Queue\_DeleteLegacyTopics [type] => -> [args] => Array ( [0] => Array ( [count] => 1536 ) [1] => 170 ) ) [7] => Array ( [file] => C:\OSPanel\domains\localhost\applications\core\tasks\queue.php [line] => 43 [function] => runQueue [class] => IPS\_Task [type] => :: [args] => Array ( ) ) [8] => Array ( [function] => IPS\core\tasks\{closure} [class] => IPS\core\tasks\_queue [type] => -> [args] => Array ( ) ) [9] => Array ( [file] => C:\OSPanel\domains\localhost\system\Task\Task.php [line] => 347 [function] => call_user_func [args] => Array ( [0] => Closure Object ( [this] => IPS\core\tasks\queue Object ( [_data:protected] => Array ( [id] => 36 [key] => queue [frequency] => P0Y0M0DT0H1M0S [next_run] => 1529577465 [running] => 1 [enabled] => 1 [plugin] => [app] => core [lock_count] => 1 [last_run] => 1529577276 ) [_new:protected] => [changed] => Array ( ) [skipCloneDuplication] => ) ) ) ) [10] => Array ( [file] => C:\OSPanel\domains\localhost\applications\core\tasks\queue.php [line] => 55 [function] => runUntilTimeout [class] => IPS\_Task [type] => -> [args] => Array ( [0] => Closure Object ( [this] => IPS\core\tasks\queue Object ( [_data:protected] => Array ( [id] => 36 [key] => queue [frequency] => P0Y0M0DT0H1M0S [next_run] => 1529577465 [running] => 1 [enabled] => 1 [plugin] => [app] => core [lock_count] => 1 [last_run] => 1529577276 ) [_new:protected] => [changed] => Array ( ) [skipCloneDuplication] => ) ) ) ) [11] => Array ( [file] => C:\OSPanel\domains\localhost\system\Task\Task.php [line] => 248 [function] => execute [class] => IPS\core\tasks\_queue [type] => -> [args] => Array ( ) ) [12] => Array ( [file] => C:\OSPanel\domains\localhost\system\Task\Task.php [line] => 217 [function] => run [class] => IPS\_Task [type] => -> [args] => Array ( ) ) [13] => Array ( [file] => C:\OSPanel\domains\localhost\applications\core\interface\task\task.php [line] => 62 [function] => runAndLog [class] => IPS\_Task [type] => -> [args] => Array ( ) ) ) [previous:Exception:private] => ) Link to comment Share on other sites More sharing options...
Numbered Posted June 21, 2018 Share Posted June 21, 2018 As error said - some bad value in topics row. I think support ticket will best choice for investigating your personal or platform problem. Clean error message. Right exception. In your trace we can see - task tried to set -1 to the topics column with is wrong by SQL schema. If we want to find where (and how it working) we can proceed to \system\Content\Item.php file, method delete As we see - these lines don't check value (just for NULL) before decrement. So your current 0 changes to -1, which can't be stored into the database. I think need to recount this values, but I don't find UI method for them. PHP script way can do this simply, but it's not a solution for others) If you extremely need to fix it ASAP, you can change line 2122 from current: if ( $this->container()->_items !== NULL ) to: if ( $this->container()->_items !== NULL && $this->container()->_items > 1) This change will prevent decreasing to the negative value. Link to comment Share on other sites More sharing options...
Egorkin Posted June 23, 2018 Author Share Posted June 23, 2018 Upgradeovec, helped:) I Wonder what it manifested only on the server under Windows, on Linux everything was OK. Thank you very much for your help and greetings from football Moscow ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.