#3607 - Deletion of topic

  • By
  • Added
  • 0 views
Identifier #3607
Issue type Minor issue (breaks specific functionality)
Title Deletion of topic
Status Completed
Handling member Chris Graham
Addon forum_blocks
Description An error is thrown upon deletion of a forum topic.
Steps to reproduce

Choose a forum topic and try to delete the contents it seems to throw an error and not delete the topic.

Additional information An error has occurred
PHP WARNING [2] json_encode() expects exactly 1 parameter, 2 given in sources/resource_fs.php on line 154 (version: 10.0.15, PHP version: 5.2.17, URL: /forum/index.php?page=topics&type=_delete_topic&id=32)

Here is the stack trace:
Below is a stack trace revealing the state Composr was in when the error occurred. If this represents a bug in the unmodified software, you may want to check Composr website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File '/home/bratrat/public_html/rat-worx.com/sources/failure.php'
Line 968
Function 'get_html_trace'
Args
File '/home/bratrat/public_html/rat-worx.com/sources/global2.php'
Line 1,019
Function '_fatal_exit'
Args
'PHP WARNING [2] json_encode() expects exactly 1 parameter, 2 given in sources/resource_fs.php on line 154'

File '/home/bratrat/public_html/rat-worx.com/sources/failure.php'
Line 286
Function 'fatal_exit'
Args
'PHP WARNING [2] json_encode() expects exactly 1 parameter, 2 given in sources/resource_fs.php on line 154'

File '/home/bratrat/public_html/rat-worx.com/sources/global2.php'
Line 888
Function '_composr_error_handler'
Args
'warning'

2

'json_encode() expects exactly 1 parameter, 2 given'

'sources/resource_fs.php'

154

4

Function 'composr_error_handler'
Args
2

'json_encode() expects exactly 1 parameter, 2 given'

'/home/bratrat/public_html/rat-worx.com/sources/resource_fs.php'

154

array

File '/home/bratrat/public_html/rat-worx.com/sources/resource_fs.php'
Line 154
Function 'json_encode'
Args
array

0

File '/home/bratrat/public_html/rat-worx.com/sources/revisions_engine_database.php'
Line 96
Function 'get_resource_fs_record'
Args
'topic'

'32'

File '/home/bratrat/public_html/rat-worx.com/sources/cns_topics_action2.php'
Line 232
Function 'add_revision'
Class 'RevisionEngineDatabase'
Type '->'
Object O:22:"RevisionEngineDatabase":2:{s:5:"*db";O:17:"DatabaseConnector":8:{s:12:"table_prefix";s:4:"rwx_";s:15:"connection_read";a:2:{i:0;O:6:"mysqli":0:{}i:1;s:15:"bratrat_ratworx";}s:16:"connection_write";a:2:{i:0;r:5;i:1;s:15:"bratrat_ratworx";}s:26:"text_lookup_original_cache";a:0:{}s:17:"text_lookup_cache";a:0:{}s:18:"table_exists_cache";a:0:{}s:9:"static_ob";O:22:"Database_Static_mysqli":3:{s:8:"cache_db";a:1:{s:53:"a:2:{i:0;s:15:"bratrat_ratworx";i:1;s:9:"localhost";}";r:5;}s:14:"last_select_db";a:2:{i:0;r:5;i:1;s:15:"bratrat_ratworx";}s:16:"reconnected_once";b:0;}s:11:"dedupe_mode";b:0;}s:13:"*is_log_mod";b:0;}
Args
'topic'

'32'

'32'

'OK I complied '

''

23

1,525,555,020

14

File '/home/bratrat/public_html/rat-worx.com/forum/pages/modules/topics.php'
Line 3,651
Function 'cns_delete_topic'
Args
32

'Private'

NULL

Function '_delete_topic'
Class 'Module_topics'
Type '->'
Object O:13:"Module_topics":1:{s:5:"title";N;}
Args
File '/home/bratrat/public_html/rat-worx.com/forum/pages/modules/topics.php'
Line 221
Function 'call_user_func'
Args
a:2:{i:0;O:13:"Module_topics":1:{s:5:"title";N;}i:1;s:13:"_delete_topic";}

File '/home/bratrat/public_html/rat-worx.com/sources/zones.php'
Line 800
Function 'run'
Class 'Module_topics'
Type '->'
Object O:13:"Module_topics":1:{s:5:"title";N;}
Args
File '/home/bratrat/public_html/rat-worx.com/sources/site.php'
Line 1,211
Function 'load_module_page'
Args
'forum/pages/modules/topics.php'

'topics'

Tempcode -> ...

File '/home/bratrat/public_html/rat-worx.com/sources/site.php'
Line 921
Function 'request_page'
Args
'topics'

true

NULL

NULL

false

false

Tempcode -> ...

File '/home/bratrat/public_html/rat-worx.com/forum/index.php'
Line 59
Function 'do_site'
Args
Parameters
csrf_token
1bee5500cf2b0
destination
on
select_topic_id
require__select_topic_id
0
require__manual_topic_id
0
label_for__reason
Reason
reason
Private
require__reason
0
http_referer
http://rat-worx.com/forum/index.php?page=topics&id=32&type=delete_topic
Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated