{"action":"created","issue":{"url":"https://api.github.com/repos/spootTheLousy/saguaro/issues/84","labels_url":"https://api.github.com/repos/spootTheLousy/saguaro/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/spootTheLousy/saguaro/issues/84/comments","events_url":"https://api.github.com/repos/spootTheLousy/saguaro/issues/84/events","html_url":"https://github.com/spootTheLousy/saguaro/issues/84","id":106169863,"number":84,"title":"Posting Error","user":{"login":"Yushe","id":10089856,"avatar_url":"https://avatars.githubusercontent.com/u/10089856?v=3","gravatar_id":"","url":"https://api.github.com/users/Yushe","html_url":"https://github.com/Yushe","followers_url":"https://api.github.com/users/Yushe/followers","following_url":"https://api.github.com/users/Yushe/following{/other_user}","gists_url":"https://api.github.com/users/Yushe/gists{/gist_id}","starred_url":"https://api.github.com/users/Yushe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yushe/subscriptions","organizations_url":"https://api.github.com/users/Yushe/orgs","repos_url":"https://api.github.com/users/Yushe/repos","events_url":"https://api.github.com/users/Yushe/events{/privacy}","received_events_url":"https://api.github.com/users/Yushe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-12T16:14:47Z","updated_at":"2015-09-13T12:59:49Z","closed_at":"2015-09-12T18:30:51Z","body":"I am running on the beta branch.\r\n\r\nWhen I try to post on my site it makes the shows the error below.\r\n\r\nIt does create the post but it doesn't upload the image and it doesn't redirect when you post.\r\n\r\nPlease help!\r\n\r\n<code>= 1 ) { $maxposts = LOG_MAX; $maxthreads = ( PAGE_MAX > 0 ) ? ( PAGE_MAX * PAGE_DEF ) : 0; //number of pages x how many threads per page if ( $maxthreads ) { $exp_order = 'no'; if ( EXPIRE_NEGLECTED == 1 ) $exp_order = 'root'; $result = mysql_call( \"SELECT no FROM \" . SQLLOG . \" WHERE sticky=0 AND resto=0 ORDER BY $exp_order ASC\" ); $threadcount = mysql_num_rows( $result ); while ( $row = mysql_fetch_array( $result ) and $threadcount >= $maxthreads ) { delete_post( $row['no'], 'trim', 0, 1 ); // imgonly=0, automatic=1, children=1 $threadcount--; } mysql_free_result( $result ); // Original max-posts method (note: cleans orphaned posts later than parent posts) } else { // make list of stickies $stickies = array(); // keys are stickied thread numbers $result = mysql_call( \"SELECT no from \" . SQLLOG . \" where sticky=1 and resto=0\" ); while ( $row = mysql_fetch_array( $result ) ) { $stickies[$row['no']] = 1; } $result = mysql_call( \"SELECT no,resto,sticky FROM \" . SQLLOG . \" ORDER BY no ASC\" ); $postcount = mysql_num_rows( $result ); while ( $row = mysql_fetch_array( $result ) and $postcount >= $maxposts ) { // don't delete if this is a sticky thread if ( $row['sticky'] == 1 ) continue; // don't delete if this is a REPLY to a sticky if ( $row['resto'] != 0 && $stickies[$row['resto']] == 1 ) continue; delete_post( $row['no'], 'trim', 0, 1, 0 ); // imgonly=0, automatic=1, children=0 $postcount--; } mysql_free_result( $result ); } } } ?></code>"},"comment":{"url":"https://api.github.com/repos/spootTheLousy/saguaro/issues/comments/139872559","html_url":"https://github.com/spootTheLousy/saguaro/issues/84#issuecomment-139872559","issue_url":"https://api.github.com/repos/spootTheLousy/saguaro/issues/84","id":139872559,"user":{"login":"RePod","id":7897871,"avatar_url":"https://avatars.githubusercontent.com/u/7897871?v=3","gravatar_id":"","url":"https://api.github.com/users/RePod","html_url":"https://github.com/RePod","followers_url":"https://api.github.com/users/RePod/followers","following_url":"https://api.github.com/users/RePod/following{/other_user}","gists_url":"https://api.github.com/users/RePod/gists{/gist_id}","starred_url":"https://api.github.com/users/RePod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RePod/subscriptions","organizations_url":"https://api.github.com/users/RePod/orgs","repos_url":"https://api.github.com/users/RePod/repos","events_url":"https://api.github.com/users/RePod/events{/privacy}","received_events_url":"https://api.github.com/users/RePod/received_events","type":"User","site_admin":false},"created_at":"2015-09-13T12:59:49Z","updated_at":"2015-09-13T12:59:49Z","body":">1. How do you create more admin/mod accounts?\r\nFor now, manually edit [these lines in test.php](https://github.com/spootTheLousy/saguaro/blob/master/test.php#L20-L22) then rerun *test.php*."}}