wilsonke
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Deleting a post “You don’t have permission to do that” messageMake sure that you have the permissions for the database user to run the delete query on your WordPress database set up in the database schema.
Go to the formatting.php file in your wp-includes folder. If you open it in Textpad you can find line 648 pretty easily (but then again I don’t know what you are running) check to make sure that you are telling preg where your regular expression is starting and ending by using the ‘/’ or ‘#’ delimiter in the code.
/:lol:/ or #:lol:# is an example
It will be in where it is calling the preg-replace function on that line in the file that you will most likely find that it is not using delimiters.
Hope this helps.
Forum: Installing WordPress
In reply to: Fatal error running install.phpIt is trying to include and validate the admin-functions.php file in your wp-admin directory under the directory you have the WordPress folder (blog folder) or the root directory. Check to make sure that your admin-functions.php file is under the wp-admin folder under the WordPress root directory.
Forum: Fixing WordPress
In reply to: unable to postI do believe that they made upgrades to the backend (the database) which means that you may have extract transform and load your existing data into their new database schema. I myself have not upgraded to 2.1 because of these changes. I am not really sure what changes were made to the back end. If I new more about how the re-engineered their web application I might be of more use to you, but that would better be left up to a moderator.
Forum: Fixing WordPress
In reply to: Error when postingYou should create a FullText index in your posts table for the id column in your MySQL WordPress database and that should alleviate your problems.
Forum: Fixing WordPress
In reply to: Comments Not WorkingIt’s because the comment_post_id value that is supposed to be returned by the hidden input tag named comment_post_id from the form that is using the wp_comments_posts.php script (the button ‘Submit Comment’ calls it with the form action) is not being set to the correct value and when you check the database in the wp_posts table there is no post with the ID of 0 so the comment status doesn’t get set to anything and the php script just exits. It’s retarded. I’m currently trying to fix this code on my own. I’ll let you know what I had to do.
Forum: Installing WordPress
In reply to: wp-comments-post.php Database ErrorsBut yeah the main problem with the posting of comments is that it isn’t retrieving the value of the hidden input in the form with the name comment_post_id and the value that is equal to the id of the post. Instead it is setting it to zero when running this code:
$comment_post_ID = (int) $_POST[‘comment_post_ID’];
Forum: Installing WordPress
In reply to: wp-comments-post.php Database ErrorsSo, I went into the database and ran the select query that is in the wp_comments_posts.php script to return the status of the actual post that being commented on.
Apparently since it is setting the comment_post_id to zero some how (even though it’s 2 in the database) it is returning the null value for the post_status.
For example I had the comment_post_id and status variable print and ran it, which returned a value of 0 for the comment_post_id and null for the status.
I went to the php script file and copied and pasted the SQL that it was using to retrieve the status of the post and opened up MySQL query browser and connected to the database using my user. I ran:
SELECT * FROM wp_posts;
I was looking for the post that I was trying to comment on and found that the ID that it was using in the SQL query in the wp_comments_posts.php file was looking for the post with the ID of 0.
For example:
SELECT post_status, comment_status FROM $wpdb->posts WHERE ID = ‘$comment_post_ID’
So I am wondering if I just create a post with the ID of 0 will that fix my problem?